[wpt-sync] Sync PR 64016 - Make singleton Persistents in css/ thread local
Categories
(Core :: DOM: CSS Object Model, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 64016 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/64016
Details from upstream follow.
Rune Lillesveen <futhark@chromium.org> wrote:
Make singleton Persistents in css/ thread local
CSS parsing can happen on multiple threads. One example is canvas
context parsing, which is limited to a certain set of values for which
we have previously avoided general property parsing by not allowing
unparsed values. However, for the typed OM API CSSUnparsedValue, we can
parse arbitrary property values in if(supports()) like this:CSSUnparsedValue(['if(supports(animation: a): 1px)']).toString();
In some cases we rely on static singletons which are sometimes allocated
on the oilpan heap, which can not be safely constructed or accessed
cross thread.Introduce ThreadSpecific singletons for these.
Bug: 575201475, 575201060
Change-Id: I7a9e53999afd4b093f3ff0fcea88d0f9766536ca
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8608808
Reviewed-by: Michael Lippautz \<mlippautz@chromium.org>
Commit-Queue: Rune Lillesveen \<futhark@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1724494}
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=111052
| Assignee | ||
Comment 2•1 month ago
|
||
CI Results
Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 2 tests
Status Summary
Firefox
PASS : 2
Chrome
PASS : 1
CRASH: 1
Safari
PASS : 2
Links
Comment 4•29 days ago
|
||
| bugherder | ||
Description
•