[Webkit-unassigned] [Bug 278778] Adopted stylesheet wrappers get garbage collected even though still reachable
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Aug 28 09:51:42 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=278778
Alexey Proskuryakov <ap at webkit.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|The stylesheet is garbage |Adopted stylesheet wrappers
|collected even though it is |get garbage collected even
|still in use. |though still reachable
CC| |cdumez at apple.com,
| |koivisto at iki.fi,
| |rniwa at webkit.org
--- Comment #2 from Alexey Proskuryakov <ap at webkit.org> ---
This reproduces in Safari 18 beta.
Updated the test to remove WeakMap, as I don't think that it's relevant here.
The test succeeds in Chrome, although it appears to run into a Chrome developer tools bug - garbage collection doesn't happen even if I comment out the "document.adoptedStyleSheets = [stylesheet]" string. Seems like Chrome developer tools are holding to the stylesheet, so the way to test in Chrome is to open the test without devtools open, and to open them afterwards.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240828/13da3f21/attachment.htm>
More information about the webkit-unassigned
mailing list