Bug 125343
Summary: | AX: Null is not an object when calling body.role field. | ||
---|---|---|---|
Product: | WebKit | Reporter: | Lukasz Gajowy <l.gajowy> |
Component: | Accessibility | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | cfleizach, k.czech, mario, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | 528+ (Nightly build) | ||
Hardware: | All | ||
OS: | All |
Lukasz Gajowy
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.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
David Kilzer (:ddkilzer)
<rdar://problem/28214718>