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

Unified Diff: Source/devtools/front_end/console/ConsoleViewMessage.js

Issue 548323002: DevTools: Blackbox content scripts - frontend. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: added a test Created 6 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
« no previous file with comments | « Source/devtools/front_end/common/Settings.js ('k') | Source/devtools/front_end/helpScreen.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/console/ConsoleViewMessage.js
diff --git a/Source/devtools/front_end/console/ConsoleViewMessage.js b/Source/devtools/front_end/console/ConsoleViewMessage.js
index d15d422545636e03ae29b17cf88ef051cb04966c..a753edd8e86976df18d391c2b7b132b6e6bb23ac 100644
--- a/Source/devtools/front_end/console/ConsoleViewMessage.js
+++ b/Source/devtools/front_end/console/ConsoleViewMessage.js
@@ -319,8 +319,13 @@ WebInspector.ConsoleViewMessage.prototype = {
var callFrame = stackTrace[0].scriptId ? stackTrace[0] : null;
if (!useBlackboxing)
return callFrame;
+ var target = this._target();
for (var i = 0; i < stackTrace.length; ++i) {
- if (!WebInspector.BlackboxSupport.isBlackboxedURL(stackTrace[i].url))
+ var script = target && target.debuggerModel.scriptForId(stackTrace[i].scriptId);
+ var blackboxed = script ?
+ WebInspector.BlackboxSupport.isBlackboxed(script.sourceURL, script.isContentScript()) :
+ WebInspector.BlackboxSupport.isBlackboxedURL(stackTrace[i].url);
+ if (!blackboxed)
return stackTrace[i].scriptId ? stackTrace[i] : null;
}
return callFrame;
« no previous file with comments | « Source/devtools/front_end/common/Settings.js ('k') | Source/devtools/front_end/helpScreen.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698