CRASH at WebCore::TaskDispatcher<WebCore::ScriptExecutionContext>::postTask + 38
authorjer.noble@apple.com <jer.noble@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 31 Jul 2015 20:21:15 +0000 (20:21 +0000)
committerjer.noble@apple.com <jer.noble@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 31 Jul 2015 20:21:15 +0000 (20:21 +0000)
 https://bugs.webkit.org/show_bug.cgi?id=147485

 Rubber-stamped by Joseph Pecoraro.

 Follow-up test crash fix: call superclass's contextDestroyed() which allows the
 m_scriptExecutionContext variable to be cleared.

 * html/HTMLMediaElement.cpp:
 (WebCore::HTMLMediaElement::contextDestroyed):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@187675 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/html/HTMLMediaElement.cpp

index e3afcfb..2c46e35 100644 (file)
@@ -1,3 +1,16 @@
+2015-07-31  Jer Noble  <jer.noble@apple.com>
+
+         CRASH at WebCore::TaskDispatcher<WebCore::ScriptExecutionContext>::postTask + 38
+         https://bugs.webkit.org/show_bug.cgi?id=147485
+
+         Rubber-stamped by Joseph Pecoraro.
+
+         Follow-up test crash fix: call superclass's contextDestroyed() which allows the
+         m_scriptExecutionContext variable to be cleared.
+
+         * html/HTMLMediaElement.cpp:
+         (WebCore::HTMLMediaElement::contextDestroyed):
+
 2015-07-31  Joseph Pecoraro  <pecoraro@apple.com>
 
         Only generate "themeWin*" UserAgentStyleSheet constants for Windows builds
index 6ba7423..cf0b3ff 100644 (file)
@@ -4913,6 +4913,8 @@ void HTMLMediaElement::contextDestroyed()
     m_seekTaskQueue.close();
     m_resizeTaskQueue.close();
     m_shadowDOMTaskQueue.close();
+
+    ActiveDOMObject::contextDestroyed();
 }
 
 void HTMLMediaElement::stop()