Bug 255579 - AX: AXUIElementsForSearchPredicate returns text inside links in addition to the links themselves for AXUnvisitedLinkSearchKey and AXVisitedLinkSearchKey
Summary: AX: AXUIElementsForSearchPredicate returns text inside links in addition to t...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-04-17 23:24 PDT by Tyler Wilcock
Modified: 2023-04-17 23:24 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tyler Wilcock 2023-04-17 23:24:16 PDT
This happens because our implementation currently uses AXCoreObject::style() to determine these properties:

https://github.com/WebKit/WebKit/blob/34a1f637714c4b88cb27cde64e9c1298a29276d2/Source/WebCore/accessibility/AccessibilityRenderObject.cpp#L1703#L1719

And the style of RenderText seems to be inherited from its parent. This is probably not the correct behavior for macOS (but may be OK for iOS?)
Comment 1 Radar WebKit Bug Importer 2023-04-17 23:24:31 PDT
<rdar://problem/108181676>