Fix the assertion in PageScriptDebugServer::didPause.
authortimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 9 Apr 2012 22:14:03 +0000 (22:14 +0000)
committertimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 9 Apr 2012 22:14:03 +0000 (22:14 +0000)
https://webkit.org/b/82943

Reviewed by Simon Fraser.

* bindings/js/PageScriptDebugServer.cpp:
(WebCore::PageScriptDebugServer::PageScriptDebugServer): Initialize m_pausedPage
to zero so the assert in didPause will not randomly fire the first time.

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

Source/WebCore/ChangeLog
Source/WebCore/bindings/js/PageScriptDebugServer.cpp

index e1e1256..526aeb3 100644 (file)
@@ -1,3 +1,15 @@
+2012-04-09  Timothy Hatcher  <timothy@apple.com>
+
+        Fix the assertion in PageScriptDebugServer::didPause.
+
+        https://webkit.org/b/82943
+
+        Reviewed by Simon Fraser.
+
+        * bindings/js/PageScriptDebugServer.cpp:
+        (WebCore::PageScriptDebugServer::PageScriptDebugServer): Initialize m_pausedPage
+        to zero so the assert in didPause will not randomly fire the first time.
+
 2012-04-09  Tim Horton  <timothy_horton@apple.com>
 
         FrameData constructor zeroes all fields, causing ImageOrientation to be 0
index 6da0869..efe4b67 100755 (executable)
@@ -69,6 +69,7 @@ PageScriptDebugServer& PageScriptDebugServer::shared()
 
 PageScriptDebugServer::PageScriptDebugServer()
     : ScriptDebugServer()
+    , m_pausedPage(0)
 {
 }