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

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

Issue 2551233002: DevTools: show filesystem file by default (Closed)
Patch Set: nit 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 29e7dcd0a5b4a6fe3105e953cb907cc6e8c0678a..bb311be67171a96c0ab92bfb795dc2304f98f378 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