Bug 1572641 Part 1: Make all of the privacy panel sub panels browseable documents for screen readers, r=johannh
authorMarco Zehe <mzehe@mozilla.com>
Fri, 09 Aug 2019 10:36:02 +0000
changeset 487189 a90563d008f447f7edd37bc69be42e1b4e57210e
parent 487188 ff602e12fd45dc2e79f72f0123f7c1ac6e2b1386
child 487190 526168f22912688d80463f9890459cc05c222312
push id92148
push usermzehe@mozilla.com
push dateFri, 09 Aug 2019 11:13:51 +0000
treeherderautoland@2aa913a0c7ee [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjohannh
bugs1572641
milestone70.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1572641 Part 1: Make all of the privacy panel sub panels browseable documents for screen readers, r=johannh Differential Revision: https://phabricator.services.mozilla.com/D41349
browser/components/controlcenter/content/protectionsPanel.inc.xul
--- a/browser/components/controlcenter/content/protectionsPanel.inc.xul
+++ b/browser/components/controlcenter/content/protectionsPanel.inc.xul
@@ -10,16 +10,17 @@
        aria-labelledby="protections-popup-main-header-label"
        onpopupshown="gProtectionsHandler.onPopupShown(event);"
        onpopuphidden="gProtectionsHandler.onPopupHidden(event);"
        orient="vertical">
 
   <panelmultiview id="protections-popup-multiView"
                   mainViewId="protections-popup-mainView">
     <panelview id="protections-popup-mainView"
+               role="document"
                descriptionheightworkaround="true">
       <hbox id="protections-popup-mainView-panel-header"
             flex="1"
             onclick="gProtectionsHandler.onHeaderClicked(event);">
         <label id="protections-popup-main-header-label" flex="1">
           <html:span id="protections-popup-mainView-panel-header-span"/>
         </label>
         <toolbarbutton id="protections-popup-info-button" class="panel-info-button">
@@ -128,16 +129,17 @@
                          onclick="gProtectionsHandler.openProtections(true);"/>
           </hbox>
         </stack>
       </vbox>
     </panelview>
 
     <!-- Site Not Working? SubView -->
     <panelview id="protections-popup-siteNotWorkingView"
+               role="document"
                title="&protections.siteNotWorkingView.title;"
                descriptionheightworkaround="true"
                flex="1">
         <hbox id="protections-popup-siteNotWorkingView-header">
           <vbox class="protections-popup-tp-switch-label-box" flex="1">
             <label class="protections-popup-tp-switch-on-header">&protections.etpON.header;</label>
             <label class="protections-popup-tp-switch-off-header">&protections.etpOFF.header;</label>
           </vbox>