Bug 64617 - <video> element not in a document should not be collected while playing
Summary: <video> element not in a document should not be collected while playing
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-15 12:40 PDT by Eric Carlson
Modified: 2011-07-15 17:19 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Carlson 2011-07-15 12:40:31 PDT
According to http://www.w3.org/TR/html5/video.html#media-playback, media elements that are not in the document should not be collected while not paused:

    Media elements that are potentially playing while not in a Document must not play
    any video, but should play any audio component. Media elements must not stop
    playing just because all references to them have been removed; only once a media
    element is in a state where no further audio could ever be played by that element
    may the element be garbage collected.

JSNodeCustom.cpp is supposed to do this, but it only considers <audio> elements.