[Webkit-unassigned] [Bug 270571] New: [Modern Media Controls] HTMLMediaElement is never destoyed when showing media controls

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 6 05:49:30 PST 2024


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

            Bug ID: 270571
           Summary: [Modern Media Controls] HTMLMediaElement is never
                    destoyed when showing media controls
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Media
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: eocanha at igalia.com

At least in GStreamer-based ports (WPE and WebKitGTK, I haven't checked on Mac ports because I don't have the proper environment easily available), the media element is leaked after explicit deinitialization and detaching from the HTML document, even after manually triggering garbage collection using the web inspector.

For more details and a test case, see: https://github.com/WebPlatformForEmbedded/WPEWebKit/issues/1285

After some debugging, we've detected that 2 extra references to HTMLMediaElement appear when using the controls (3 refs in total), while in a scenario where the controls are hidden on purpose only 1 reference remains, which is released as soon as the GC kicks in.

-- 
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/20240306/3a3b6e35/attachment-0001.htm>


More information about the webkit-unassigned mailing list