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

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

Issue 1649553002: [DevTools] Support source map with blackboxing in call frame sidebar, console (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/BlackboxSupport.js
diff --git a/third_party/WebKit/Source/devtools/front_end/bindings/BlackboxSupport.js b/third_party/WebKit/Source/devtools/front_end/bindings/BlackboxSupport.js
index 0d0c0cf1ae341e15e69ba290c671dd8bce239617..ac24b1a74695500e034ac39049d76a26d92f886a 100644
--- a/third_party/WebKit/Source/devtools/front_end/bindings/BlackboxSupport.js
+++ b/third_party/WebKit/Source/devtools/front_end/bindings/BlackboxSupport.js
@@ -120,6 +120,21 @@ WebInspector.BlackboxSupport.isBlackboxed = function(url, isContentScript)
}
/**
+ * @param {!WebInspector.DebuggerModel.Location} rawLocation
+ * @return {boolean}
+ */
+WebInspector.BlackboxSupport.isBlackboxedScriptLocation = function(rawLocation)
+{
+ var script = rawLocation.script();
+
+ if (WebInspector.BlackboxSupport.isBlackboxed(script.sourceURL, script.isContentScript()))
+ return true;
+
+ var scriptUISourceCode = WebInspector.debuggerWorkspaceBinding.rawLocationToUILocation(rawLocation).uiSourceCode;
+ return WebInspector.BlackboxSupport.isBlackboxedURL(scriptUISourceCode.url());
+}
+
+/**
* @param {function(!WebInspector.Event)} listener
* @param {!Object=} thisObject
*/

Powered by Google App Engine
This is Rietveld 408576698