[wpt-sync] Sync PR 34005 - Fix block & unblock ordering when an inline style sheet mutates
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox102 | --- | fixed |
People
(Reporter: mozilla.org, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 34005 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/34005
Details from upstream follow.
Xiaocheng Hu <xiaochengh@chromium.org> wrote:
Fix block & unblock ordering when an inline style sheet mutates
When an inline \<style> mutates, it calls AddPendingBlockingSheet() for
the new style sheet first, and then calls RemovePendingBlockingSheet()
for the old style sheet.This used to be fine when those two methods were just adding /
subtracting some counters. However, after crrev.com/c/3503857, the two
methods become adding / removing the \<style> element into / from the
RenderBlockingResourceManager class's set of pending elements, which
assumes that we never double-add or double-remove any element. Then the
relevant states are broken.This patch reorders the call sites of the two methods to make sure we
remove it before re-adding it.Fixed: 1323319
Change-Id: If28e35fb794e7bd2d77107ab4f8e867ad66d88ba
Reviewed-on: https://chromium-review.googlesource.com/3636301
WPT-Export-Revision: 84fccbf3074146113e770a7f1225c499353aecd0
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 1•2 years ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=f95751ce31f7fe1f1eed5695b880cda27e131b69
Assignee | ||
Comment 2•2 years ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests and 1 subtests
Status Summary
Firefox
OK
: 1
PASS
: 1
Chrome
OK
: 1
PASS
: 1
Safari
OK
: 1
PASS
: 1
Links
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/467a28b6a1ad [wpt PR 34005] - Fix block & unblock ordering when an inline style sheet mutates, a=testonly
Comment 4•2 years ago
|
||
bugherder |
Description
•