Chromium Code Reviews| Index: third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js |
| diff --git a/third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js b/third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js |
| index 79421682d8e36ed8107f2693ae59e011a17df0b1..0164e037d997d67a95de72f8e8c9536704aa328c 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js |
| @@ -74,6 +74,8 @@ Sources.NavigatorView = class extends UI.VBox { |
| SDK.targetManager.observeTargets(this); |
| this._resetWorkspace(Workspace.workspace); |
| this._workspace.uiSourceCodes().forEach(this._addUISourceCode.bind(this)); |
| + Bindings.networkProjectManager.addEventListener( |
| + Bindings.NetworkProjectManager.Events.FrameAttributionChanged, this._frameAttributionChanged, this); |
| } |
| /** |
| @@ -241,6 +243,15 @@ Sources.NavigatorView = class extends UI.VBox { |
| return !uiSourceCode.project().isServiceProject(); |
| } |
| + /** |
| + * @param {!Common.Event} event |
| + */ |
| + _frameAttributionChanged(event) { |
| + var uiSourceCode = /** @type {!Workspace.UISourceCode} */ (event.data); |
| + this._removeUISourceCode(uiSourceCode); |
|
dgozman
2017/05/10 18:10:33
This is not very efficient if UISourceCode gets ma
lushnikov
2017/05/10 22:24:32
Done.
|
| + this._addUISourceCode(uiSourceCode); |
| + } |
| + |
| /** |
| * @param {!Workspace.UISourceCode} uiSourceCode |
| */ |