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

Unified Diff: third_party/WebKit/Source/devtools/front_end/components/Linkifier.js

Issue 1663723002: [DevTools] Add sourceMap support for blackboxing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@call-set-blackboxed-ranges-on-script-parsed
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/components/Linkifier.js
diff --git a/third_party/WebKit/Source/devtools/front_end/components/Linkifier.js b/third_party/WebKit/Source/devtools/front_end/components/Linkifier.js
index a49b44c6be8aa5b4db64a3d5be6520c270c3d990..f7804d5f9db3f8d8b37512ad054f2f7183ad390f 100644
--- a/third_party/WebKit/Source/devtools/front_end/components/Linkifier.js
+++ b/third_party/WebKit/Source/devtools/front_end/components/Linkifier.js
@@ -204,10 +204,10 @@ WebInspector.Linkifier.prototype = {
var columnNumber = callFrame.columnNumber ? callFrame.columnNumber - 1 : 0;
var anchor = this.linkifyScriptLocation(target, callFrame.scriptId, callFrame.url, lineNumber, columnNumber, classes);
var debuggerModel = WebInspector.DebuggerModel.fromTarget(target);
- var script = debuggerModel && debuggerModel.scriptForId(callFrame.scriptId);
- var blackboxed = script ?
- WebInspector.BlackboxSupport.isBlackboxed(script.sourceURL, script.isContentScript()) :
- WebInspector.BlackboxSupport.isBlackboxedURL(callFrame.url);
+ var location = debuggerModel && debuggerModel.createRawLocationByScriptId(callFrame.scriptId, callFrame.lineNumber, callFrame.columnNumber);
+ var blackboxed = location ?
+ WebInspector.blackboxManager.isBlackboxedRawLocation(location) :
+ WebInspector.blackboxManager.isBlackboxedURL(callFrame.url);
dgozman 2016/02/17 01:34:44 Similar to previous comment.
if (blackboxed)
anchor.classList.add("webkit-html-blackbox-link");

Powered by Google App Engine
This is Rietveld 408576698