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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sources/WorkspaceMappingTip.js

Issue 1523193002: DevTools: merge UISourceCode's parentPath, name, originURL and uri. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaselined Created 5 years 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
Index: third_party/WebKit/Source/devtools/front_end/sources/WorkspaceMappingTip.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/WorkspaceMappingTip.js b/third_party/WebKit/Source/devtools/front_end/sources/WorkspaceMappingTip.js
index 5043d1df622966ade73fec78189d9f8a8d5fff86..7e10c1c14cd514fca8a888db5dcdbce05fd7538e 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/WorkspaceMappingTip.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/WorkspaceMappingTip.js
@@ -58,12 +58,10 @@ WebInspector.WorkspaceMappingTip.prototype = {
var networkProjects = this._workspace.projectsForType(WebInspector.projectTypes.Network);
networkProjects = networkProjects.concat(this._workspace.projectsForType(WebInspector.projectTypes.ContentScripts));
for (var i = 0; i < networkProjects.length; ++i) {
- if (!this._isLocalHost(networkProjects[i].url()))
- continue;
var name = uiSourceCode.name();
var networkUiSourceCodes = networkProjects[i].uiSourceCodes();
for (var j = 0; j < networkUiSourceCodes.length; ++j) {
- if (networkUiSourceCodes[j].name() === name) {
+ if (networkUiSourceCodes[j].name() === name && this._isLocalHost(networkUiSourceCodes[j].originURL())) {
this._showMappingInfobar(uiSourceCode, false);
return;
}

Powered by Google App Engine
This is Rietveld 408576698