Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Web Inspector: REGRESSION(?): Sources: WebSocket status not shown whe…
…n organized By Path

https://bugs.webkit.org/show_bug.cgi?id=218679

Reviewed by Brian Burg.

* UserInterface/Views/SourcesNavigationSidebarPanel.js:
(WI.SourcesNavigationSidebarPanel.prototype._addResource):
Make sure to use `WI.WebSocketResourceTreeElement` for `WI.WebSocketResource`.


Canonical link: https://commits.webkit.org/231528@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@269754 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
dcrousso committed Nov 12, 2020
1 parent 7da1e7d commit 0b66d69
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
11 changes: 11 additions & 0 deletions Source/WebInspectorUI/ChangeLog
@@ -1,3 +1,14 @@
2020-11-12 Devin Rousso <drousso@apple.com>

Web Inspector: REGRESSION(?): Sources: WebSocket status not shown when organized By Path
https://bugs.webkit.org/show_bug.cgi?id=218679

Reviewed by Brian Burg.

* UserInterface/Views/SourcesNavigationSidebarPanel.js:
(WI.SourcesNavigationSidebarPanel.prototype._addResource):
Make sure to use `WI.WebSocketResourceTreeElement` for `WI.WebSocketResource`.

2020-11-11 John Wilander <wilander@apple.com>

PCM: Change from ad-click-attribution to private-click-measurement (in all forms, including .well-known URL)
Expand Down
Expand Up @@ -1080,8 +1080,10 @@ WI.SourcesNavigationSidebarPanel = class SourcesNavigationSidebarPanel extends W
let resourceTreeElement = null;
if (resource instanceof WI.CSSStyleSheet)
resourceTreeElement = new WI.CSSStyleSheetTreeElement(resource);
else
resourceTreeElement = new WI.ResourceTreeElement(resource, resource, {allowDirectoryAsName: true, hideOrigin: true});
else {
let constructor = resource.type === WI.Resource.Type.WebSocket ? WI.WebSocketResourceTreeElement : WI.ResourceTreeElement;
resourceTreeElement = new constructor(resource, resource, {allowDirectoryAsName: true, hideOrigin: true});
}

let index = insertionIndexForObjectInListSortedByFunction(resourceTreeElement, parentTreeElement.children, this._boundCompareTreeElements);
parentTreeElement.insertChild(resourceTreeElement, index);
Expand Down

0 comments on commit 0b66d69

Please sign in to comment.