WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
255480
AX: isSelected AX APIs don't work for some types of display:contents elements
https://bugs.webkit.org/show_bug.cgi?id=255480
Summary
AX: isSelected AX APIs don't work for some types of display:contents elements
Tyler Wilcock
Reported
2023-04-15 01:12:01 PDT
That's because `isSelected` is implemented for AccessibilityRenderObject and not AccessibilityNodeObject despite the fact that the method does not actually require a renderer.
Attachments
Patch
(13.76 KB, patch)
2023-04-15 23:18 PDT
,
Tyler Wilcock
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2023-04-15 01:12:11 PDT
<
rdar://problem/108083208
>
Tyler Wilcock
Comment 2
2023-04-15 23:18:47 PDT
Created
attachment 465937
[details]
Patch
chris fleizach
Comment 3
2023-04-15 23:54:34 PDT
Comment on
attachment 465937
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=465937&action=review
> Source/WebCore/accessibility/AccessibilityObject.cpp:2767 > + if (!renderer() && !node())
Should we proceed even if we don't have a renderer? for display contents. won't that not have a renderer
Tyler Wilcock
Comment 4
2023-04-16 00:26:37 PDT
(In reply to chris fleizach from
comment #3
)
> Comment on
attachment 465937
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=465937&action=review
> > > Source/WebCore/accessibility/AccessibilityObject.cpp:2767 > > + if (!renderer() && !node()) > > Should we proceed even if we don't have a renderer? for display contents. > won't that not have a renderer
True that display:contents won't have a renderer(), but it will have a node(), so we should be OK here.
chris fleizach
Comment 5
2023-04-16 22:34:28 PDT
Comment on
attachment 465937
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=465937&action=review
>>> Source/WebCore/accessibility/AccessibilityObject.cpp:2767 >>> + if (!renderer() && !node()) >> >> Should we proceed even if we don't have a renderer? for display contents. won't that not have a renderer > > True that display:contents won't have a renderer(), but it will have a node(), so we should be OK here.
do we need to check renderer() then?
Tyler Wilcock
Comment 6
2023-04-16 23:04:20 PDT
(In reply to chris fleizach from
comment #5
)
> Comment on
attachment 465937
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=465937&action=review
> > >>> Source/WebCore/accessibility/AccessibilityObject.cpp:2767 > >>> + if (!renderer() && !node()) > >> > >> Should we proceed even if we don't have a renderer? for display contents. won't that not have a renderer > > > > True that display:contents won't have a renderer(), but it will have a node(), so we should be OK here. > > do we need to check renderer() then?
Maybe not – I mostly tried to preserve the existing logic that would say "is selected" is false if there is no renderer. But I adapted it to display:contents to instead now be "is selected" is false if there is both no renderer and no node. Having one or the other satisfies the check and allows the function to proceed.
EWS
Comment 7
2023-04-17 00:03:45 PDT
Committed
263014@main
(0b61863f7ec7): <
https://commits.webkit.org/263014@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 465937
[details]
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug