mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
b=1069671 don't dispatch "update" after "abort" r=kinetik
--HG-- extra : rebase_source : 20f644edb8eb99791b29303adce90d3659582821
This commit is contained in:
parent
39403ad7cb
commit
c99f33e630
@ -289,7 +289,15 @@ void
|
||||
SourceBuffer::StopUpdating()
|
||||
{
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
MOZ_ASSERT(mUpdating);
|
||||
if (!mUpdating) {
|
||||
// The buffer append algorithm has been interrupted by abort().
|
||||
//
|
||||
// If the sequence appendBuffer(), abort(), appendBuffer() occurs before
|
||||
// the first StopUpdating() runnable runs, then a second StopUpdating()
|
||||
// runnable will be scheduled, but still only one (the first) will queue
|
||||
// events.
|
||||
return;
|
||||
}
|
||||
mUpdating = false;
|
||||
QueueAsyncSimpleEvent("update");
|
||||
QueueAsyncSimpleEvent("updateend");
|
||||
|
@ -1,9 +1,5 @@
|
||||
[SourceBuffer-abort-updating.html]
|
||||
type: testharness
|
||||
expected: ERROR
|
||||
[SourceBuffer#abort() (video/webm; codecs="vorbis,vp8") : Check the algorithm when the updating attribute is true.]
|
||||
expected: FAIL
|
||||
|
||||
[SourceBuffer#abort() (video/mp4) : Check the algorithm when the updating attribute is true.]
|
||||
expected: FAIL
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user