Closed Bug 429865 Opened 17 years ago Closed 15 years ago

"ASSERTION: prev sibling not in line list" with floating :first-letter, :after, RLO

Categories

(Core :: Layout, defect, P2)

x86
macOS
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: jruderman, Assigned: bzbarsky)

References

Details

(Keywords: assertion, testcase)

Attachments

(2 files)

Attached file testcase (deleted) —
Loading the testcase triggers: ###!!! ASSERTION: prev sibling not in line list: 'Not Reached', file /Users/jruderman/trunk/mozilla/layout/generic/nsBlockFrame.cpp, line 4805 ###!!! ASSERTION: unknown out of flow frame type: 'disp->mDisplay == NS_STYLE_DISPLAY_POPUP', file /Users/jruderman/trunk/mozilla/layout/generic/nsHTMLReflowState.cpp, line 522
I think this can lead to scary crashes. Is this bug related to bug 401042?
Flags: wanted1.9.1?
This looks like a bidi screwup to me... We call SplitInlineAncestors on the textframe inside the firstLetter. Then we try to split the float and stick it in the in-flow child list, which breaks. I suppose first-letter needs to be eBidiInlineContainer to handle cases when it's not floated, eh?
Attached patch This seems to do the trick (deleted) — Splinter Review
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Attachment #331231 - Flags: superreview?(roc)
Attachment #331231 - Flags: review?(roc)
Comment on attachment 331231 [details] [diff] [review] This seems to do the trick I'm not really sure how first-letter is supposed to behave with bidi. I think Simon's looked into it a little bit?
Attachment #331231 - Flags: superreview?(roc)
Attachment #331231 - Flags: superreview+
Attachment #331231 - Flags: review?(smontagu)
Attachment #331231 - Flags: review?(roc)
Blocks: 444484
Comment on attachment 331231 [details] [diff] [review] This seems to do the trick Umm. This regresses bug 384527 (which should show up as a test failure), but that may well be because my patch there depended on the previous buggy behaviour, like around https://bugzilla.mozilla.org/attachment.cgi?id=278544&action=diff#mozilla/layout/base/nsBidiPresUtils.cpp_sec4
Hmm. I'll make sure to run that test and see what happens. Thanks for the code pointer!
Flags: wanted1.9.1? → wanted1.9.1+
Depends on: 460389
Priority: -- → P2
Blocks: 477731
WFM on trunk. bz, do you care about the fate of your patch on this bug?
Not particularly, no.
That said, I'd like to know why it WFY. Did something get changed?
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → WORKSFORME
Could be a consequence of bug 332655 or one of its follow-ups
That said, I still see the assertions on trunk (OS X and Linux)
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Depends on: 491547
Should be fixed by bug 491547. Push testcase as crashtest http://hg.mozilla.org/mozilla-central/rev/4597c9ddc1ff
Status: REOPENED → RESOLVED
Closed: 15 years ago15 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Attachment #331231 - Flags: review?(smontagu)
Variations still crash, see bug 534768. Thanks for adding the crashtest, tn ;)
Variations still crash, see bug 534768. Thanks for adding the crashtest, tn ;)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: