Closed Bug 1691349 Opened 3 years ago Closed 3 years ago

Screenshot node from the inspector on about:preferences makes the browser hang

Categories

(DevTools :: Inspector, defect, P1)

defect

Tracking

(firefox-esr78 unaffected, firefox85 unaffected, firefox86 unaffected, firefox87 fixed)

RESOLVED FIXED
87 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox85 --- unaffected
firefox86 --- unaffected
firefox87 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

Steps to reproduce

  1. Navigate to about:preferences
  2. Open the inspector
  3. On the .main-content element, use the context menu entry to take a screenshot of the node

Actual results

The browser hangs for some reason


The Bugbug bot thinks this bug should belong to the 'DevTools::Inspector' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: General → Inspector

Set release status flags based on info from the regressing bug 1678483

The context menu action was freezing because of an infinite
loop in getRect: since we weren't passing a boundary window,
the function uses the top window, which can be the windowRoot.
But then, we walk up through the window using window.parent,
which would never get us the windowRoot, hence the infinite loop.
We fix this by providing the boundary window to getReact.
A test is added to ensure we don't regress in the future.

Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7ed0dc85c25b
[devtools] Fix screenshot node on about:preferences. r=bomsy.
Regressions: 1691768
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: