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

Unified Diff: third_party/WebKit/Source/devtools/front_end/persistence/Persistence.js

Issue 2422803002: DevTools: prefix node.js scripts's sourceURL with "file://" to make them a valid url (Closed)
Patch Set: better name Created 4 years, 2 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/persistence/Persistence.js
diff --git a/third_party/WebKit/Source/devtools/front_end/persistence/Persistence.js b/third_party/WebKit/Source/devtools/front_end/persistence/Persistence.js
index 875a0b4eee70d7edbca7e6c7621b039c88990847..05cb04d135b8cdbf3795b86649204eb8c16aae42 100644
--- a/third_party/WebKit/Source/devtools/front_end/persistence/Persistence.js
+++ b/third_party/WebKit/Source/devtools/front_end/persistence/Persistence.js
@@ -84,7 +84,8 @@ WebInspector.Persistence.prototype = {
return;
var newContent = /** @type {string} */(event.data.content);
var other = binding.network === uiSourceCode ? binding.fileSystem : binding.network;
- if (Runtime.queryParam("v8only")) {
+ var target = WebInspector.NetworkProject.targetForUISourceCode(binding.network);
+ if (target.isNodeJS()) {
other.requestContent().then(currentContent => this._syncNodeJSContent(binding, other, currentContent, newContent));
return;
}

Powered by Google App Engine
This is Rietveld 408576698