Bug 1179284 - using explicit label for accessible with role 'status' instead of subtree. r=eeejay
authorYura Zenevich <yzenevich@mozilla.com>
Mon, 06 Jul 2015 14:38:35 -0400
changeset 283245 94f273714184c7231f2204bdb784a65e6aa0ab85
parent 283244 a75d15eefefc03df75c4fc9bd9cf39d124bf447a
child 283246 932a80206f57aa5c0d3b13eef7f7549da97f45b4
push id5067
push userraliiev@mozilla.com
push dateMon, 21 Sep 2015 14:04:52 +0000
treeherdermozilla-beta@14221ffe5b2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerseeejay
bugs1179284
milestone42.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 1179284 - using explicit label for accessible with role 'status' instead of subtree. r=eeejay --- accessible/jsat/OutputGenerator.jsm | 3 ++- accessible/tests/mochitest/jsat/test_output.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-)
accessible/jsat/OutputGenerator.jsm
accessible/tests/mochitest/jsat/test_output.html
--- a/accessible/jsat/OutputGenerator.jsm
+++ b/accessible/jsat/OutputGenerator.jsm
@@ -295,17 +295,18 @@ let OutputGenerator = {
     'definition': NAME_FROM_SUBTREE_RULE,
     'key': NAME_FROM_SUBTREE_RULE,
     'image map': INCLUDE_DESC,
     'option': INCLUDE_DESC,
     'listbox': INCLUDE_DESC,
     'definitionlist': INCLUDE_DESC | INCLUDE_NAME,
     'dialog': INCLUDE_DESC | INCLUDE_NAME,
     'chrome window': IGNORE_EXPLICIT_NAME,
-    'app root': IGNORE_EXPLICIT_NAME },
+    'app root': IGNORE_EXPLICIT_NAME,
+    'statusbar': NAME_FROM_SUBTREE_RULE },
 
   objectOutputFunctions: {
     _generateBaseOutput:
       function _generateBaseOutput(aAccessible, aRoleStr, aState, aFlags) {
         let output = [];
 
         if (aFlags & INCLUDE_DESC) {
           this._addState(output, aState, aRoleStr);
--- a/accessible/tests/mochitest/jsat/test_output.html
+++ b/accessible/tests/mochitest/jsat/test_output.html
@@ -654,14 +654,14 @@ https://bugzilla.mozilla.org/show_bug.cg
         <option value="null">Manual</option>
       </select>
       <select id="labelled-combobox" aria-label="Intervals">
         <option value="15">Every 15 min</option>
         <option value="30">Every 30 min</option>
         <option value="null" selected>Never</option>
       </select>
       <div id="statusbar-1" role="status">Last sync:<span>2 days ago</span></div>
-      <div aria-label="Last sync: 30min ago" id="statusbar-2" role="status"></div>
+      <div aria-label="Last sync: 30min ago" id="statusbar-2" role="status">I should be ignored</div>
       <span id="switch-1" role="switch" aria-label="Simple switch" aria-checked="true"></span>
       <span id="switch-2" role="switch" aria-label="Another switch" aria-checked="false"></span>
     </div>
   </body>
 </html>