Bug 955413 - Add the account name to the connect/disconnect button aria label. r=florian
--HG-- extra : rebase_source : e6370ecf75ad5d832405bcbe73f40a6a76fd9fa8
This commit is contained in:
Родитель
de10a0b40e
Коммит
00726377fc
|
@ -47,7 +47,7 @@
|
|||
oncommand="gAccountManager.autologin()"/>
|
||||
</xul:hbox>
|
||||
<xul:hbox flex="1" class="account-buttons" anonid="buttons"
|
||||
xbl:inherits="autologin"/>
|
||||
xbl:inherits="autologin,name"/>
|
||||
</xul:vbox>
|
||||
</content>
|
||||
<implementation>
|
||||
|
@ -328,6 +328,9 @@
|
|||
<body>
|
||||
<![CDATA[
|
||||
let focusTarget = this.activeButton;
|
||||
let accountName = this.getAttribute("name");
|
||||
focusTarget.setAttribute("aria-label",
|
||||
focusTarget.label + " " + accountName);
|
||||
if (focusTarget.disabled)
|
||||
focusTarget = document.getElementById("accountlist");
|
||||
focusTarget.focus();
|
||||
|
|
Загрузка…
Ссылка в новой задаче