RESOLVED FIXED 173435
Web Inspector: Group Inspector Style Sheets as part of the Stylesheets folder
https://bugs.webkit.org/show_bug.cgi?id=173435
Summary Web Inspector: Group Inspector Style Sheets as part of the Stylesheets folder
Devin Rousso
Reported 2017-06-15 14:17:39 PDT
Currently, Inspector Style Sheet resources are only visible in the "All Resources" option.
Attachments
Patch (1.82 KB, patch)
2017-06-15 14:39 PDT, Devin Rousso
no flags
Devin Rousso
Comment 1 2017-06-15 14:39:35 PDT
Nikita Vasilyev
Comment 2 2017-06-19 12:21:56 PDT
Comment on attachment 313012 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=313012&action=review > Source/WebInspectorUI/ChangeLog:4 > + Web Inspector: Group Inspector Style Sheets as part of the Stylesheets folder > + https://bugs.webkit.org/show_bug.cgi?id=173435 Would be nice to add a comment to make it clear it's Stylesheets folder in the *Resources* tab. > Source/WebInspectorUI/UserInterface/Views/ResourceSidebarPanel.js:230 > + if (treeElement instanceof WebInspector.CSSStyleSheetTreeElement) > + return selectedScopeBarItem[WebInspector.ResourceSidebarPanel.ResourceTypeSymbol] === WebInspector.Resource.Type.Stylesheet; > + Non Web Inspector created stylesheets go through the code path a few lines below: return treeElement.resource.type === selectedScopeBarItem[WebInspector.ResourceSidebarPanel.ResourceTypeSymbol]; Since a Web Inspector created stylesheet doesn't have treeElement.resource.type, we need a special case. Did I understand it correctly?
Joseph Pecoraro
Comment 3 2017-07-05 20:14:37 PDT
Comment on attachment 313012 [details] Patch This seems fine.
WebKit Commit Bot
Comment 4 2017-07-05 20:42:32 PDT
Comment on attachment 313012 [details] Patch Clearing flags on attachment: 313012 Committed r219185: <http://trac.webkit.org/changeset/219185>
WebKit Commit Bot
Comment 5 2017-07-05 20:42:34 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.