[Webkit-unassigned] [Bug 93519] Web Inspector: implement WorkerScriptDebugServer

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Sep 24 08:43:58 PDT 2012


Yury Semikhatsky <yurys at chromium.org> changed:

           What    |Removed                     |Added
 Attachment #161450|review?                     |review-
               Flag|                            |

--- Comment #4 from Yury Semikhatsky <yurys at chromium.org>  2012-09-24 08:44:26 PST ---
(From update of attachment 161450)
View in context: https://bugs.webkit.org/attachment.cgi?id=161450&action=review

> Source/JavaScriptCore/parser/Parser.h:1039
> +    if (debugger && !debugger->isWorkerDebugger() && !ParsedNode::scopeIsFunction)

How does inspector get notified about parsed scripts in case of worker if is is skipped here?

> Source/WebCore/bindings/js/ScriptDebugServer.cpp:447
> +void ScriptDebugServer::blockToWaitInstruction(bool& stop)

I'd call it runEventLoopWhilePaused

> Source/WebCore/bindings/js/ScriptDebugServer.h:117
> +    virtual void blockToWaitInstruction(bool& stop);

m_doneProcessingDebuggerEvents is a protected field, no need to pass a reference to it as an argument.

> Source/WebCore/bindings/js/WorkerScriptDebugServer.cpp:71
> +    m_workerContext->script()->attachDebugger(this);

This should happen only when first listener is added. We should probably simplify the API as I am not aware of any cases when we may have more than one listener.

> Source/WebCore/bindings/js/WorkerScriptDebugServer.cpp:81
> +    m_workerContext->script()->detachDebugger(this);

This should only occur when there are no listeners.

> Source/WebCore/bindings/js/WorkerScriptDebugServer.h:48
> +    bool isWorkerDebugger() { return true; }

This method should be marked virtual.

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the webkit-unassigned mailing list