Bug 1602075 - only highlight the accessibility tab when the auto init feature is not enabled. r=mtigley

Differential Revision: https://phabricator.services.mozilla.com/D71585
This commit is contained in:
Yura Zenevich 2020-05-06 15:54:51 +00:00
Родитель ee1b1349f7
Коммит 72742f0760
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -96,6 +96,12 @@ class AccessibilityStartup {
* accessibility service is initialized or shutdown.
*/
async _updateToolHighlight() {
// Only update the tab highlighted state when the panel can be
// enabled/disabled manually.
if (this.accessibilityProxy.supports.autoInit) {
return;
}
const isHighlighted = await this.toolbox.isToolHighlighted("accessibility");
if (this.accessibilityProxy.enabled && !isHighlighted) {
this.toolbox.highlightTool("accessibility");