| Index: chrome/renderer/resources/extensions/automation/automation_node.js
|
| diff --git a/chrome/renderer/resources/extensions/automation/automation_node.js b/chrome/renderer/resources/extensions/automation/automation_node.js
|
| index a8dcdf63fb28af724447a3be800e5136fb339b18..ed76dcd596d4d67355ae9627c5913ee2f257a48e 100644
|
| --- a/chrome/renderer/resources/extensions/automation/automation_node.js
|
| +++ b/chrome/renderer/resources/extensions/automation/automation_node.js
|
| @@ -244,9 +244,12 @@ AutomationNodeImpl.prototype = {
|
| },
|
|
|
| setSelection: function(startIndex, endIndex) {
|
| - this.performAction_('setSelection',
|
| - { startIndex: startIndex,
|
| - endIndex: endIndex });
|
| + if (this.role == 'textField' || this.role == 'textBox') {
|
| + this.performAction_('setSelection',
|
| + { focusNodeID: this.id,
|
| + anchorOffset: startIndex,
|
| + focusOffset: endIndex });
|
| + }
|
| },
|
|
|
| showContextMenu: function() {
|
|
|