Index: Source/devtools/front_end/sources/NavigatorView.js |
diff --git a/Source/devtools/front_end/sources/NavigatorView.js b/Source/devtools/front_end/sources/NavigatorView.js |
index 99f19913edbfc22922074c4147d9c85ad8f0efcb..01e5189aa38cf0bede83d1399fafe75e2fbfcd3c 100644 |
--- a/Source/devtools/front_end/sources/NavigatorView.js |
+++ b/Source/devtools/front_end/sources/NavigatorView.js |
@@ -1301,7 +1301,7 @@ WebInspector.NavigatorUISourceCodeTreeNode.prototype = { |
var editingConfig = new WebInspector.InplaceEditor.Config(commitHandler.bind(this), cancelHandler.bind(this)); |
this.updateTitle(true); |
WebInspector.InplaceEditor.startEditing(this._treeElement.titleElement, editingConfig); |
- window.getSelection().setBaseAndExtent(this._treeElement.titleElement, 0, this._treeElement.titleElement, 1); |
+ treeOutlineElement.window().getSelection().setBaseAndExtent(this._treeElement.titleElement, 0, this._treeElement.titleElement, 1); |
}, |
__proto__: WebInspector.NavigatorTreeNode.prototype |