Closed Bug 1648615 Opened 3 months ago Closed 3 months ago

Add hotkeys to dump DOM tree and frame tree in layout debugger

Categories

(Core :: Layout, task)

task

Tracking

()

RESOLVED FIXED
mozilla79
Tracking Status
firefox79 --- fixed

People

(Reporter: TYLin, Assigned: TYLin)

Details

Attachments

(1 file)

When debugging testcase where the script can crash the browser, it's easier to use hotkey to dump the frame tree than clicking through the menu items before the script runs.

  setTimeout(() => {
    // Modify CSS or DOM that crashes the browser.
  }, 3000);
  • ctrl+d: Dump DOM tree (content). (Use "d" because "c" is for copy.)
  • ctrl+f: Dump frame trees.
  • ctrl+p: Dump frame trees in CSS pixels.

On macOS, the modified is cmd instead of ctrl.

Assignee: nobody → aethanyc
Status: NEW → ASSIGNED
Pushed by aethanyc@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/9ab1d1d81000
Add hotkeys to dump DOM tree and frame tree in layout debugger. r=emilio
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla79
You need to log in before you can comment on or make changes to this bug.