mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset c8013b27a0fa (bug 1239899) for failing W(2). r=backout
This commit is contained in:
parent
c673f2121d
commit
3cc5c8ba63
@ -2714,21 +2714,18 @@ HTMLMediaElement::ReportMSETelemetry()
|
||||
void HTMLMediaElement::UnbindFromTree(bool aDeep,
|
||||
bool aNullParent)
|
||||
{
|
||||
RefPtr<HTMLMediaElement> self(this);
|
||||
nsCOMPtr<nsIRunnable> task = NS_NewRunnableFunction([self]() {
|
||||
if (self->IsInDoc() || self->mNetworkState == nsIDOMHTMLMediaElement::NETWORK_EMPTY) {
|
||||
return;
|
||||
if (!mPaused && mNetworkState != nsIDOMHTMLMediaElement::NETWORK_EMPTY) {
|
||||
Pause();
|
||||
}
|
||||
self->Pause();
|
||||
if (self->mDecoder) {
|
||||
self->mDecoder->NotifyOwnerActivityChanged();
|
||||
}
|
||||
});
|
||||
RunInStableState(task);
|
||||
|
||||
mElementInTreeState = ELEMENT_NOT_INTREE_HAD_INTREE;
|
||||
|
||||
nsGenericHTMLElement::UnbindFromTree(aDeep, aNullParent);
|
||||
|
||||
if (mDecoder) {
|
||||
MOZ_ASSERT(IsHidden());
|
||||
mDecoder->NotifyOwnerActivityChanged();
|
||||
}
|
||||
}
|
||||
|
||||
/* static */
|
||||
|
@ -0,0 +1,5 @@
|
||||
[pause-move-to-other-document.html]
|
||||
type: testharness
|
||||
[paused state when moving to other document]
|
||||
expected: FAIL
|
||||
|
@ -0,0 +1,5 @@
|
||||
[pause-move-within-document.html]
|
||||
type: testharness
|
||||
[paused state when moving within a document]
|
||||
expected: FAIL
|
||||
|
@ -0,0 +1,5 @@
|
||||
[pause-remove-from-document.html]
|
||||
type: testharness
|
||||
[paused state when removing from a document]
|
||||
expected: FAIL
|
||||
|
@ -0,0 +1,8 @@
|
||||
[autoplay.html]
|
||||
type: testharness
|
||||
[audio.autoplay and internal pause steps]
|
||||
expected: FAIL
|
||||
|
||||
[video.autoplay and internal pause steps]
|
||||
expected: FAIL
|
||||
|
Loading…
Reference in New Issue
Block a user