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

Unified Diff: third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js

Issue 1699183003: [DevTools] Don't load sourcemap for blackboxed scripts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@add-source-map-support-v3
Patch Set: Created 4 years, 10 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/bindings/ResourceScriptMapping.js
diff --git a/third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js b/third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js
index 11174402c239b4f7b9623571a0007949b1f21807..a81df64b8a95c069faac1a4d1923742be4ff0d96 100644
--- a/third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js
+++ b/third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js
@@ -477,5 +477,18 @@ WebInspector.ResourceScriptFile.prototype = {
return this._script && !!this._script.sourceMapURL;
},
+ /**
+ * @return {boolean}
+ */
+ isBlackboxed: function()
dgozman 2016/02/20 02:50:32 Remove this, use isUISourceCodeBlackboxed.
kozy 2016/02/22 05:12:14 Done.
+ {
+ if (!this._script)
+ return false;
+ var location = this._resourceScriptMapping._debuggerModel.createRawLocation(this._script, 0, 0);
+ if (!location)
+ return false;
+ return WebInspector.blackboxManager.isBlackboxedRawLocation(location);
+ },
+
__proto__: WebInspector.Object.prototype
}

Powered by Google App Engine
This is Rietveld 408576698