Bug 115693
| Summary: | Media element leaking in Youtube for iPad | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Philippe Normand <pnormand> |
| Component: | Media | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | allan.jensen, ap, ehdgms, eric.carlson, james.hilliard1, jer.noble |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Philippe Normand
Loading youtube.com with the user-agent of the iPad, play one video, wait a few seconds and click on another video on the right side list. The first media element and its associated MediaPlayer/MediaPlayerPrivate is not destroyed.
I can reproduce this issue with the GTK MiniBrowser at least. In the GNOME Sound properties I can see the WebProcess keeps the sound card open for 2 connections.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Eric Carlson
(In reply to comment #0)
> Loading youtube.com with the user-agent of the iPad, play one video, wait a few seconds and click on another video on the right side list. The first media element and its associated MediaPlayer/MediaPlayerPrivate is not destroyed.
>
This implies that it is a bug in the youtube.com code used when they think user is on an iPad.
Dongheun Kang
There is a web page created by this way. For example, videojs.com. recreate video element.
Allan Sandfeld Jensen
If you implement the activity triggered garbage collector (GCActivityCallback), the garbage collection will trigger sooner or later when new JS objects are allocated.
James Hilliard
(In reply to Philippe Normand from comment #0)
> The first media element and its associated MediaPlayer/MediaPlayerPrivate is not destroyed.
This looks somewhat similar to the issue I'm seeing in https://bugs.webkit.org/show_bug.cgi?id=241549
> In the GNOME Sound properties I can see the WebProcess keeps the sound card open for 2 connections.
I'm seeing this except with WPEWebProcess connections in pipewire.