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

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

Issue 1238103002: [DevTools] Do not report edited resources via Page.getResourceContent. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Nuked concatenated, fixed comments 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/bindings/DefaultScriptMapping.js
diff --git a/Source/devtools/front_end/bindings/DefaultScriptMapping.js b/Source/devtools/front_end/bindings/DefaultScriptMapping.js
index 3310e9a2d51955a921fcaa9f78835048d951b636..89bbe78942a5729afbf3efbf49fdba0062ebddc4 100644
--- a/Source/devtools/front_end/bindings/DefaultScriptMapping.js
+++ b/Source/devtools/front_end/bindings/DefaultScriptMapping.js
@@ -187,11 +187,10 @@ WebInspector.DebuggerProjectDelegate.prototype = {
*/
addScript: function(script)
{
- var contentProvider = script.isInlineScript() && !script.hasSourceURL ? new WebInspector.ConcatenatedScriptsContentProvider([script]) : script;
var splitURL = WebInspector.ParsedURL.splitURLIntoPathComponents(script.sourceURL);
var name = splitURL[splitURL.length - 1];
name = "VM" + script.scriptId + (name ? " " + name : "");
- return this.addContentProvider("", name, script.sourceURL, script.sourceURL, contentProvider);
+ return this.addContentProvider("", name, script.sourceURL, script.sourceURL, script);
},
__proto__: WebInspector.ContentProviderBasedProjectDelegate.prototype

Powered by Google App Engine
This is Rietveld 408576698