Open Bug 370812 Opened 18 years ago Updated 2 years ago

Frame construction never triggered if root content removed from document before initial reflow

Categories

(Core :: Layout, defect)

defect

Tracking

()

People

(Reporter: sharparrow1, Unassigned)

References

Details

(Keywords: testcase)

Attachments

(1 file, 1 obsolete file)

Attached file Testcase (obsolete) (deleted) —
See testcase. The content never appears and the presshell keep on asserting about not being able to find an event frame.
Comment on attachment 255575 [details] Testcase Oops, I messed up the testcase. I'll post a new version sometime soon.
Attachment #255575 - Attachment is obsolete: true
Attached file Real testcase (deleted) —
I messed up a bit when I was testing it out. Didn't realize my debugging alert was the cause of the bug :). (Incremental reflow bugs are wonderful...) document.width is way to trigger a reflow without bugging the user or having a body element. I think the initial reflow is bailing out because there isn't any content, so the frame constructor never get initialized.
Summary: Frame construction never triggered if root content removed from document during reflow → Frame construction never triggered if root content removed from document before initial reflow
In case it's useful, this is HTML only. (The equivalent XHTML testcase works just fine, although it does assert.)
See also discussion in bug 312858?
Blocks: 312858
I don't think it's related; I'm pretty sure the issue here is that the frames can't be constructed under a null root rather than an issue with the correct content norifications. See PresShell::InitialReflow and nsCSSFrameConstructor::ContentInserted; if there isn't any root content, InitialReflow basically does nothing, and if there isn't a frame to put the root content into, ContentInserted does nothing, leading to no frames ever getting created.
Depends on: 370952
Definitely related; I'd almost call it a dup, except this has a distinct testcase.
Fixed by patch in bug 78070.
Depends on: 78070
Flags: in-testsuite?
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: