WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
167072
Web Inspector: can't jump from Search Tab result to see resource in other tabs (Resource, Debugger, Network)
https://bugs.webkit.org/show_bug.cgi?id=167072
Summary
Web Inspector: can't jump from Search Tab result to see resource in other tab...
Blaze Burg
Reported
2017-01-15 13:59:02 PST
I suggest we add a jump icon after the result, and clicking it jumps to the default tab for the resource. Control-clicking shows a shortcut menu with options to show in each supportedin tab (Show in Resources Tab, Show in Debugger Tab, etc). There is currently no way to directly jump to show the resource in a non-Search tab.
Attachments
Patch
(2.72 KB, patch)
2017-01-30 17:23 PST
,
Devin Rousso
no flags
Details
Formatted Diff
Diff
Patch
(2.94 KB, patch)
2017-01-31 16:47 PST
,
Devin Rousso
no flags
Details
Formatted Diff
Diff
Patch
(12.11 KB, patch)
2017-01-31 22:27 PST
,
Devin Rousso
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews122 for ios-simulator-wk2
(909.94 KB, application/zip)
2017-02-01 05:04 PST
,
Build Bot
no flags
Details
Patch
(19.16 KB, patch)
2017-02-01 14:51 PST
,
Devin Rousso
timothy
: review+
Details
Formatted Diff
Diff
Patch
(18.81 KB, patch)
2017-02-02 16:10 PST
,
Devin Rousso
no flags
Details
Formatted Diff
Diff
Show Obsolete
(5)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2017-01-15 13:59:18 PST
<
rdar://problem/30033496
>
Devin Rousso
Comment 2
2017-01-30 17:23:12 PST
Created
attachment 300165
[details]
Patch
Matt Baker
Comment 3
2017-01-31 15:27:01 PST
Comment on
attachment 300165
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=300165&action=review
> Source/WebInspectorUI/UserInterface/Views/TabBrowser.js:123 > + continue;
This prevents the Search tab from being shown when performing a search while another tab is showing: 1. Goto daringfireball.net 2. Show Network tab 3. Enter "fire" in search field, press Enter Expected: => Taken to search tab, first result selected Actual: => Network tab content view changes, tab does not (see trace). [Log] Trace bestTabContentViewForRepresentedObject (TabBrowser.js:123) tabContentViewForRepresentedObject (Main.js:1138) showRepresentedObject (Main.js:1157) showSourceCode (Main.js:1203) showOriginalOrFormattedSourceCodeTextRange (Main.js:1224) _treeSelectionDidChange (SearchSidebarPanel.js:371) dispatch (Object.js:170) dispatchEventToListeners (Object.js:177) select (TreeElement.js:507) _contentTreeOutlineDidFocus (NavigationSidebarPanel.js:667) focus select (TreeElement.js:476) revealAndSelect (TreeElement.js:516) (anonymous function) (SearchSidebarPanel.js:154) (anonymous function) forEachMatch (SearchSidebarPanel.js:120) resourceCallback (SearchSidebarPanel.js:149) resourceCallback _dispatchResponseToCallback (Connection.js:146) _dispatchResponse (Connection.js:116) dispatch (Connection.js:69) dispatch (InspectorBackend.js:154) dispatchNextQueuedMessageFromBackend (MessageDispatcher.js:42)
Devin Rousso
Comment 4
2017-01-31 16:47:34 PST
Created
attachment 300283
[details]
Patch
Devin Rousso
Comment 5
2017-01-31 22:27:12 PST
Created
attachment 300302
[details]
Patch
Build Bot
Comment 6
2017-02-01 05:03:57 PST
Comment on
attachment 300302
[details]
Patch
Attachment 300302
[details]
did not pass ios-sim-ews (ios-simulator-wk2): Output:
http://webkit-queues.webkit.org/results/2985322
New failing tests: css3/filters/backdrop/dynamic-with-clip-path.html
Build Bot
Comment 7
2017-02-01 05:04:00 PST
Created
attachment 300322
[details]
Archive of layout-test-results from ews122 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews122 Port: ios-simulator-wk2 Platform: Mac OS X 10.11.6
Timothy Hatcher
Comment 8
2017-02-01 09:12:36 PST
Comment on
attachment 300302
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=300302&action=review
> Source/WebInspectorUI/UserInterface/Views/SearchResultTreeElement.js:93 > + ondblclick(event) > + { > + const options = {ignoreSearchTab: true}; > + if (this.representedObject instanceof WebInspector.DOMSearchMatchObject) > + WebInspector.showMainFrameDOMTree(this.representedObject.domNode, options); > + else if (this.representedObject instanceof WebInspector.SourceCodeSearchMatchObject) > + WebInspector.showOriginalOrFormattedSourceCodeTextRange(this.representedObject.sourceCodeTextRange, options); > + }
This code makes more sense in a controller class, like we do for single click (selected) events.
> Source/WebInspectorUI/UserInterface/Views/TabBrowser.js:123 > + if (options.ignoreSearchTab && tabContentView instanceof WebInspector.SearchTabContentView) > + continue;
Maybe instead of ignoreSearchTab, ignoreCurrentTab? Though I think ignoreSearchTab is useful too. So this is fine as-is.
Devin Rousso
Comment 9
2017-02-01 12:50:24 PST
Comment on
attachment 300302
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=300302&action=review
>> Source/WebInspectorUI/UserInterface/Views/SearchResultTreeElement.js:93 >> + } > > This code makes more sense in a controller class, like we do for single click (selected) events.
So I've seen code go both ways for something like this (e.g. contextmenu items for "Reveal in Resources Tab"). Are you suggesting that I propagate this event to the controller (via some event listener or delegate), which is SearchSidebarPanel in this case? To me, that seems more complex that this solution.
Devin Rousso
Comment 10
2017-02-01 14:51:38 PST
Created
attachment 300356
[details]
Patch
Timothy Hatcher
Comment 11
2017-02-02 07:29:36 PST
Comment on
attachment 300356
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=300356&action=review
> Source/WebInspectorUI/UserInterface/Views/TreeElement.js:318 > + element.treeElement.dispatchEventToListeners(WebInspector.TreeElement.Event.DoubleClick);
This should prevent the double click to expand code that is above, if the event prevents default, like ondblclick does.
Devin Rousso
Comment 12
2017-02-02 16:10:26 PST
Created
attachment 300463
[details]
Patch
WebKit Commit Bot
Comment 13
2017-02-02 16:24:15 PST
Comment on
attachment 300463
[details]
Patch Clearing flags on attachment: 300463 Committed
r211608
: <
http://trac.webkit.org/changeset/211608
>
WebKit Commit Bot
Comment 14
2017-02-02 16:24:21 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.
Top of Page
Format For Printing
XML
Clone This Bug