Closed Bug 176305 Opened 22 years ago Closed 21 years ago

overflow:auto applied to option creates an infinite loop

Categories

(Core :: Layout, defect, P2)

x86
All
defect

Tracking

()

RESOLVED DUPLICATE of bug 210269

People

(Reporter: bugzilla, Assigned: roc)

References

Details

(Keywords: hang, regression, testcase)

Attachments

(2 files)

The CSS rule
option { overflow:auto; }
will max the CPU usage %tage in windows task manager as the page loads. The CPU
usage %tage is maintained in the high 90%+, suggesting an infinite loop.
This is not happening in MSIE 6.

Reproducible: always. XP Pro SP1, build 2002102308.
Attached file Reduced test case
Open Windows Task Manager, Processes tab. Make sure the CPU [CPU usage in
View/Select Columns...] is visible.
Load the reduced test case.
The CPU usage percentage will be maintained very high.
Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.2b) Gecko/20021023
Confirming this behaviour.  When attempting to view the testcase, CPU usage
skyrocketed, and Mozilla never did render the testcase page; I had to
CTRL+ALT+DEL and terminate the browser window.
Keywords: testcase
Severity: normal → critical
Keywords: hang
WFM in 1.1 final, so it may be a regression. cc'ing jkeiser.
we seem to be stuck in ::Reflow() continuously...
This is a regression.

I checked in the 2002-09-30trunk build (win2k)..... the testcase does not cause
the browser to hang.
Then I checked in 2002-10-03trunk build (win2k).... I see the hang here.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
Priority: -- → P2
It seems like the problem is in nsGfxScrollFrameInner::AddRemoveScrollbar, where
we hit the code that does two opposite calls to SetScrollbarVisibility:

http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/layout/html/base/src/nsGfxScrollFrame.cpp&rev=3.109&mark=1091-1092,1104-1105#1084

The UnsetAttr from the first of these (it's unsetting the "collapsed" attribute)
posts a reflow command with the stack in attachment 104052 [details].  Then we set the
attribute back, rinse, and repeat. :-)

So who owns nsGfxScrollFrame these days?
Judging from that checkin window, I'd guess this is the result of bug 145212.
I'll check it out, but not until next week. In the meantime feel free to assign
it to me.
OK. :-)

I suspect it's not really your fault, just some somewhat broken code that you
exposed, but I could be wrong (and I'm not sure I'm understanding the code
correctly)...
Assignee: dbaron → roc+moz
Component: Style System → Layout
I think that right now I understand the scrolling code as well as anyone, so it
might as well be mine :-).
*** Bug 192242 has been marked as a duplicate of this bug. ***
*** Bug 183710 has been marked as a duplicate of this bug. ***
*** Bug 199974 has been marked as a duplicate of this bug. ***
*** Bug 209943 has been marked as a duplicate of this bug. ***
*** Bug 212373 has been marked as a duplicate of this bug. ***
OS: Windows XP → All
This should be fixed by my patch in bug 210269.

*** This bug has been marked as a duplicate of 210269 ***
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: