Bug 124898 - video.currentSrc should return empty when no resource is loaded
Summary: video.currentSrc should return empty when no resource is loaded
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Eric Carlson
Depends on:
Reported: 2013-11-26 11:23 PST by Eric Carlson
Modified: 2013-11-26 12:09 PST (History)
5 users (show)

See Also:

Proposed patch. (3.74 KB, patch)
2013-11-26 11:33 PST, Eric Carlson
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Carlson 2013-11-26 11:23:53 PST
The spec says:

    Returns the address of the current media resource.
    Returns the empty string when there is no media resource.

we don't clear m_currentSrc when a resource is unloaded.
Comment 1 Eric Carlson 2013-11-26 11:33:29 PST
Created attachment 217892 [details]
Proposed patch.
Comment 2 WebKit Commit Bot 2013-11-26 12:08:58 PST
Comment on attachment 217892 [details]
Proposed patch.

Clearing flags on attachment: 217892

Committed r159789: <http://trac.webkit.org/changeset/159789>
Comment 3 WebKit Commit Bot 2013-11-26 12:09:04 PST
All reviewed patches have been landed.  Closing bug.