зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1473748 - Part 1 - Use the type of element instead of the "subviewbutton" and "subviewkeynav" classes to initialize the list of navigable elements. r=johannh
MozReview-Commit-ID: IgxwGRNLsct --HG-- extra : rebase_source : edc897a0c0ac7a8b7b551759a8d69b7c3d3659d5
This commit is contained in:
Родитель
39cde80193
Коммит
7328341032
|
@ -1023,7 +1023,7 @@ var gIdentityHandler = {
|
|||
let block = document.createElement("vbox");
|
||||
block.setAttribute("id", "identity-popup-popup-container");
|
||||
menulist.setAttribute("sizetopopup", "none");
|
||||
menulist.setAttribute("class", "identity-popup-popup-menulist subviewkeynav");
|
||||
menulist.setAttribute("class", "identity-popup-popup-menulist");
|
||||
menulist.setAttribute("id", "identity-popup-popup-menulist");
|
||||
|
||||
for (let state of SitePermissions.getAvailableStates(aPermission.id)) {
|
||||
|
@ -1090,7 +1090,7 @@ var gIdentityHandler = {
|
|||
}
|
||||
|
||||
let button = document.createElement("button");
|
||||
button.setAttribute("class", "identity-popup-permission-remove-button subviewkeynav");
|
||||
button.setAttribute("class", "identity-popup-permission-remove-button");
|
||||
let tooltiptext = gNavigatorBundle.getString("permissions.remove.tooltip");
|
||||
button.setAttribute("tooltiptext", tooltiptext);
|
||||
button.addEventListener("command", () => {
|
||||
|
@ -1146,7 +1146,7 @@ var gIdentityHandler = {
|
|||
|
||||
let text = document.createElement("label");
|
||||
text.setAttribute("flex", "1");
|
||||
text.setAttribute("class", "identity-popup-permission-label text-link subviewkeynav");
|
||||
text.setAttribute("class", "identity-popup-permission-label text-link");
|
||||
|
||||
let popupCount = gBrowser.selectedBrowser.blockedPopups.length;
|
||||
let messageBase = gNavigatorBundle.getString("popupShowBlockedPopupsIndicatorText");
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
</vbox>
|
||||
</vbox>
|
||||
<button id="identity-popup-security-expander"
|
||||
class="identity-popup-expander subviewkeynav"
|
||||
class="identity-popup-expander"
|
||||
when-connection="not-secure secure secure-ev secure-cert-user-overridden"
|
||||
oncommand="gIdentityHandler.showSecuritySubView();"/>
|
||||
</hbox>
|
||||
|
@ -84,22 +84,22 @@
|
|||
crop="end">&trackingProtection.reloadRequired2;</description>
|
||||
|
||||
<button id="tracking-action-reload"
|
||||
class="tracking-protection-button subviewkeynav"
|
||||
class="tracking-protection-button"
|
||||
label="&trackingProtection.reload2.label;"
|
||||
accesskey="&trackingProtection.reload2.accesskey;"
|
||||
oncommand="TrackingProtection.hideIdentityPopupAndReload();" />
|
||||
<button id="tracking-action-unblock"
|
||||
class="tracking-protection-button subviewkeynav"
|
||||
class="tracking-protection-button"
|
||||
label="&trackingProtection.unblock3.label;"
|
||||
accesskey="&trackingProtection.unblock3.accesskey;"
|
||||
oncommand="TrackingProtection.disableForCurrentPage();" />
|
||||
<button id="tracking-action-unblock-private"
|
||||
class="tracking-protection-button subviewkeynav"
|
||||
class="tracking-protection-button"
|
||||
label="&trackingProtection.unblockPrivate3.label;"
|
||||
accesskey="&trackingProtection.unblockPrivate3.accesskey;"
|
||||
oncommand="TrackingProtection.disableForCurrentPage();" />
|
||||
<button id="tracking-action-block"
|
||||
class="tracking-protection-button subviewkeynav"
|
||||
class="tracking-protection-button"
|
||||
label="&trackingProtection.block4.label;"
|
||||
accesskey="&trackingProtection.block4.accesskey;"
|
||||
oncommand="TrackingProtection.enableForCurrentPage();" />
|
||||
|
@ -131,8 +131,7 @@
|
|||
<vbox hidden="true"
|
||||
id="identity-popup-clear-sitedata-footer"
|
||||
class="identity-popup-footer">
|
||||
<button class="subviewkeynav"
|
||||
id="identity-popup-clear-sitedata-button"
|
||||
<button id="identity-popup-clear-sitedata-button"
|
||||
label="&identity.clearSiteData;"
|
||||
oncommand="gIdentityHandler.clearSiteData(event);"/>
|
||||
</vbox>
|
||||
|
@ -167,7 +166,6 @@
|
|||
|
||||
<!-- Remove Certificate Exception -->
|
||||
<button when-connection="secure-cert-user-overridden"
|
||||
class="subviewkeynav"
|
||||
label="&identity.removeCertException.label;"
|
||||
accesskey="&identity.removeCertException.accesskey;"
|
||||
oncommand="gIdentityHandler.removeCertException()"/>
|
||||
|
@ -209,11 +207,11 @@
|
|||
and-when-loginforms="insecure">&identity.description.activeLoaded; <label observes="identity-popup-mcb-learn-more"/></description>
|
||||
|
||||
<!-- Buttons to enable/disable mixed content blocking. -->
|
||||
<button when-mixedcontent="active-blocked" class="subviewkeynav"
|
||||
<button when-mixedcontent="active-blocked"
|
||||
label="&identity.disableMixedContentBlocking.label;"
|
||||
accesskey="&identity.disableMixedContentBlocking.accesskey;"
|
||||
oncommand="gIdentityHandler.disableMixedContentProtection()"/>
|
||||
<button when-mixedcontent="active-loaded" class="subviewkeynav"
|
||||
<button when-mixedcontent="active-loaded"
|
||||
label="&identity.enableMixedContentBlocking.label;"
|
||||
accesskey="&identity.enableMixedContentBlocking.accesskey;"
|
||||
oncommand="gIdentityHandler.enableMixedContentProtection()"/>
|
||||
|
@ -221,7 +219,7 @@
|
|||
|
||||
<vbox id="identity-popup-more-info-footer" class="identity-popup-footer">
|
||||
<!-- More Security Information -->
|
||||
<button id="identity-popup-more-info" class="subviewkeynav"
|
||||
<button id="identity-popup-more-info"
|
||||
label="&identity.moreInfoLinkText2;"
|
||||
oncommand="gIdentityHandler.handleMoreInfoClick(event);"/>
|
||||
</vbox>
|
||||
|
|
|
@ -1364,9 +1364,12 @@ var PanelView = class extends AssociatedToNode {
|
|||
*/
|
||||
_getNavigableElements() {
|
||||
let buttons = Array.from(this.node.querySelectorAll(
|
||||
".subviewbutton:not([disabled]), .subviewkeynav:not([disabled])"));
|
||||
"button,toolbarbutton,menulist,.text-link"));
|
||||
let dwu = this._dwu;
|
||||
return buttons.filter(button => {
|
||||
if (button.hasAttribute("disabled")) {
|
||||
return false;
|
||||
}
|
||||
let bounds = dwu.getBoundsWithoutFlushing(button);
|
||||
return bounds.width > 0 && bounds.height > 0;
|
||||
});
|
||||
|
|
|
@ -217,7 +217,6 @@
|
|||
label="&trackingProtection.title;"/>
|
||||
<toolbarseparator orient="vertical"/>
|
||||
<toolbarbutton id="appMenu-tp-toggle"
|
||||
class="subviewkeynav"
|
||||
enabled="false"
|
||||
oncommand="TrackingProtection.onGlobalToggleCommand();" />
|
||||
</toolbaritem>
|
||||
|
|
Загрузка…
Ссылка в новой задаче