Changeset 88235 in webkit
- Timestamp:
- Jun 7, 2011 7:27:02 AM (13 years ago)
- Location:
- trunk/Source
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r88234 r88235 1 2011-06-03 Yury Semikhatsky <yurys@chromium.org> 2 3 Reviewed by Pavel Feldman. 4 5 [Chromium] Web Inspector: correctly handle disconnect from worker when script execution is paused 6 https://bugs.webkit.org/show_bug.cgi?id=62019 7 8 Dispatch disconnecFrontend message in debugger task mode to make sure 9 it is processed even if execution is paused. 10 11 * bindings/v8/WorkerScriptDebugServer.cpp: 12 (WebCore::WorkerScriptDebugServer::runMessageLoopOnPause): 13 (WebCore::WorkerScriptDebugServer::quitMessageLoopOnPause): 14 * bindings/v8/WorkerScriptDebugServer.h: 15 1 16 2011-06-07 Felician Marton <marton.felician.zoltan@stud.u-szeged.hu> 2 17 -
trunk/Source/WebCore/bindings/v8/WorkerScriptDebugServer.cpp
r83874 r88235 65 65 return 0; 66 66 } 67 68 const char* WorkerScriptDebugServer::debuggerTaskMode = "debugger"; 67 69 68 70 WorkerScriptDebugServer::WorkerScriptDebugServer() … … 133 135 MessageQueueWaitResult result; 134 136 do { 135 result = workerThread->runLoop().runInMode(workerContext, "debugger");137 result = workerThread->runLoop().runInMode(workerContext, debuggerTaskMode); 136 138 // Keep waiting until execution is resumed. 137 139 } while (result == MessageQueueMessageReceived && isPaused()); … … 145 147 void WorkerScriptDebugServer::quitMessageLoopOnPause() 146 148 { 147 // FIXME: do exit nested loop when listener is removed on pause.149 // Nothing to do here in case of workers since runMessageLoopOnPause will check for paused state after each debugger command. 148 150 } 149 151 -
trunk/Source/WebCore/bindings/v8/WorkerScriptDebugServer.h
r83874 r88235 49 49 void removeListener(ScriptDebugListener*, WorkerContext*); 50 50 51 static const char* debuggerTaskMode; 52 51 53 private: 52 54 virtual ScriptDebugListener* getDebugListenerForContext(v8::Handle<v8::Context>); -
trunk/Source/WebKit/chromium/ChangeLog
r88232 r88235 1 2011-06-03 Yury Semikhatsky <yurys@chromium.org> 2 3 Reviewed by Pavel Feldman. 4 5 [Chromium] Web Inspector: correctly handle disconnect from worker when script execution is paused 6 https://bugs.webkit.org/show_bug.cgi?id=62019 7 8 Dispatch disconnecFrontend message in debugger task mode to make sure 9 it is processed even if execution is paused. 10 11 * src/WebWorkerImpl.cpp: 12 (WebKit::WebWorkerImpl::detachDevTools): 13 (WebKit::WebWorkerImpl::dispatchDevToolsMessage): 14 1 15 2011-06-07 Naoki Takano <takano.naoki@gmail.com> 2 16 -
trunk/Source/WebKit/chromium/src/WebWorkerImpl.cpp
r87074 r88235 44 44 #include "SubstituteData.h" 45 45 #include "WorkerInspectorController.h" 46 #include "WorkerScriptDebugServer.h" 46 47 #include <wtf/OwnPtr.h> 47 48 #include <wtf/Threading.h> … … 167 168 void WebWorkerImpl::detachDevTools() 168 169 { 169 workerThread()->runLoop().postTask (createCallbackTask(disconnectFromWorkerContextInspectorTask, true));170 workerThread()->runLoop().postTaskForMode(createCallbackTask(disconnectFromWorkerContextInspectorTask, true), WorkerScriptDebugServer::debuggerTaskMode); 170 171 } 171 172 … … 178 179 void WebWorkerImpl::dispatchDevToolsMessage(const WebString& message) 179 180 { 180 workerThread()->runLoop().postTaskForMode(createCallbackTask(dispatchOnInspectorBackendTask, String(message)), "debugger");181 workerThread()->runLoop().postTaskForMode(createCallbackTask(dispatchOnInspectorBackendTask, String(message)), WorkerScriptDebugServer::debuggerTaskMode); 181 182 } 182 183
Note: See TracChangeset
for help on using the changeset viewer.