Index: third_party/WebKit/Source/devtools/front_end/sources/WatchExpressionsSidebarPane.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/WatchExpressionsSidebarPane.js b/third_party/WebKit/Source/devtools/front_end/sources/WatchExpressionsSidebarPane.js |
index 3d4628ee515bc89c10efda96a1193d75523c3aaf..f7b2ad8ba71acc6d858082f843e77345636f2602 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/sources/WatchExpressionsSidebarPane.js |
+++ b/third_party/WebKit/Source/devtools/front_end/sources/WatchExpressionsSidebarPane.js |
@@ -207,7 +207,7 @@ WebInspector.WatchExpressionsSidebarPane.prototype = { |
var frame = WebInspector.context.flavor(WebInspector.UISourceCodeFrame); |
if (!frame) |
return false; |
- var text = frame.textEditor.copyRange(frame.textEditor.selection()); |
+ var text = frame.textEditor.text(frame.textEditor.selection()); |
WebInspector.viewManager.showView("sources.watch"); |
this.doUpdate(); |
this._createWatchExpression(text); |