Open Bug 1530225 Opened 6 years ago Updated 2 years ago

Devtools grid inspector hangs tab

Categories

(DevTools :: Inspector, defect, P2)

66 Branch
defect

Tracking

(Not tracked)

People

(Reporter: ycw7788, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0

Steps to reproduce:

Given
HTML
<body><a>1</a></body>
CSS
body {
display : grid;
writing-mode : vertical-rl;
width : 100%;
}

Then

  1. open devtools
  2. select Inspector tab
  3. select Layout tab at sidebar
  4. open Grid section
  5. check "body" in Overlay Grid column
  6. check "Extend lines infinitely" in Grid Display Settings column
  7. hang!

Actual results:

The page hangs forever.

Expected results:

It should print grid lines overlaying on body element

Component: Untriaged → Inspector
Product: Firefox → DevTools

Tested and confirmed in Firefox 66 and Firefox 67 on Windows 10.
In step 7 above, you can confirm the hang by just trying to resize the browser window. You should see that the content area remains frozen and does not adapt to the new window size.
The rest of the browser and DevTools are fine. So only the content process hangs.

If I try without the writing-mode : vertical-rl; part, then the problem does not seem to occur.

I just tested on macOS with Firefox 66 and 67, and it works fine there. I was not able to reproduce this issue.

Status: UNCONFIRMED → NEW
Ever confirmed: true

This looks like an infinite loop somewhere in /devtools/server/actors/highlighters/css-grid.js. I started a profiler recording and could see that the updateCanvasElement was being called right when it started to hang.

Has STR: --- → yes
OS: Unspecified → All
Priority: -- → P2
Hardware: Unspecified → All
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.