| Index: third_party/WebKit/Source/devtools/front_end/sources/ScriptFormatterEditorAction.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/sources/ScriptFormatterEditorAction.js b/third_party/WebKit/Source/devtools/front_end/sources/ScriptFormatterEditorAction.js
|
| index d83e91346ec25612b3206c05a79ea988615bfaa4..8099ae75c0640ab4fa913bba955cace7a9edae5a 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/sources/ScriptFormatterEditorAction.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/sources/ScriptFormatterEditorAction.js
|
| @@ -369,7 +369,7 @@ WebInspector.ScriptFormatterEditorAction.prototype = {
|
| {
|
| var scripts = this._scriptsForUISourceCode(uiSourceCode);
|
| var formattedURL = uiSourceCode.url() + ":formatted";
|
| - var contentProvider = new WebInspector.StaticContentProvider(uiSourceCode.contentType(), formattedContent, formattedURL);
|
| + var contentProvider = new WebInspector.StaticContentProvider(formattedURL, uiSourceCode.contentType(), Promise.resolve(formattedContent));
|
| var formattedUISourceCode = this._project.addContentProvider(formattedURL, contentProvider);
|
| var formattedPath = formattedUISourceCode.url();
|
| var formatData = new WebInspector.FormatterScriptMapping.FormatData(uiSourceCode.project().id(), uiSourceCode.url(), formatterMapping, scripts);
|
|
|