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

Unified Diff: third_party/WebKit/Source/devtools/front_end/components/DebuggerPresentationUtils.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/DebuggerPresentationUtils.js
diff --git a/third_party/WebKit/Source/devtools/front_end/components/DebuggerPresentationUtils.js b/third_party/WebKit/Source/devtools/front_end/components/DebuggerPresentationUtils.js
index b40b21f3a08c5847eda797119631b9978e108cad..83700e8a7a001a902c32c87e21c61f8876ce1d9a 100644
--- a/third_party/WebKit/Source/devtools/front_end/components/DebuggerPresentationUtils.js
+++ b/third_party/WebKit/Source/devtools/front_end/components/DebuggerPresentationUtils.js
@@ -22,13 +22,13 @@ WebInspector.DebuggerPresentationUtils.callFrameAnchorFromStackTrace = function(
return null;
if (showBlackboxed)
return callFrames[0];
- for (var i = 0; i < callFrames.length; ++i) {
- var script = debuggerModel && debuggerModel.scriptForId(callFrames[i].scriptId);
- var blackboxed = script ?
- WebInspector.BlackboxSupport.isBlackboxed(script.sourceURL, script.isContentScript()) :
- WebInspector.BlackboxSupport.isBlackboxedURL(callFrames[i].url);
+ for (var callFrame of callFrames) {
+ var location = debuggerModel && debuggerModel.createRawLocationByScriptId(callFrame.scriptId, callFrame.lineNumber, callFrame.columnNumber);
+ var blackboxed = location ?
+ WebInspector.blackboxManager.isBlackboxedRawLocation(location) :
+ WebInspector.blackboxManager.isBlackboxedURL(callFrame.url);
if (!blackboxed)
- return callFrames[i];
+ return callFrame;
}
return null;
}

Powered by Google App Engine
This is Rietveld 408576698