Closed Bug 47843 Opened 24 years ago Closed 24 years ago

style overflow: scroll crashes

Categories

(Core :: Layout, defect, P1)

x86
Linux
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: gabriel, Assigned: waterson)

References

()

Details

(Keywords: crash, platform-parity, testcase, Whiteboard: [nsbeta3+] FIX IN HAND)

Attachments

(4 files)

Linux build 2000080505. http://www.gigabeat.com Mozilla starts loading and then freezes totally.
Yes, it does.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: crash
WFM WinMe build 2000080208, but is rendered stupid...
I see the weird layout too, but no freeze or crash. I have made a testcase for the layout bug and hopefully it shows the freeze problem too (on Linux.) The layout problem seems to be caused by this style rule: BODY {overflow:scroll;}
Attached file Testcase
Keywords: testcase
Yup, testcase is an instant crasher :-(
Test case freezes on linux build 080720, but no crash accur.
That's what I meant ;-)
Minimal, HTML 4.01 Strict testcase is attached. Bug is also apparent with Transitional DTD. The problem is the overflow: scroll style declaration. Reassigning to style system.
Assignee: asa → pierre
Component: Browser-General → Style System
QA Contact: doronr → chrisd
Attached file Minimal testcase
Summary: Mozilla freezes on this site → style overflow: scroll crashes
minimal testcase works (freezes) on linux build 080720.
This is WORKSFORME on Windows 2000, build 6.0.18.2000080908. Is this a pp bug?
Keywords: nsbeta3
No crash for me either. Reassigned to pavlov to investigate on Linux. gabriel@: could you attach a stack trace? Thanks.
Assignee: pierre → pavlov
Attached file Stack trace (I think)
reassigning to waterson, per pav (who thinks this is a layout problem)
Assignee: pavlov → waterson
Crasher. Marking [nsbeta3+]. Layout is somehow getting wedged in an infinite loop (Linux only!) on a ridiculously simple test case. I doubt this is a layout-specific problem, but I'll do initial investigation.
Status: NEW → ASSIGNED
Component: Style System → Layout
Keywords: pp
Priority: P3 → P1
Whiteboard: [nsbeta3+]
Target Milestone: --- → M18
Because the body is set to have "overflow: scroll", the nsGfxScrollFrameInner decides that it should turn its scrollbars on in the initial reflow. To do this, it sets an attribute which makes the scrollbar become visible. This triggers a reflow, and causes us to re-enter layout while doing the initial reflow. From here, all hell breaks loose. I think that the problem is that the pres shell doesn't think that it's reflowing while it's doing the initial reflow (because nobody sets mIsReflowing), and this causes it to merrily process the reflow commands. Setting mIsReflowing before reflowing the root frame in nsPresShell::InitialReflow() seems to fix the problem. Will this have other bad side effects? It seems to pass initial sniff tests...
Whiteboard: [nsbeta3+] → [nsbeta3+] FIX IN HAND
fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
No problem on the 8/28 build on Linux. Verifying bug fixed.
Status: RESOLVED → VERIFIED
Flags: in-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: