Reviewed by Tim.
authorkmccullough@apple.com <kmccullough@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Nov 2007 22:24:49 +0000 (22:24 +0000)
committerkmccullough@apple.com <kmccullough@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Nov 2007 22:24:49 +0000 (22:24 +0000)
        - Added guards to the wait loop so execution would not hang and now the
        console window can process JavaScript.

        * WebScriptDebugServer.cpp:
        (WebScriptDebugServer::suspendProcessIfPaused):

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

WebKit/win/ChangeLog
WebKit/win/WebScriptDebugServer.cpp

index e10a109904154c4507f92ae8576b03038cce6d22..bc8ae1e233866d65551bd8352f58bba311be08da 100644 (file)
@@ -1,3 +1,13 @@
+2007-11-28  Kevin McCullough  <kmccullough@apple.com>
+
+        Reviewed by Tim.
+
+        - Added guards to the wait loop so execution would not hang and now the
+        console window can process JavaScript.
+
+        * WebScriptDebugServer.cpp:
+        (WebScriptDebugServer::suspendProcessIfPaused):
+
 2007-11-28  Anders Carlsson  <andersca@apple.com>
 
         Reviewed by Adam.
index fe721c542c93dcec2ad38b7b48bd5853597dbe92..c20beb47ff023757f3cfa3f351ce181d3c1f7156 100644 (file)
@@ -185,6 +185,13 @@ HRESULT STDMETHODCALLTYPE WebScriptDebugServer::isPaused(
 
 void WebScriptDebugServer::suspendProcessIfPaused()
 {
+    static bool alreadyHere = false;
+
+    if (alreadyHere)
+        return;
+
+    alreadyHere = true;
+
     MSG msg;
     while (m_paused && GetMessage(&msg, 0, 0, 0)) {
         // FIXME: Listen for Drosera dying. You will get removeListener calls but what if it crashes?
@@ -196,6 +203,8 @@ void WebScriptDebugServer::suspendProcessIfPaused()
         m_step = false;
         m_paused = true;
     }
+
+    alreadyHere = false;
 }
 
 // IWebScriptDebugListener