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

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

Issue 2551233002: DevTools: show filesystem file by default (Closed)
Patch Set: rebaseline Created 4 years 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/ResourceScriptMapping.js
diff --git a/third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js b/third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js
index ef706d1e8ad1fea20429f362ca3a5f31e3fa4e61..68d88664c552b720009af1192c65a90bb7b2776f 100644
--- a/third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js
+++ b/third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js
@@ -296,6 +296,8 @@ Bindings.ResourceScriptFile = class extends Common.Object {
if (typeof this._scriptSource === 'undefined')
return false;
var workingCopy = this._uiSourceCode.workingCopy();
+ if (!workingCopy)
+ return false;
// Match ignoring sourceURL.
if (!workingCopy.startsWith(this._scriptSource.trimRight()))

Powered by Google App Engine
This is Rietveld 408576698