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
Patch (20.89 KB, patch)
2011-06-01 04:36 PDT, Yury Semikhatsky
no flags
Patch (21.36 KB, patch)
2011-06-01 07:25 PDT, Yury Semikhatsky
pfeldman: review+
Yury Semikhatsky
Comment 1 2011-06-01 04:11:35 PDT
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
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
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
Note You need to log in before you can comment on or make changes to this bug.