Closed Bug 1667507 Opened 4 years ago Closed 4 years ago

Relax a failure-prone layout assertion "MOZ_ASSERT(kidOverflowBEnd >= kidBEnd)" to be non-fatal

Categories

(Core :: Layout: Positioned, task)

task

Tracking

()

RESOLVED FIXED
83 Branch
Tracking Status
firefox83 --- fixed

People

(Reporter: dholbert, Assigned: dholbert)

Details

Attachments

(1 file)

We have assertion that's known to fail on real sites & which isn't actually a sign of any imminent crash or other catastrophe, as far as I can tell:

        MOZ_ASSERT(kidOverflowBEnd >= kidBEnd);

https://searchfox.org/mozilla-central/rev/9fab6c0021ed9b103a70bf5c296b45949a2950bc/layout/generic/nsAbsoluteContainingBlock.cpp#202

See bug 1373898 and bug 1666888 for cases where the assertion fails in the wild. (We have reduced testcases on the former case.)

Ideally we should investigate and see why it's failing & fix the logic to prevent the failure; but until someone has cycles to do that, let's just make it non-fatal, because there's not really any reason for it to be fatal and having it be fatal blocks people from investigating more-severe issues on the affected sites. (& per reasoning at https://robert.ocallahan.org/2011/12/case-for-non-fatal-assertions.html )

Assignee: nobody → dholbert
Status: NEW → ASSIGNED
Pushed by dholbert@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e8e82eb1b9f0
Downgrade a positioned-layout assertion from fatal to non-fatal, since it doesn't lead to crashes/catastrophe and we know of web content that triggers it. r=TYLin
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 83 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: