mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 566779 - Don't move media to readyState HAVE_ENOUGH_DATA when resource loaded, if metadata not loaded yet r=roc
This commit is contained in:
parent
61d1102801
commit
e0a6c862fb
@ -1974,7 +1974,9 @@ void nsHTMLMediaElement::ResourceLoaded()
|
||||
mBegun = PR_FALSE;
|
||||
mNetworkState = nsIDOMHTMLMediaElement::NETWORK_IDLE;
|
||||
AddRemoveSelfReference();
|
||||
ChangeReadyState(nsIDOMHTMLMediaElement::HAVE_ENOUGH_DATA);
|
||||
if (mReadyState >= nsIDOMHTMLMediaElement::HAVE_METADATA) {
|
||||
ChangeReadyState(nsIDOMHTMLMediaElement::HAVE_ENOUGH_DATA);
|
||||
}
|
||||
// Ensure a progress event is dispatched at the end of download.
|
||||
DispatchAsyncEvent(NS_LITERAL_STRING("progress"));
|
||||
// The download has stopped.
|
||||
|
Loading…
Reference in New Issue
Block a user