[Webkit-unassigned] [Bug 109028] mac-wk2 test runner returns null for accessibilityController.accessibleElementById

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Feb 7 11:48:23 PST 2013


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





--- Comment #3 from chris fleizach <cfleizach at apple.com>  2013-02-07 11:50:31 PST ---
(In reply to comment #2)
> Not quite. The axElement actually returns null, not just the properties on the object. Nevertheless, I can work around it like this to normalize the behavior between wk1 and wk2. 
> 
>         if (axElement) {
>             role = axElement.role;
>             subrole = axElement.subrole;
>             roleDescription = axElement.roleDescription;
>         } else {
>             role = 'AXRole: ';
>             subrole = 'AXSubrole: ';
>             roleDescription = 'AXRoleDescription: ';
>         }
> 
> If you think that's expected behavior, it's okay to close this bug.

Ah yes, because this is not an AX element in the hierarchy. In WK1, you'll get an empty ax element, on WK2 you'll get a null element.

We could leave this out of the test

or do a check like
if (axElement && axElement.role)

-- 
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