WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
168021
Web Inspector: Prefer Resources tab over Network tab when showing files
https://bugs.webkit.org/show_bug.cgi?id=168021
Summary
Web Inspector: Prefer Resources tab over Network tab when showing files
Devin Rousso
Reported
2017-02-08 14:42:44 PST
I often find it very annoying that if I open a page after it loads (the Network tab will therefore be empty), it will show a resource (such as via an option-click or context menu) in the Network tab if it was more recently used than the Resources tab. I think that the Resources tab should always be preferred over the Network tab, unless the Resources tab is not open in the tab bar.
Attachments
Patch
(25.22 KB, patch)
2017-02-08 15:34 PST
,
Devin Rousso
timothy
: review+
Details
Formatted Diff
Diff
Patch
(26.76 KB, patch)
2017-02-21 14:07 PST
,
Devin Rousso
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Devin Rousso
Comment 1
2017-02-08 15:34:55 PST
Created
attachment 300975
[details]
Patch
Devin Rousso
Comment 2
2017-02-08 15:38:34 PST
Comment on
attachment 300975
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=300975&action=review
> Source/WebInspectorUI/UserInterface/Views/TabBrowser.js:118 > + if (options.ignoreNetworkTab && tabContentView instanceof WebInspector.NetworkTabContentView)
One edge-case I was thinking of would be a situation where no other tab other than the Network tab was currently open and the user clicks a "Reveal in Resources Tab" context menu item. In this case, a Resources tab is forcibly opened and selected. I was thinking that "ignoreNetworkTab" (and all other "ignore*Tab" options) would really only act like a suggestion, and if there was no other tab than the Network tab it would still display. This would be easy to implement, as all you'd have to do is add another loop over `this._recentTabContentViews` but without any `continue`s. Any thoughts?
Devin Rousso
Comment 3
2017-02-21 12:46:08 PST
***
Bug 154034
has been marked as a duplicate of this bug. ***
Timothy Hatcher
Comment 4
2017-02-21 12:49:56 PST
Comment on
attachment 300975
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=300975&action=review
> Source/WebInspectorUI/UserInterface/Views/TabBrowser.js:121 > if (tabContentView.canShowRepresentedObject(representedObject))
Having NetworkTaContentView override canShowRepresentedObject to return false when the resource isn't in the DataGrid would be good too.
Devin Rousso
Comment 5
2017-02-21 14:07:19 PST
Created
attachment 302305
[details]
Patch
WebKit Commit Bot
Comment 6
2017-02-21 14:46:15 PST
Comment on
attachment 302305
[details]
Patch Clearing flags on attachment: 302305 Committed
r212761
: <
http://trac.webkit.org/changeset/212761
>
WebKit Commit Bot
Comment 7
2017-02-21 14:46:19 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