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)
Core
Layout
Tracking
()
NEW
People
(Reporter: sharparrow1, Unassigned)
References
Details
(Keywords: testcase)
Attachments
(1 file, 1 obsolete file)
(deleted),
text/html
|
Details |
See testcase. The content never appears and the presshell keep on asserting about not being able to find an event frame.
Reporter | ||
Comment 1•18 years ago
|
||
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
Reporter | ||
Comment 2•18 years ago
|
||
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.
Reporter | ||
Updated•18 years ago
|
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
Reporter | ||
Comment 3•18 years ago
|
||
In case it's useful, this is HTML only. (The equivalent XHTML testcase works just fine, although it does assert.)
Reporter | ||
Comment 5•18 years ago
|
||
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.
Comment 6•18 years ago
|
||
is this related to bug 300540?
Reporter | ||
Comment 7•18 years ago
|
||
Definitely related; I'd almost call it a dup, except this has a distinct testcase.
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•