Closed Bug 2085504 Opened 1 month ago Closed 29 days ago

[wpt-sync] Sync PR 64016 - Make singleton Persistents in css/ thread local

Categories

(Core :: DOM: CSS Object Model, task, P4)

task

Tracking

()

RESOLVED FIXED
162 Branch
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}

Component: web-platform-tests → DOM: CSS Object Model
Product: Testing → Core

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

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Status: NEW → RESOLVED
Closed: 29 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.