| Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/tabs_automation_handler.js
|
| diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/tabs_automation_handler.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/tabs_automation_handler.js
|
| index 943e0cb64b165555ca265af4ddb13558604d5cb4..87fba15b4a48c75dd582bc2a1c32b7cddb6edec1 100644
|
| --- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/tabs_automation_handler.js
|
| +++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/tabs_automation_handler.js
|
| @@ -26,8 +26,10 @@ TabsAutomationHandler = function(tabRoot) {
|
| throw new Error('Expected rootWebArea node but got ' + tabRoot.role);
|
|
|
| // When the root is focused, simulate what happens on a load complete.
|
| - if (tabRoot.state.focused)
|
| - this.onLoadComplete({target: tabRoot, type: EventType.loadComplete});
|
| + if (tabRoot.state.focused) {
|
| + this.onLoadComplete(
|
| + new chrome.automation.AutomationEvent(EventType.loadComplete, tabRoot));
|
| + }
|
| };
|
|
|
| TabsAutomationHandler.prototype = {
|
| @@ -42,7 +44,8 @@ TabsAutomationHandler.prototype = {
|
| onLoadComplete: function(evt) {
|
| ChromeVoxState.instance.refreshMode(evt.target.docUrl);
|
| var focused = evt.target.find({state: {focused: true}}) || evt.target;
|
| - this.onFocus({target: focused, type: EventType.focus});
|
| + this.onFocus(new chrome.automation.AutomationEvent(
|
| + EventType.focus, focused));
|
| }
|
| };
|
|
|
|
|