Large integers not rendered in JSON view
Categories
(DevTools :: JSON Viewer, defect, P2)
Tracking
(firefox-esr128 unaffected, firefox138 wontfix, firefox139 wontfix, firefox140 fixed)
| Tracking | Status | |
|---|---|---|
| firefox-esr128 | --- | unaffected |
| firefox138 | --- | wontfix |
| firefox139 | --- | wontfix |
| firefox140 | --- | fixed |
People
(Reporter: neumann, Assigned: jdescottes)
References
Details
Attachments
(2 files, 1 external file)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:138.0) Gecko/20100101 Firefox/138.0
Steps to reproduce:
- Create a file "test.json"
- Add the following content: "9999999999999999"
- Open file in Firefox 138.0.1 (64-Bit)
Actual results:
- See empty JSON view
Expected results:
- See number "9999999999999999" in JSON view
If you change the number to e.g. "9999999999999998" and reload the page, the correct number is shown in the JSON view.
In any case the source code view ([Ctrl]+[U]) always shows the correct number.
| Reporter | ||
Comment 1•1 year ago
|
||
Comment 2•1 year ago
|
||
The Bugbug bot thinks this bug should belong to the 'DevTools::General' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
| Assignee | ||
Comment 3•1 year ago
|
||
we should check the spec to see how JSON is supposed to handle big integers. But in any case, if there's an error we should at least display the raw data tab, and show a warning.
| Reporter | ||
Comment 4•1 year ago
|
||
FWIW: The error does not occur when the integer is not the "bare" JSON object, but nested within a JSON object.
{ "n": 9999999999999999, "even_larger_n": 99999999999999999999999999999999999999999999999999999999 }
| Reporter | ||
Comment 5•1 year ago
|
||
| Assignee | ||
Comment 6•1 year ago
|
||
This is actually a regression, in ESR128 it worked fine. Potentially from Bug 1431808 ?
| Assignee | ||
Comment 7•1 year ago
|
||
Confirmed this is a regression in Firefox 136.
| Assignee | ||
Comment 8•1 year ago
|
||
We should special case the JSON_NUMBER type in the JSON viewer panel component,
otherwise it will attempt to render it as a tree.
Updated•1 year ago
|
Comment 10•1 year ago
|
||
| bugherder | ||
Comment 11•1 year ago
|
||
The patch landed in nightly and beta is affected.
:jdescottes, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- See https://wiki.mozilla.org/Release_Management/Requesting_an_Uplift for documentation on how to request an uplift.
- If no, please set
status-firefox139towontfix.
For more information, please visit BugBot documentation.
| Assignee | ||
Comment 12•1 year ago
|
||
Even though it's a regression I feel like it's still an edge case and can ride the trains.
Comment 13•1 year ago
|
||
Note that we have the same issue in the Netmonitor response panel, see Bug 1965996
Updated•1 year ago
|
Description
•