| Index: Source/core/html/HTMLMediaElement.cpp
|
| diff --git a/Source/core/html/HTMLMediaElement.cpp b/Source/core/html/HTMLMediaElement.cpp
|
| index 5ced1f85324204fd73379398ccbe8b91242a42b3..e9197d5dd80e5a0dfbea8ee0c9d99392963ffc30 100644
|
| --- a/Source/core/html/HTMLMediaElement.cpp
|
| +++ b/Source/core/html/HTMLMediaElement.cpp
|
| @@ -497,7 +497,7 @@ void HTMLMediaElement::removedFrom(ContainerNode* insertionPoint)
|
| WTF_LOG(Media, "HTMLMediaElement::removedFrom");
|
|
|
| m_active = false;
|
| - if (insertionPoint->inDocument()) {
|
| + if (insertionPoint->inDocument() && insertionPoint->document().isActive()) {
|
| configureMediaControls();
|
| if (m_networkState > NETWORK_EMPTY)
|
| pause();
|
|
|