[Webkit-unassigned] [Bug 278778] New: The stylesheet is garbage collected even though it is still in use.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 28 02:42:25 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=278778

            Bug ID: 278778
           Summary: The stylesheet is garbage collected even though it is
                    still in use.
           Product: WebKit
           Version: Safari 17
          Hardware: Unspecified
                OS: macOS 14
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: DOM
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: 32jojo32 at gmail.com

Created attachment 472324

  --> https://bugs.webkit.org/attachment.cgi?id=472324&action=review

minimal reproducible example

When opening the attached HTML file in Safari, the stylesheet is unexpectedly garbage collected and removed from the WeakMap, even though it is still referenced in document.adoptedStylesheets[0]. 


Steps to Reproduce:

1. Open the attached HTML file in Safari.
2. Open Developer Tools.
3. See console logs.

-- 
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/e223339e/attachment-0001.htm>


More information about the webkit-unassigned mailing list