WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
246135
AX: The isolated tree doesn't update in response to HTMLOptionElement::setSelectedState changes
https://bugs.webkit.org/show_bug.cgi?id=246135
Summary
AX: The isolated tree doesn't update in response to HTMLOptionElement::setSel...
Tyler Wilcock
Reported
2022-10-05 23:42:45 PDT
AX: The isolated tree doesn't update in response to HTMLOptionElement::setSelectedState changes
Attachments
Patch
(17.12 KB, patch)
2022-10-05 23:52 PDT
,
Tyler Wilcock
no flags
Details
Formatted Diff
Diff
Patch
(17.42 KB, patch)
2022-10-06 11:59 PDT
,
Tyler Wilcock
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2022-10-05 23:42:56 PDT
<
rdar://problem/100839849
>
Tyler Wilcock
Comment 2
2022-10-05 23:52:12 PDT
Created
attachment 462829
[details]
Patch
Andres Gonzalez
Comment 3
2022-10-06 07:14:28 PDT
(In reply to Tyler Wilcock from
comment #2
)
> Created
attachment 462829
[details]
> Patch
--- a/Source/WebCore/accessibility/AXObjectCache.cpp +++ a/Source/WebCore/accessibility/AXObjectCache.cpp +bool isARIATableCell(Node* node) Make it a static function like isSimpleImage. --- a/Source/WebCore/accessibility/AXObjectCache.h +++ a/Source/WebCore/accessibility/AXObjectCache.h + void selectedStateChanged(Node*); Rename to onSelectedStateChange. --- a/Source/WebCore/accessibility/ios/AXObjectCacheIOS.mm +++ a/Source/WebCore/accessibility/ios/AXObjectCacheIOS.mm - if (notificationName.isNull()) + if (notificationName.isNull() || (notificationName == SelectedCellsChangedNotificationName && !isARIATableCell(object->node()))) return; Why do we want to suppress this notification here? If we don't want an iOS client to react to it, we should ignore it closer to the client, maybe in the system bundle. --- a/Source/WebCore/accessibility/mac/AXObjectCacheMac.mm +++ a/Source/WebCore/accessibility/mac/AXObjectCacheMac.mm case AXSelectedStateChanged: - macNotification = NSAccessibilitySelectedCellsChangedNotification; - break; + if (isARIATableCell(object->node())) { + macNotification = NSAccessibilitySelectedCellsChangedNotification; + break; + } + return; If we want to distinguish SelectedState from SelectedCells for table cells, we should add a new AXSelectedCellsChanged, so that we shouldn't need to call isARIATableCell(object->node()) here.
Tyler Wilcock
Comment 4
2022-10-06 11:59:34 PDT
Created
attachment 462843
[details]
Patch
EWS
Comment 5
2022-10-07 10:44:38 PDT
Committed
255279@main
(1aa25b42a5eb): <
https://commits.webkit.org/255279@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 462843
[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