Closed Bug 1433655 Opened 7 years ago Closed 7 years ago

JSON Viewer may not expand nodes

Categories

(DevTools :: JSON Viewer, defect, P3)

defect

Tracking

(firefox-esr52 unaffected, firefox58 unaffected, firefox59 verified, firefox60 verified)

VERIFIED FIXED
Firefox 60
Tracking Status
firefox-esr52 --- unaffected
firefox58 --- unaffected
firefox59 --- verified
firefox60 --- verified

People

(Reporter: Oriol, Assigned: Oriol)

References

Details

(Keywords: regression)

Attachments

(2 files)

Assignee: nobody → oriol-bugzilla
Status: NEW → ASSIGNED
Priority: -- → P3
Attached image jsonv.png
(In reply to Oriol Brufau [:Oriol] from comment #0) > 1. Enable e10s > 2. Load https://bug1394094.bmoattachments.org/attachment.cgi?id=8901438 > 3. You may need to reload the page a few times I can't reproduce the problem. I am attaching a screenshot showing what I am seeing after step #3. The JSON view looks correctly expanded, right? Honza
Flags: needinfo?(oriol-bugzilla)
OK, a more reliable way to reproduce is <?php header('Content-type: application/json'); $i = 0; echo "[\n"; while($i < 10) { ++$i; echo " [", $i, "],\n"; ob_end_flush(); flush(); ob_start(); sleep(1); } echo " 0\n]"; ?> You said in bug 1417039 comment 10 that you had to disable compression.
Flags: needinfo?(oriol-bugzilla)
You can also only add the test changes from my patch, and it will fail. Also add `await new Promise(() => {})` if you want to have time to check manually that the array is collapsed.
Comment on attachment 8946155 [details] Bug 1433655 - Allow JSON Viewer to change expandedNodes state. https://reviewboard.mozilla.org/r/216144/#review223870 Looks good, thanks! R+ assuming try is green. Note that I had to use the following code to test the patch: (ob_start() called at the beggining) <?php header('Content-type: application/json'); $i = 0; echo "[\n"; ob_start(); while($i < 10) { ++$i; echo " [", $i, "],\n"; ob_end_flush(); flush(); sleep(1); } echo " 0\n]"; ?> Honza
Attachment #8946155 - Flags: review?(odvarko) → review+
Keywords: checkin-needed
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/autoland/rev/36a5a69f4328 Allow JSON Viewer to change expandedNodes state. r=Honza
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 60
Comment on attachment 8946155 [details] Bug 1433655 - Allow JSON Viewer to change expandedNodes state. Approval Request Comment [Feature/Bug causing the regression]: bug 1417039 [User impact if declined]: sometimes the JSON Viewer may not expand nodes automatically. [Is this code covered by automated tests?]: yes [Has the fix been verified in Nightly?]: I have manually verified in Nightly [Needs manual test from QE? If yes, steps to reproduce]: run the PHP code from comment 8 in a web server and wait until it finishes loading. All nodes should be expanded. [List of other uplifts needed for the feature/fix]: none [Is the change risky?]: Not risky [Why is the change risky/not risky?]: it just tells React to use the updateable state.expandedNodes instead of the initial props.expandedNodes [String changes made/needed]: None
Attachment #8946155 - Flags: approval-mozilla-beta?
Status: RESOLVED → VERIFIED
Flags: qe-verify+
Comment on attachment 8946155 [details] Bug 1433655 - Allow JSON Viewer to change expandedNodes state. Simple fix and verified on Nightly, approving for 59b8.
Attachment #8946155 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
I have reproduced this issue using Firefox 60.0a1(2018.01.27) on Win 8.1 x64. I can confirm this issue is fixed, I verified using Firefox 59.0b8 and on 60.0a1 (2018.02.09) on Win 8.1 x64, Ubuntu 14.04 x64 and Mac OS X 10.13.3.
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: