[Webkit-unassigned] [Bug 66230] Also release media resources when media is completely loaded.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 16 11:03:58 PDT 2011


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





--- Comment #8 from Eric Carlson <eric.carlson at apple.com>  2011-08-16 11:03:58 PST ---
(In reply to comment #7)
> If the media resource is loaded from a data: URL, going to a loaded state is the right thing to do since there's no network activity and no progress event. When a site loads some data: URL objects for games, and user leaves the page that would leave a lot of media engines remain in memory, which can be quite heavy.
> 
> Currently there's no way for a media engine to know that it can clean up safely once it reached loaded state, what about we call cancelLoad() and let the media engine to decide what to do with its internal resources?

That isn't a good idea, cancelLoad() is currently called from HTMLMediaElement::prepareForLoad to tell a media engine to clean up in preparation for a new url. Apple's media engines dispose of all assets in cancelLoad, so all state is lost. I assume at least some others do the same.

We could add a new media engine function that is called when its document becomes active/inactive.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list