зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
ee1b1349f7
Коммит
72742f0760
|
@ -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");
|
||||
|
|
Загрузка…
Ссылка в новой задаче