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

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

Issue 2376583002: DevTools: remove WI.NetworkMapping.networkURL (Closed)
Patch Set: do not blackbox fs uiSourceCodes Created 4 years, 3 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
Index: third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js b/third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js
index 58aa54146e58d6a6fb7fa7ecf487e949c7be7080..5766476fc02776a9a69c92afa5b7286265cbd01c 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js
@@ -114,7 +114,7 @@ WebInspector.JavaScriptSourceFrame.prototype = {
infobar.createDetailsRowMessage(WebInspector.UIString("The content of this file on the file system:\u00a0")).appendChild(
WebInspector.linkifyURLAsNode(fileURL, fileURL, "source-frame-infobar-details-url", true));
- var scriptURL = WebInspector.networkMapping.networkURL(this.uiSourceCode());
+ var scriptURL = this.uiSourceCode().url();
infobar.createDetailsRowMessage(WebInspector.UIString("does not match the loaded script:\u00a0")).appendChild(
WebInspector.linkifyURLAsNode(scriptURL, scriptURL, "source-frame-infobar-details-url", true));
@@ -146,8 +146,6 @@ WebInspector.JavaScriptSourceFrame.prototype = {
var projectType = uiSourceCode.project().type();
if (projectType === WebInspector.projectTypes.Snippets)
return;
- var networkURL = WebInspector.networkMapping.networkURL(uiSourceCode);
- var url = projectType === WebInspector.projectTypes.Formatter ? uiSourceCode.url() : networkURL;
if (!WebInspector.blackboxManager.isBlackboxedUISourceCode(uiSourceCode)) {
this._hideBlackboxInfobar();
return;

Powered by Google App Engine
This is Rietveld 408576698