- 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
+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.
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?
m_step = false;
m_paused = true;
}
+
+ alreadyHere = false;
}
// IWebScriptDebugListener