WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
61853
Web Inspector: allow opening inspector for existing workers
https://bugs.webkit.org/show_bug.cgi?id=61853
Summary
Web Inspector: allow opening inspector for existing workers
Yury Semikhatsky
Reported
2011-06-01 04:08:54 PDT
We need a sidebar pane that would enumerate all running workers and allow to open inspector for each of them.
Attachments
Patch
(20.67 KB, patch)
2011-06-01 04:11 PDT
,
Yury Semikhatsky
no flags
Details
Formatted Diff
Diff
Patch
(20.89 KB, patch)
2011-06-01 04:36 PDT
,
Yury Semikhatsky
no flags
Details
Formatted Diff
Diff
Patch
(21.36 KB, patch)
2011-06-01 07:25 PDT
,
Yury Semikhatsky
pfeldman
: review+
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Yury Semikhatsky
Comment 1
2011-06-01 04:11:35 PDT
Created
attachment 95582
[details]
Patch
WebKit Review Bot
Comment 2
2011-06-01 04:23:13 PDT
Comment on
attachment 95582
[details]
Patch
Attachment 95582
[details]
did not pass chromium-ews (chromium-xvfb): Output:
http://queues.webkit.org/results/8754499
Yury Semikhatsky
Comment 3
2011-06-01 04:36:23 PDT
Created
attachment 95585
[details]
Patch
Pavel Feldman
Comment 4
2011-06-01 06:59:21 PDT
Is there a screenshot? I was thinking that workers could be opened via clicking the links, not the checkboxes...
Pavel Feldman
Comment 5
2011-06-01 07:04:21 PDT
Comment on
attachment 95585
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=95585&action=review
Overall looks good. r- for no constants, no screenshots. Btw, how do we test this?
> Source/WebCore/inspector/front-end/WorkerManager.js:77 > + var win = this._workerIdToWindow[workerId];
please do not use abbreviations. workerWindow?
> Source/WebCore/inspector/front-end/WorkerManager.js:85 > + url = url.replace("docked=true&", "");
I thought that "docked" was processed in /chromium/ only. Is it not so?
> Source/WebCore/inspector/front-end/WorkersSidebarPane.js:119 > + workerManager.addEventListener("worker-added", this._workerAdded, this);
These should be constants.
> Source/WebCore/inspector/front-end/WorkersSidebarPane.js:139 > + workerItem.checkbox.checked = false;
I'd rather have a list of links.
Yury Semikhatsky
Comment 6
2011-06-01 07:25:36 PDT
Created
attachment 95598
[details]
Patch
Yury Semikhatsky
Comment 7
2011-06-01 07:29:19 PDT
(In reply to
comment #5
)
> (From update of
attachment 95585
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=95585&action=review
> > Overall looks good. r- for no constants, no screenshots. Btw, how do we test this? > > > Source/WebCore/inspector/front-end/WorkerManager.js:77 > > + var win = this._workerIdToWindow[workerId]; > > please do not use abbreviations. workerWindow? >
Done.
> > Source/WebCore/inspector/front-end/WorkerManager.js:85 > > + url = url.replace("docked=true&", ""); > > I thought that "docked" was processed in /chromium/ only. Is it not so? >
Yes, it is. We can add platform-dependent hook here or try to refactor Chromium code to make it mimic other ports behavior.
> > Source/WebCore/inspector/front-end/WorkersSidebarPane.js:119 > > + workerManager.addEventListener("worker-added", this._workerAdded, this); > > These should be constants. >
Done.
> > Source/WebCore/inspector/front-end/WorkersSidebarPane.js:139 > > + workerItem.checkbox.checked = false; > > I'd rather have a list of links.
I started with a list of links but it doesn't give you an idea on which workers are already being inspected. So I'd leave it as a list of checkboxes for now.
Yury Semikhatsky
Comment 8
2011-06-01 07:35:14 PDT
Committed
r87803
: <
http://trac.webkit.org/changeset/87803
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug