Bug 165581 - Web Inspector: ThreadTreeElement should have a "Resume" status button when paused
Summary: Web Inspector: ThreadTreeElement should have a "Resume" status button when pa...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Matt Baker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-07 19:26 PST by Matt Baker
Modified: 2016-12-11 20:59 PST (History)
8 users (show)

See Also:


Attachments
Patch (8.43 KB, patch)
2016-12-07 19:32 PST, Matt Baker
no flags Details | Formatted Diff | Diff
[Image] Hovered tree element (290.81 KB, image/png)
2016-12-07 19:38 PST, Matt Baker
no flags Details
[Image] Selected tree element (290.92 KB, image/png)
2016-12-07 19:38 PST, Matt Baker
no flags Details
Patch for landing (8.19 KB, patch)
2016-12-11 17:58 PST, Matt Baker
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Baker 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.
Comment 1 Matt Baker 2016-12-07 19:32:50 PST
Created attachment 296463 [details]
Patch
Comment 2 BJ Burg 2016-12-07 19:38:04 PST
Please make screenshot.
Comment 3 Matt Baker 2016-12-07 19:38:15 PST
Created attachment 296464 [details]
[Image] Hovered tree element
Comment 4 Matt Baker 2016-12-07 19:38:46 PST
Created attachment 296465 [details]
[Image] Selected tree element
Comment 5 Joseph Pecoraro 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.
Comment 6 Matt Baker 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.
Comment 7 Matt Baker 2016-12-11 17:58:47 PST
Created attachment 296886 [details]
Patch for landing
Comment 8 WebKit Commit Bot 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>
Comment 9 WebKit Commit Bot 2016-12-11 20:59:55 PST
All reviewed patches have been landed.  Closing bug.