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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/SourceMap.js

Issue 1583383003: [DevTools] Send source map content from frontend to backend (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@blackbox-inline-source-map
Patch Set: Created 4 years, 11 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/sdk/SourceMap.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/SourceMap.js b/third_party/WebKit/Source/devtools/front_end/sdk/SourceMap.js
index 6c4fae370782e97e5f7a552829f5a53fc057ec11..1ccc4357fa447238d9de2ad6a938c9b365d69307 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/SourceMap.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/SourceMap.js
@@ -88,7 +88,7 @@ WebInspector.SourceMap = function(compiledURL, sourceMappingURL, payload)
/**
* @param {string} sourceMapURL
* @param {string} compiledURL
- * @param {function(?WebInspector.SourceMap)} callback
+ * @param {function(?WebInspector.SourceMap, string=)} callback
* @this {WebInspector.SourceMap}
*/
WebInspector.SourceMap.load = function(sourceMapURL, compiledURL, callback)
@@ -112,7 +112,7 @@ WebInspector.SourceMap.load = function(sourceMapURL, compiledURL, callback)
try {
var payload = /** @type {!SourceMapV3} */ (JSON.parse(content));
var baseURL = sourceMapURL.startsWith("data:") ? compiledURL : sourceMapURL;
- callback(new WebInspector.SourceMap(compiledURL, baseURL, payload));
+ callback(new WebInspector.SourceMap(compiledURL, baseURL, payload), content);
} catch(e) {
console.error(e.message);
WebInspector.console.error("Failed to parse SourceMap: " + sourceMapURL);
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js ('k') | third_party/WebKit/Source/devtools/protocol.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698