RESOLVED FIXED 152647
Web Inspector: List all resources that are initiated by the selected resource in the Network tab
https://bugs.webkit.org/show_bug.cgi?id=152647
Summary Web Inspector: List all resources that are initiated by the selected resource...
Devin Rousso
Reported 2016-01-01 21:10:54 PST
While debugging 3rd party scripts, I often find myself wanting to be able to see what each resource loads. It is currently possible to just look at each loaded resource and compare all the "Initiated" values, but this is very time consuming if there are a lot of loaded resources. As such, I think that adding another section just below that called "Initiated" which lists all the resources loaded by the selected one would be helpful.
Attachments
Patch (11.14 KB, patch)
2016-01-01 21:25 PST, Devin Rousso
timothy: review+
After patch is applied (123.43 KB, image/png)
2016-01-01 21:26 PST, Devin Rousso
no flags
Patch (3.72 KB, patch)
2016-01-02 13:58 PST, Devin Rousso
commit-queue: commit-queue-
Patch (10.56 KB, patch)
2016-01-02 15:39 PST, Devin Rousso
commit-queue: commit-queue-
Patch (10.48 KB, patch)
2016-01-02 15:42 PST, Devin Rousso
no flags
Patch (12.68 KB, patch)
2016-01-02 18:09 PST, Devin Rousso
no flags
Radar WebKit Bug Importer
Comment 1 2016-01-01 21:11:06 PST
Devin Rousso
Comment 2 2016-01-01 21:25:46 PST
Devin Rousso
Comment 3 2016-01-01 21:26:19 PST
Created attachment 268083 [details] After patch is applied
Timothy Hatcher
Comment 4 2016-01-02 12:48:29 PST
Comment on attachment 268082 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=268082&action=review Very cool! > Source/WebInspectorUI/UserInterface/Base/Main.js:2170 > +WebInspector.createResourceLink = function(resource, className) > +{ > + function handleClick(event) > + { > + event.stopPropagation(); > + event.preventDefault(); > + > + WebInspector.showRepresentedObject(resource); > + } > + > + let linkNode = document.createElement("a"); > + linkNode.classList.add("resource-link", className); > + linkNode.title = resource.url; > + linkNode.textContent = (resource.urlComponents.lastPathComponent || resource.url).insertWordBreakCharacters(); > + linkNode.addEventListener("click", handleClick.bind(this)); > + return linkNode; > +} > + > +WebInspector.createResourceLinkContainer = function(resources, containerClass, linkClass) { > + let resourceLinkContainer = document.createElement("div"); > + resourceLinkContainer.classList.add("resource-list", containerClass); > + for (let resource of resources) > + resourceLinkContainer.appendChild(WebInspector.createResourceLink(resource, linkClass)); > + return resourceLinkContainer; > +} This might be too special case to be reusable. Maybe just put in the sidebar code for now. > Source/WebInspectorUI/UserInterface/Views/Main.css:255 > + content: "-"; I don't think we need this. One per line is likely enough.
Devin Rousso
Comment 5 2016-01-02 13:58:40 PST
WebKit Commit Bot
Comment 6 2016-01-02 14:00:20 PST
Comment on attachment 268111 [details] Patch Rejecting attachment 268111 [details] from commit-queue. Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-01', 'apply-attachment', '--no-update', '--non-interactive', 268111, '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit Last 500 characters of output: ws/Main.css Hunk #1 FAILED at 243. 1 out of 1 hunk FAILED -- saving rejects to file Source/WebInspectorUI/UserInterface/Views/Main.css.rej patching file Source/WebInspectorUI/UserInterface/Views/ResourceDetailsSidebarPanel.js Hunk #1 FAILED at 219. 1 out of 1 hunk FAILED -- saving rejects to file Source/WebInspectorUI/UserInterface/Views/ResourceDetailsSidebarPanel.js.rej Failed to run "[u'/Volumes/Data/EWS/WebKit/Tools/Scripts/svn-apply', '--force']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit Full output: http://webkit-queues.webkit.org/results/640937
Devin Rousso
Comment 7 2016-01-02 15:39:07 PST
Created attachment 268116 [details] Patch Gotta love localizedStrings.js...
WebKit Commit Bot
Comment 8 2016-01-02 15:40:14 PST
Comment on attachment 268116 [details] Patch Rejecting attachment 268116 [details] from commit-queue. Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-03', 'validate-changelog', '--check-oops', '--non-interactive', 268116, '--port=mac']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit ChangeLog entry in Source/WebInspectorUI/ChangeLog is not at the top of the file. Full output: http://webkit-queues.webkit.org/results/641240
Devin Rousso
Comment 9 2016-01-02 15:42:21 PST
Created attachment 268117 [details] Patch Damn I'm just getting sloppy...
WebKit Commit Bot
Comment 10 2016-01-02 16:40:01 PST
Comment on attachment 268117 [details] Patch Clearing flags on attachment: 268117 Committed r194506: <http://trac.webkit.org/changeset/194506>
WebKit Commit Bot
Comment 11 2016-01-02 16:40:05 PST
All reviewed patches have been landed. Closing bug.
Devin Rousso
Comment 12 2016-01-02 18:09:28 PST
Reopening to attach new patch.
Devin Rousso
Comment 13 2016-01-02 18:09:30 PST
Devin Rousso
Comment 14 2016-01-02 18:10:15 PST
Comment on attachment 268122 [details] Patch Sorry I copied the wrong bug number.
Note You need to log in before you can comment on or make changes to this bug.