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 5438d0a3d3dedb9ecf7d9427d50b776c8f851923..c707a6af0232cbd22fe7b929cf307bb76dd32d0f 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/sources/ScriptFormatterEditorAction.js |
+++ b/third_party/WebKit/Source/devtools/front_end/sources/ScriptFormatterEditorAction.js |
@@ -214,6 +214,8 @@ WebInspector.ScriptFormatterEditorAction.prototype = { |
{ |
if (!uiSourceCode) |
return false; |
+ if (WebInspector.persistence.binding(uiSourceCode)) |
+ return false; |
var supportedProjectTypes = [WebInspector.projectTypes.Network, WebInspector.projectTypes.Debugger, WebInspector.projectTypes.ContentScripts]; |
if (supportedProjectTypes.indexOf(uiSourceCode.project().type()) === -1) |
return false; |