Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1974)

Unified Diff: chrome/browser/resources/chromeos/chromevox/chromevox/background/tabs_api_handler.js

Issue 2093753002: Reland: Make ChromeVox Next a setting in options page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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));
});
},

Powered by Google App Engine
This is Rietveld 408576698