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

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

Issue 2198443004: [DevTools] Fix location.script().sourceURL (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: a Created 4 years, 5 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/BlackboxManager.js
diff --git a/third_party/WebKit/Source/devtools/front_end/bindings/BlackboxManager.js b/third_party/WebKit/Source/devtools/front_end/bindings/BlackboxManager.js
index 4492c4e376abcdcc7f2feb0bbd524cb409dfe5ea..5f20ec60fd80ac254bd3bb9442d2d8dc2e2580b7 100644
--- a/third_party/WebKit/Source/devtools/front_end/bindings/BlackboxManager.js
+++ b/third_party/WebKit/Source/devtools/front_end/bindings/BlackboxManager.js
@@ -85,9 +85,12 @@ WebInspector.BlackboxManager.prototype = {
*/
isBlackboxedRawLocation: function(location)
{
- var positions = this._scriptPositions(location.script());
+ var script = location.script();
+ if (!script)
+ return false;
+ var positions = this._scriptPositions(script);
if (!positions)
- return this._isBlackboxedScript(location.script());
+ return this._isBlackboxedScript(script);
var index = positions.lowerBound(location, comparator);
return !!(index % 2);

Powered by Google App Engine
This is Rietveld 408576698