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

Unified Diff: Source/devtools/front_end/workspace/UISourceCode.js

Issue 1238103002: [DevTools] Do not report edited resources via Page.getResourceContent. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Same for CSS Created 5 years, 4 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: Source/devtools/front_end/workspace/UISourceCode.js
diff --git a/Source/devtools/front_end/workspace/UISourceCode.js b/Source/devtools/front_end/workspace/UISourceCode.js
index 1b374623fc42f589f914df608d9aaf80055a6e1d..267e58df5f251929a82c5aac3602193ae3f88943 100644
--- a/Source/devtools/front_end/workspace/UISourceCode.js
+++ b/Source/devtools/front_end/workspace/UISourceCode.js
@@ -462,7 +462,7 @@ WebInspector.UISourceCode.prototype = {
}
if (this.isDirty())
return this._workingCopy;
- return this._content;
+ return this._content || "";
pfeldman 2015/08/11 23:22:43 why is this necessary?
dgozman 2015/08/12 23:22:12 Extracted into separate patch.
},
resetWorkingCopy: function()

Powered by Google App Engine
This is Rietveld 408576698