Summary: | CSS parsing-related singletons should only be used on the main thread | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Chris Lord <clord> | ||||||||
Component: | CSS | Assignee: | Chris Lord <clord> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | andersca, changseok, darin, esprehn+autocc, ews-watchlist, glenn, gyuyoung.kim, kondapallykalyan, macpherson, menard, mmaxfield, pdr, sam, simon.fraser, thorton, webkit-bug-importer | ||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||
Version: | WebKit Nightly Build | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
Bug Depends on: | |||||||||||
Bug Blocks: | 204575 | ||||||||||
Attachments: |
|
Description
Chris Lord
2020-09-10 09:15:14 PDT
Created attachment 408451 [details]
Patch
Note that I changed the RenderTheme singletons for Gtk/Adwaita to MainThread but I haven't touched other platforms as I don't know if they have the same restriction. I expect, perhaps bar iOS, they do, but I'd rather not make the change blind, so if this is accepted, we can open a separate bug/bugs to keep track of other platforms that this doesn't include. I do wonder if NeverDestroyed should default to asserting the creation thread and the exception should be allowing concurrent access, rather than this way round. Created attachment 408525 [details]
Patch
Created attachment 408685 [details]
Patch
Committed r267009: <https://trac.webkit.org/changeset/267009> All reviewed patches have been landed. Closing bug and clearing flags on attachment 408685 [details]. |