use release assertion for PresShell.cpp's MOZ_DIAGNOSTIC_ASSERT(!mForbiddenToFlush, "This is bad!")
Categories
(Core :: Layout, task)
Tracking
()
People
(Reporter: dholbert, Unassigned)
References
(Depends on 2 open bugs)
Details
Noticed this while triaging bug 1719483 (which is a case where this assertion fails):
void PresShell::DoFlushPendingNotifications(mozilla::ChangesToFlush aFlush) {
// FIXME(emilio, bug 1530177): Turn into a release assert when bug 1530188 and
// bug 1530190 are fixed.
MOZ_DIAGNOSTIC_ASSERT(!mForbiddenToFlush, "This is bad!");
All three bugs mentioned there are closed. Perhaps we can/should take action on the FIXME now and upgrade the assertion to a release assert?
(We do know of at least one way to make it fail -- bug 1719483 -- but in that case, release builds crash anyway, so there's no harm in crashing slightly sooner via this hypothetically-promoted release assertion.)
Searchfox link: https://searchfox.org/mozilla-central/rev/064a1e6a2a6f6aa30be8bf4edea2f8408f779d4d/layout/base/PresShell.cpp#4079-4082
Reporter | ||
Updated•3 years ago
|
Comment 1•3 years ago
|
||
There's also bug 1714290 which happens only with a11y enabled.
Comment 2•1 year ago
|
||
Has this been fairly stable for a few years? Maybe it is time to consider upgrading this assert again?
Comment 3•1 year ago
|
||
If not, maybe the comment should be updated to point to this bug and remove the reference to the three closed bugs.
Comment 4•1 year ago
|
||
We've seen a couple others recently.
Description
•