RESOLVED FIXED161945
Web Inspector: Call Stack tree in the Debugger sidebar should mark the active call frame
https://bugs.webkit.org/show_bug.cgi?id=161945
Summary Web Inspector: Call Stack tree in the Debugger sidebar should mark the active...
Matt Baker
Reported 2016-09-13 20:26:41 PDT
Summary: Call Stack tree in the Debugger sidebar should mark the active call frame. Currently, there is no way to tell which call frame is active when another tree contains the selection. Note: Xcode shows an indicator (similar to the Inspector's instruction pointer marker) in the left side of the tree element. The indicator color depends on the parent tree element state: Default = gray Selected = dark gray Selected|Focused = white
Attachments
[Image] Xcode UI (88.53 KB, image/png)
2016-09-13 20:30 PDT, Matt Baker
no flags
[Image] Xcode UI - active call frame unfocused (27.50 KB, image/png)
2016-09-13 20:53 PDT, Matt Baker
no flags
[Patch] Proposed Fix (12.09 KB, patch)
2016-09-13 21:13 PDT, Matt Baker
no flags
[Video] with patch applied (323.84 KB, video/mp4)
2016-09-13 21:20 PDT, Matt Baker
no flags
Radar WebKit Bug Importer
Comment 1 2016-09-13 20:27:12 PDT
Matt Baker
Comment 2 2016-09-13 20:30:25 PDT
Created attachment 288764 [details] [Image] Xcode UI
Matt Baker
Comment 3 2016-09-13 20:53:02 PDT
Created attachment 288765 [details] [Image] Xcode UI - active call frame unfocused
Matt Baker
Comment 4 2016-09-13 21:13:38 PDT
Created attachment 288766 [details] [Patch] Proposed Fix
Matt Baker
Comment 5 2016-09-13 21:20:23 PDT
Created attachment 288768 [details] [Video] with patch applied
Joseph Pecoraro
Comment 6 2016-09-13 22:02:49 PDT
Comment on attachment 288766 [details] [Patch] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=288766&action=review r=me, the video looks great!! How does it look @1x? I assume as SVG it will look fine, but it would be worth checking out. Should it have window inactive styles? My guess is no. > Source/WebInspectorUI/UserInterface/Images/ActiveCallFrame.svg:1 > +<?xml version="1.0" encoding="utf-8"?> We should file a bug on GTK to add an Images/gtk/ActiveCallFrame.svg image and ensure they don't utterly break if the image is missing. > Source/WebInspectorUI/UserInterface/Views/CallFrameTreeElement.js:97 > + if (!this._statusImageElement) > + this._statusImageElement = useSVGSymbol("Images/ActiveCallFrame.svg", "status-image"); If the image is missing (GTK) will this throw a runtime error? If so, we will need to be graceful somehow.
Matt Baker
Comment 7 2016-09-14 13:37:57 PDT
(In reply to comment #6) > Comment on attachment 288766 [details] > [Patch] Proposed Fix > > View in context: > https://bugs.webkit.org/attachment.cgi?id=288766&action=review > > r=me, the video looks great!! > > How does it look @1x? I assume as SVG it will look fine, but it would be > worth checking out. It looks acceptable. > Should it have window inactive styles? My guess is no. Correct! > > Source/WebInspectorUI/UserInterface/Images/ActiveCallFrame.svg:1 > > +<?xml version="1.0" encoding="utf-8"?> > > We should file a bug on GTK to add an Images/gtk/ActiveCallFrame.svg image > and ensure they don't utterly break if the image is missing. Will do. > > Source/WebInspectorUI/UserInterface/Views/CallFrameTreeElement.js:97 > > + if (!this._statusImageElement) > > + this._statusImageElement = useSVGSymbol("Images/ActiveCallFrame.svg", "status-image"); > > If the image is missing (GTK) will this throw a runtime error? If so, we > will need to be graceful somehow. A "Failed to load resource" error is shown in the Inspector^2 console, but there are no other side effects.
Matt Baker
Comment 8 2016-09-14 13:56:45 PDT
Comment on attachment 288766 [details] [Patch] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=288766&action=review >>> Source/WebInspectorUI/UserInterface/Images/ActiveCallFrame.svg:1 >>> +<?xml version="1.0" encoding="utf-8"?> >> >> We should file a bug on GTK to add an Images/gtk/ActiveCallFrame.svg image and ensure they don't utterly break if the image is missing. > > Will do. https://bugs.webkit.org/show_bug.cgi?id=161987
WebKit Commit Bot
Comment 9 2016-09-14 14:18:06 PDT
Comment on attachment 288766 [details] [Patch] Proposed Fix Clearing flags on attachment: 288766 Committed r205930: <http://trac.webkit.org/changeset/205930>
WebKit Commit Bot
Comment 10 2016-09-14 14:18:10 PDT
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.