RESOLVED FIXED165581
Web Inspector: ThreadTreeElement should have a "Resume" status button when paused
https://bugs.webkit.org/show_bug.cgi?id=165581
Summary Web Inspector: ThreadTreeElement should have a "Resume" status button when pa...
Matt Baker
Reported 2016-12-07 19:26:42 PST
A context menu item exists, but having a status button that is revealed when the thread element is selected, or hovered, would improve discoverability.
Attachments
Patch (8.43 KB, patch)
2016-12-07 19:32 PST, Matt Baker
no flags
[Image] Hovered tree element (290.81 KB, image/png)
2016-12-07 19:38 PST, Matt Baker
no flags
[Image] Selected tree element (290.92 KB, image/png)
2016-12-07 19:38 PST, Matt Baker
no flags
Patch for landing (8.19 KB, patch)
2016-12-11 17:58 PST, Matt Baker
no flags
Matt Baker
Comment 1 2016-12-07 19:32:50 PST
Blaze Burg
Comment 2 2016-12-07 19:38:04 PST
Please make screenshot.
Matt Baker
Comment 3 2016-12-07 19:38:15 PST
Created attachment 296464 [details] [Image] Hovered tree element
Matt Baker
Comment 4 2016-12-07 19:38:46 PST
Created attachment 296465 [details] [Image] Selected tree element
Joseph Pecoraro
Comment 5 2016-12-08 14:05:46 PST
Comment on attachment 296463 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=296463&action=review r=me > Source/WebInspectorUI/UserInterface/Views/ThreadTreeElement.js:133 > + if (!DebuggerAgent.continueUntilNextRunLoop) > + return; I don't think this will be necessary. Any frontend that shows Workers has this backend support. > Source/WebInspectorUI/UserInterface/Views/TreeElementStatusButton.js:40 > + this._element.addEventListener("mousedown", (event) => { > + // Prevent tree element from being selected. > + event.stopPropagation(); > + }); I think this should probably be done on a case by case basis. It seems this would make clicking on the Loading indicator for incomplete resources do nothing instead of selecting the resource.
Matt Baker
Comment 6 2016-12-08 15:26:17 PST
(In reply to comment #5) > Comment on attachment 296463 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=296463&action=review > > r=me > > > Source/WebInspectorUI/UserInterface/Views/ThreadTreeElement.js:133 > > + if (!DebuggerAgent.continueUntilNextRunLoop) > > + return; > > I don't think this will be necessary. Any frontend that shows Workers has > this backend support. > > > Source/WebInspectorUI/UserInterface/Views/TreeElementStatusButton.js:40 > > + this._element.addEventListener("mousedown", (event) => { > > + // Prevent tree element from being selected. > > + event.stopPropagation(); > > + }); > > I think this should probably be done on a case by case basis. It seems this > would make clicking on the Loading indicator for incomplete resources do > nothing instead of selecting the resource. Good point! Will fix.
Matt Baker
Comment 7 2016-12-11 17:58:47 PST
Created attachment 296886 [details] Patch for landing
WebKit Commit Bot
Comment 8 2016-12-11 20:59:51 PST
Comment on attachment 296886 [details] Patch for landing Clearing flags on attachment: 296886 Committed r209698: <http://trac.webkit.org/changeset/209698>
WebKit Commit Bot
Comment 9 2016-12-11 20:59:55 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.