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

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

Issue 1315193014: DevTools: allow blackboxing anonymous scripts (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 | « LayoutTests/inspector/sources/debugger-frameworks/frameworks-blackbox-patterns.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/bindings/BlackboxSupport.js
diff --git a/Source/devtools/front_end/bindings/BlackboxSupport.js b/Source/devtools/front_end/bindings/BlackboxSupport.js
index 2334c494866889e48153eb466b6e6324840bd646..0d0c0cf1ae341e15e69ba290c671dd8bce239617 100644
--- a/Source/devtools/front_end/bindings/BlackboxSupport.js
+++ b/Source/devtools/front_end/bindings/BlackboxSupport.js
@@ -11,7 +11,7 @@ WebInspector.BlackboxSupport = {}
WebInspector.BlackboxSupport._urlToRegExpString = function(url)
{
var parsedURL = new WebInspector.ParsedURL(url);
- if (parsedURL.isAboutBlank() || parsedURL.isDataURL() || !url)
+ if (parsedURL.isAboutBlank() || parsedURL.isDataURL())
return "";
if (!parsedURL.isValid)
return "^" + url.escapeForRegExp() + "$";
@@ -104,7 +104,7 @@ WebInspector.BlackboxSupport.unblackbox = function(url, isContentScript)
WebInspector.BlackboxSupport.isBlackboxedURL = function(url)
{
var regex = WebInspector.moduleSetting("skipStackFramesPattern").asRegExp();
- return (url && regex) ? regex.test(url) : false;
+ return regex && regex.test(url);
}
/**
« no previous file with comments | « LayoutTests/inspector/sources/debugger-frameworks/frameworks-blackbox-patterns.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698