Bug 60267 - [Chromium] Web Inspector: provide initial implementation of worker inspector transport
Summary: [Chromium] Web Inspector: provide initial implementation of worker inspector ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Yury Semikhatsky
URL:
Keywords:
Depends on:
Blocks: 58541
  Show dependency treegraph
 
Reported: 2011-05-05 08:19 PDT by Yury Semikhatsky
Modified: 2011-05-23 08:08 PDT (History)
12 users (show)

See Also:


Attachments
Patch (28.28 KB, patch)
2011-05-05 08:29 PDT, Yury Semikhatsky
no flags Details | Formatted Diff | Diff
Patch (28.19 KB, patch)
2011-05-05 08:32 PDT, Yury Semikhatsky
no flags Details | Formatted Diff | Diff
Patch (26.01 KB, patch)
2011-05-20 08:57 PDT, Yury Semikhatsky
pfeldman: review+
webkit.review.bot: commit-queue-
Details | Formatted Diff | Diff
Patch for landing (32.84 KB, patch)
2011-05-23 07:18 PDT, Yury Semikhatsky
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yury Semikhatsky 2011-05-05 08:19:26 PDT
[Chromium] Web Inspector: provide initial implementation of worker inspector transport
Comment 1 Yury Semikhatsky 2011-05-05 08:29:13 PDT
Created attachment 92418 [details]
Patch
Comment 2 Yury Semikhatsky 2011-05-05 08:32:31 PDT
Created attachment 92419 [details]
Patch
Comment 3 Pavel Feldman 2011-05-17 08:15:30 PDT
Comment on attachment 92419 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=92419&action=review

> Source/WebKit/chromium/public/WebWorkerDevToolsAgent.h:42
> +    virtual void connect(WebDevToolsFrontend*) = 0;

I'd suggest that you inline these methods into WebWorker + inline corresponding client methods into WebWorkerClient. I understand that WebWorkerImpl.cpp will get all the code from the WebWorkerDevToolsAgentImpl below, but I think both worker and worker debugger interfaces are thin enough to be combined in a single class. Adding David (+Dimich) to get the Worker's perspective.
Comment 4 Dmitry Titov 2011-05-17 11:13:37 PDT
(In reply to comment #3)
> I'd suggest that you inline these methods into WebWorker + inline corresponding client methods into WebWorkerClient. I understand that WebWorkerImpl.cpp will get all the code from the WebWorkerDevToolsAgentImpl below, but I think both worker and worker debugger interfaces are thin enough to be combined in a single class.

I agree these interfaces, as in this patch, look thin enough to just add them into WebWorker/WebWorkerClient (or, actually, WebCommonWorkerClient),  with some method renaming. (WebWorker::connect() would be too ambiguous)

We already have methods like WebCommonWorkerClient::postConsoleMessageToWorkerObject() - I think these would be consumed by these new interfaces as well, right?
Comment 5 Yury Semikhatsky 2011-05-17 11:32:02 PDT
(In reply to comment #4)
> (In reply to comment #3)
> > I'd suggest that you inline these methods into WebWorker + inline corresponding client methods into WebWorkerClient. I understand that WebWorkerImpl.cpp will get all the code from the WebWorkerDevToolsAgentImpl below, but I think both worker and worker debugger interfaces are thin enough to be combined in a single class.
> 
> I agree these interfaces, as in this patch, look thin enough to just add them into WebWorker/WebWorkerClient (or, actually, WebCommonWorkerClient),  with some method renaming. (WebWorker::connect() would be too ambiguous)
> 
> We already have methods like WebCommonWorkerClient::postConsoleMessageToWorkerObject() - I think these would be consumed by these new interfaces as well, right?
It depends on how we proceed with console implementation in worker context. Once we have inspector agents in WorkerContext it may make sense to collect the messages in the worker process and send them to the page inspector only when inspector window is opened.
Comment 6 Dmitry Titov 2011-05-17 11:56:56 PDT
Comment on attachment 92419 [details]
Patch

Per discussion here, the patch could use some re-factoring. r- for now.
Comment 7 Yury Semikhatsky 2011-05-20 08:57:54 PDT
Created attachment 94228 [details]
Patch
Comment 8 WebKit Review Bot 2011-05-20 10:22:01 PDT
Comment on attachment 94228 [details]
Patch

Attachment 94228 [details] did not pass mac-ews (mac):
Output: http://queues.webkit.org/results/8719421
Comment 9 Yury Semikhatsky 2011-05-23 07:18:56 PDT
Created attachment 94422 [details]
Patch for landing
Comment 10 Yury Semikhatsky 2011-05-23 08:08:20 PDT
Committed r87074: <http://trac.webkit.org/changeset/87074>