[Webkit-unassigned] [Bug 233603] New: AX: Reduce repetition in retrieving typed attribute values in AccessibilityUIElementMac
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Nov 29 15:45:56 PST 2021
https://bugs.webkit.org/show_bug.cgi?id=233603
Bug ID: 233603
Summary: AX: Reduce repetition in retrieving typed attribute
values in AccessibilityUIElementMac
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Accessibility
Assignee: webkit-unassigned at lists.webkit.org
Reporter: tyler_w at apple.com
CC: andresg_22 at apple.com,
webkit-bug-importer at group.apple.com
We have a lot of functions in both the WebKitTestRunner and DumpRenderTree versions of AccessibilityUIElementMac that repeat the same logic for getting a typed attribute value. For example:
bool AccessibilityUIElement::hasPopup() const
{
BEGIN_AX_OBJC_EXCEPTIONS
id value = [m_element accessibilityAttributeValue:@"AXHasPopup"];
if ([value isKindOfClass:[NSNumber class]])
return [value boolValue];
END_AX_OBJC_EXCEPTIONS
return false;
}
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20211129/aab966a9/attachment.htm>
More information about the webkit-unassigned
mailing list