Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2092)

Unified Diff: Source/devtools/front_end/sources/NavigatorView.js

Issue 474783003: DevTools: Do not auto-reveal resuources with empty urls. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/sources/NavigatorView.js
diff --git a/Source/devtools/front_end/sources/NavigatorView.js b/Source/devtools/front_end/sources/NavigatorView.js
index 45f02f129da0460028cd3cb31a328ceee59e5193..ffcbc25f5874d34dae1de8b3b4429a989d738220 100644
--- a/Source/devtools/front_end/sources/NavigatorView.js
+++ b/Source/devtools/front_end/sources/NavigatorView.js
@@ -524,7 +524,7 @@ WebInspector.SourcesNavigatorView.prototype = {
var nodes = this._uiSourceCodeNodes.values();
for (var i = 0; i < nodes.length; ++i) {
var uiSourceCode = nodes[i].uiSourceCode();
- if (uiSourceCode.url === WebInspector.resourceTreeModel.inspectedPageURL())
+ if (WebInspector.resourceTreeModel.inspectedPageURL() && uiSourceCode.url === WebInspector.resourceTreeModel.inspectedPageURL())
this.revealUISourceCode(uiSourceCode, true);
}
},
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698