[Webkit-unassigned] [Bug 125343] New: AX: Null is not an object when calling body.role field.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Dec 6 04:57:17 PST 2013


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

           Summary: AX: Null is not an object when calling body.role
                    field.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Accessibility
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: l.gajowy at samsung.com
                CC: cfleizach at apple.com, mario at webkit.org,
                    k.czech at samsung.com,
                    webkit-bug-importer at group.apple.com


Recently i was working on another bug and noticed a problem in accessibilityControler.getAccessibleElementById() method.

The "problematic" LayoutTest body:

<html>
<head>
<script src="../resources/js-test-pre.js"></script>
</head>
<body id="body">

<p id="description"></p>
<div id="console"></div>
<script>
    description("This tests that each of these ARIA roles have appropriate mappings.");
    if (window.testRunner) {
        testRunner.dumpAsText();
        if (window.accessibilityController) {
            var body = accessibilityController.accessibleElementById("body");
            debug("Role for 'body' is: " + body.role);
    }
}
</script>
<script src="../resources/js-test-post.js"></script>
</body>
</html>

It turned out that when i invoke debug("Role for 'body' is: " + body.role); method, the body.role field is NULL (i get an error in layout test output - "null is not an object"). Should it be like that? What is more, when i explicitly declare the role for body (eg. <body id="body" role="alert">), the body.role field is alert, not NULL anymore. So this method doesn't work properly in my opinion.

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