Closed Bug 343540 Opened 19 years ago Closed 19 years ago

"ASSERTION: aPrevFrame must be the last continuation in its chain!" involving <dd>

Categories

(Core :: Layout, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9alpha1

People

(Reporter: jruderman, Assigned: uriber)

References

Details

(Keywords: assertion, testcase)

Attachments

(3 files)

###!!! ASSERTION: aPrevFrame must be the last continuation in its chain!: '!aPrevFrame || !aPrevFrame->GetNextContinuation()', file /Users/admin/trunk/mozilla/layout/base/nsFrameManager.cpp, line 671 This assertion was added in bug 299065, but I haven't tested to find out whether this bug is a more recent regression.
Attached file testcase
Oh, great. A combination of multi-line generated content with "special" (block-inside-inline) frames. I'll see what I can do.
Attached file testcase #2
This testcase demonstrates that this is a real bug: The text "new" is inserted before "ore" (which is the second line of the ":before" text), instead of after it. Using this testcase it is possible to verify that the bug existed prior to the introduction of the assertion in bug 299065. The assertion just made it easier to find. Also, notice the similarity to bug 327532. I'm looking into nsCSSFrameConstructor::ContentInserted() for the best way to fix this. I hope to have a patch sometime soon.
Attached patch patchSplinter Review
This seems like the simplest and safest way to fix it. Just make sure that we're inserting the new frame after the last continuation of the ":before" pseudo-element.
Assignee: nobody → uriber
Status: NEW → ASSIGNED
Attachment #228048 - Flags: superreview?(roc)
Attachment #228048 - Flags: review?(roc)
Attachment #228048 - Flags: superreview?(roc)
Attachment #228048 - Flags: superreview+
Attachment #228048 - Flags: review?(roc)
Attachment #228048 - Flags: review+
Checking in layout/base/nsCSSFrameConstructor.cpp; /cvsroot/mozilla/layout/base/nsCSSFrameConstructor.cpp,v <-- nsCSSFrameConstructor.cpp new revision: 1.1242; previous revision: 1.1241 done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9alpha
Blocks: 343943
Depends on: 347853
I accidentally mentioned the number of this bug in the check-in for bug 347853.
Added reftest based on Uri's testcase (fails in 2006-07-01) and crashtest based on my testcase.
Flags: in-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: