| 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 3e9b88f9bc2f26202a1e45d3d4154bffdb26c689..80d29525dc2ec06ff1fc3f4020ee540107730538 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/sources/ScriptFormatterEditorAction.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/sources/ScriptFormatterEditorAction.js
|
| @@ -206,11 +206,11 @@ Sources.ScriptFormatterEditorAction = class {
|
| _isFormatableScript(uiSourceCode) {
|
| if (!uiSourceCode)
|
| return false;
|
| - if (Persistence.persistence.binding(uiSourceCode))
|
| + if (uiSourceCode.project().canSetFileContent())
|
| + return false;
|
| + if (uiSourceCode.project().type() === Workspace.projectTypes.Formatter)
|
| return false;
|
| - var supportedProjectTypes =
|
| - [Workspace.projectTypes.Network, Workspace.projectTypes.Debugger, Workspace.projectTypes.ContentScripts];
|
| - if (supportedProjectTypes.indexOf(uiSourceCode.project().type()) === -1)
|
| + if (Persistence.persistence.binding(uiSourceCode))
|
| return false;
|
| return uiSourceCode.contentType().hasScripts();
|
| }
|
|
|