зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1244768 part 5 - reject pending play promises while the playback reaching the end; r=jwwang
4.8.12.8 https://html.spec.whatwg.org/multipage/embedded-content.html#dom-media-ended MozReview-Commit-ID: H7Tw0XGzpW0 --HG-- extra : rebase_source : 409c1bb62baf1dbffff4d22c8d0494dc8a41147e extra : intermediate-source : b5347204487023cdee9c04ef735addafa2124887 extra : source : f89758cbd1109ab92db1a644caa7c450a45757c0
This commit is contained in:
Родитель
85f1c5b29d
Коммит
599fed6bd5
|
@ -5146,7 +5146,12 @@ void HTMLMediaElement::PlaybackEnded()
|
|||
return;
|
||||
}
|
||||
|
||||
Pause();
|
||||
FireTimeUpdate(false);
|
||||
|
||||
if (!mPaused) {
|
||||
Pause();
|
||||
AsyncRejectPendingPlayPromises(NS_ERROR_DOM_MEDIA_ABORT_ERR);
|
||||
}
|
||||
|
||||
if (mSrcStream) {
|
||||
// A MediaStream that goes from inactive to active shall be eligible for
|
||||
|
@ -5154,7 +5159,6 @@ void HTMLMediaElement::PlaybackEnded()
|
|||
mAutoplaying = true;
|
||||
}
|
||||
|
||||
FireTimeUpdate(false);
|
||||
DispatchAsyncEvent(NS_LITERAL_STRING("ended"));
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче