Closed
Bug 521431
Opened 15 years ago
Closed 3 years ago
Firefox locks up when displaying nested divs with small height and scrollbars
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: tyler, Unassigned)
References
(Blocks 1 open bug)
Details
(Keywords: hang)
Attachments
(1 file)
(deleted),
text/html
|
Details |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.3) Gecko/20090910 Ubuntu/9.04 (jaunty) Shiretoko/3.5.3
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.3) Gecko/20090910 Ubuntu/9.04 (jaunty) Shiretoko/3.5.3
While creating a web form, I made a small mistake in my form that caused Firefox to hang. I've stripped the original file down to what appears to be a minimal test case that causes Firefox to hang. All that's required is a series of nested divs that each have scrolling enabled and a small height.
Reproducible: Always
Steps to Reproduce:
1.Open the attached test case
Actual Results:
Firefox becomes unresponsive and uses 100% of cpu.
Expected Results:
Displayed a web page.
Also confirmed with Mozilla/5.0 (WindowsX11; U; Windows NT 5.1; en-GB; rv:1.9.1.3) Gecko/20090824 Firefox 3.5.3 Shiretoko/3.5.3 (.NET CLR 3.5.30729)
Reporter | ||
Comment 1•15 years ago
|
||
If Firefox doesn't crash for you with this test case, you may want to try doubling the number of nested divs in it. I found if I reduced the number of divs down to 5, firefox only hung for a short time and then became responsive again.
Comment 2•15 years ago
|
||
Yeah, nasty. Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.3a1pre) Gecko/20091009 Minefield/3.7a1pre (.NET CLR 3.5.30729) ID:20091009051317 shows this.
Severity: critical → major
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: hang
OS: Linux → All
Whiteboard: DUPEME
Version: unspecified → Trunk
Guessing layout instead of parser.
Component: HTML: Parser → Layout
QA Contact: parser → layout
Comment 4•15 years ago
|
||
Presumably due to the multiple reflows that scrollframe does. The innermost div here will get reflowed at least 1024 times, right?
Presumably that's what's happening, but we might be able to avoid it by memoizing some information about the scrolled child (what height it wants with/without a horizontal scrollbar present).
Comment 7•3 years ago
|
||
Marking this as Resolved > Worksforme since the issue is no longer reproducible on Firefox Nightly 96.0a1 (2021-11-04), beta 95.0b2 or release 94.0 on Windows 10 and MacOS 11.6.
If anyone can still reproduce this issue please re-open it or file a new one.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•