Unreviewed assertion fix following r187031.
authorakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 20 Jul 2015 21:28:45 +0000 (21:28 +0000)
committerakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 20 Jul 2015 21:28:45 +0000 (21:28 +0000)
Just have GenericEventQueue::resume() return early if the queue isn't suspended.
Suspend/Resume calls are not always symmetrical in HTMLMediaElement.

* dom/GenericEventQueue.cpp:
(WebCore::GenericEventQueue::resume):

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

Source/WebCore/ChangeLog
Source/WebCore/dom/GenericEventQueue.cpp

index 1fa78e0..2a7d656 100644 (file)
@@ -1,3 +1,13 @@
+2015-07-20  Andreas Kling  <akling@apple.com>
+
+        Unreviewed assertion fix following r187031.
+
+        Just have GenericEventQueue::resume() return early if the queue isn't suspended.
+        Suspend/Resume calls are not always symmetrical in HTMLMediaElement.
+
+        * dom/GenericEventQueue.cpp:
+        (WebCore::GenericEventQueue::resume):
+
 2015-07-20  David Kilzer  <ddkilzer@apple.com>
 
         Unexpected ABI diffference between armv7 and armv7s in WebCore::GraphicsLayerCA::~GraphicsLayerCA()
index fa397d2..21a59a2 100644 (file)
@@ -131,7 +131,9 @@ void GenericEventQueue::suspend()
 
 void GenericEventQueue::resume()
 {
-    ASSERT(m_isSuspended);
+    if (!m_isSuspended)
+        return;
+
     m_isSuspended = false;
 
     if (m_pendingEvents.isEmpty())