Index: Source/devtools/front_end/ScriptFormatterEditorAction.js |
diff --git a/Source/devtools/front_end/ScriptFormatterEditorAction.js b/Source/devtools/front_end/ScriptFormatterEditorAction.js |
index 3dd22eab61ef2bf3cb139a107c282bd4871f212c..f3da63660536f0d2023726b79991105ba3bbd4ca 100644 |
--- a/Source/devtools/front_end/ScriptFormatterEditorAction.js |
+++ b/Source/devtools/front_end/ScriptFormatterEditorAction.js |
@@ -84,6 +84,11 @@ WebInspector.FormatterScriptMapping.prototype = { |
default: |
return []; |
} |
+ if (!uiSourceCode.url) { |
+ var scriptId = uiSourceCode._sourceMapping._scriptIdForUISourceCode.get(uiSourceCode); |
pfeldman
2014/03/25 18:31:10
Too much private field access for one line.
lushnikov
2014/03/25 18:58:42
Done.
|
+ var script = this._debuggerModel.scriptForId(scriptId); |
+ return [ script ]; |
+ } |
var scripts = this._debuggerModel.scriptsForSourceURL(uiSourceCode.url); |
function filterOutIncorrectInlineType(script) |