[Webkit-unassigned] [Bug 133519] [GTK] Layout Test accessibility/table-fallback-roles-expose-element-attributes.html is failing

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jun 5 02:53:27 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=133519





--- Comment #1 from Mario Sanchez Prada <mario at webkit.org>  2014-06-05 02:53:50 PST ---
The problem here is that we don't expose the text in a cell as a child element for ATK, so that's why we can't anything printed when we navigate down to that level.

In other words, in the Mac the hiearchy is like this

  Grid
    |--Cell
    |    |--text
    |--Cell
    |    |--text
   ...  ...

In ATK, however, it's like this:

  Grid
    |--Cell
    |--Cell
   ...  ...

...and you get the text in the cell by quering the AX object for that cell (which implements AtkText).

Because of that reason, the following code can't output anything reasonable for ATK:

  if (window.accessibilityController) {
      for (var k = 1; k < 4; k++) {
         var grid = accessibilityController.accessibleElementById("grid" + k);
         var cellChild = grid.cellForColumnAndRow(0, 0).childAtIndex(0);
         debug("cellChild: " + cellChild.role + ", " + cellChild.stringValue + "\n");
      }
  }

I think an improvement could be to do something like this:

  if (window.accessibilityController) {
      for (var k = 1; k < 4; k++) {
          var grid = accessibilityController.accessibleElementById("grid" + k);
          var cell = grid.cellForColumnAndRow(0, 0);
          debug("cell: " + cell.role + ", " + cell.stringValue + "\n");
          if (accessibilityController.platformName != "atk") {
              var cellChild = cell.childAtIndex(0);
              debug("cellChild: " + cellChild.role + ", " + cellChild.stringValue + "\n");
          }
      }
  }

...and then update the expectations accordingly (probably with the help of the EWS, to know what the Mac would print there)

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list