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

Unified Diff: third_party/WebKit/Source/devtools/front_end/bindings/CompilerScriptMapping.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/bindings/CompilerScriptMapping.js
diff --git a/third_party/WebKit/Source/devtools/front_end/bindings/CompilerScriptMapping.js b/third_party/WebKit/Source/devtools/front_end/bindings/CompilerScriptMapping.js
index 6584ca8213350e12216a1ca331fcaa21ef8079c4..567cbd31ddb625105fbe35bdc6d09641c517a525 100644
--- a/third_party/WebKit/Source/devtools/front_end/bindings/CompilerScriptMapping.js
+++ b/third_party/WebKit/Source/devtools/front_end/bindings/CompilerScriptMapping.js
@@ -327,7 +327,7 @@ WebInspector.CompilerScriptMapping.prototype = {
pendingCallbacks = [callback];
this._pendingSourceMapLoadingCallbacks[sourceMapURL] = pendingCallbacks;
- WebInspector.SourceMap.load(sourceMapURL, scriptURL, sourceMapLoaded.bind(this));
+ WebInspector.SourceMap.load(sourceMapURL, scriptURL, sourceMapLoaded.bind(this), sourceMapContentLoaded.bind(this));
/**
* @param {?WebInspector.SourceMap} sourceMap
@@ -345,6 +345,15 @@ WebInspector.CompilerScriptMapping.prototype = {
for (var i = 0; i < callbacks.length; ++i)
callbacks[i](sourceMap);
}
+
+ /**
+ * @param {string} content
+ * @this {WebInspector.CompilerScriptMapping}
+ */
+ function sourceMapContentLoaded(content)
+ {
+ this._debuggerModel.setSourceMapContent(script.scriptId, content);
+ }
},
_debuggerReset: function()

Powered by Google App Engine
This is Rietveld 408576698