| Index: chrome/browser/resources/chromeos/chromevox/chromevox/background/tabs_api_handler.js
|
| diff --git a/chrome/browser/resources/chromeos/chromevox/chromevox/background/tabs_api_handler.js b/chrome/browser/resources/chromeos/chromevox/chromevox/background/tabs_api_handler.js
|
| index d084d5bc12fd3209d86ab37eff77dfc7d0a55659..000462fae0ec2537cb5b89818711ef42f277bddd 100644
|
| --- a/chrome/browser/resources/chromeos/chromevox/chromevox/background/tabs_api_handler.js
|
| +++ b/chrome/browser/resources/chromeos/chromevox/chromevox/background/tabs_api_handler.js
|
| @@ -73,7 +73,9 @@ cvox.TabsApiHandler.prototype = {
|
| cvox.NavBraille.fromText(this.msg_('chrome_tab_created')));
|
| }
|
| cvox.ChromeVox.earcons.playEarcon(cvox.Earcon.OBJECT_OPEN);
|
| - this.refreshAutomationHandler_(tab.id);
|
| + if (tab) {
|
| + this.refreshAutomationHandler_(tab.id);
|
| + }
|
| },
|
|
|
| /**
|
| @@ -226,7 +228,7 @@ cvox.TabsApiHandler.prototype = {
|
| if (!tab)
|
| return;
|
|
|
| - global.backgroundObj.refreshMode(tab);
|
| + ChromeVoxState.instance.setCurrentRange(cursors.Range.fromNode(tab));
|
| });
|
| },
|
|
|
|
|