Bug 233228 - Fix for accessibility/notification-listeners.html in isolated tree mode.
Summary: Fix for accessibility/notification-listeners.html in isolated tree mode.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Andres Gonzalez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-11-16 18:02 PST by Andres Gonzalez
Modified: 2021-11-17 04:50 PST (History)
11 users (show)

See Also:


Attachments
Patch (6.79 KB, patch)
2021-11-16 18:07 PST, Andres Gonzalez
no flags Details | Formatted Diff | Diff
Patch (7.17 KB, patch)
2021-11-16 18:38 PST, Andres Gonzalez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andres Gonzalez 2021-11-16 18:02:37 PST
Fix for accessibility/notification-listeners.html in isolated tree mode.
Comment 1 Radar WebKit Bug Importer 2021-11-16 18:02:55 PST
<rdar://problem/85484341>
Comment 2 Andres Gonzalez 2021-11-16 18:07:38 PST
Created attachment 444462 [details]
Patch
Comment 3 Tyler Wilcock 2021-11-16 18:23:27 PST
Comment on attachment 444462 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=444462&action=review

> LayoutTests/accessibility/notification-listeners.html:23
> +            let select = await waitForElementById("select");

Does this need to await waitForElementById instead of accessibilityController.accessibleElementById? The selected item appears to be a static part of the document, so seems like it should be accessible by the latter.
Comment 4 Tyler Wilcock 2021-11-16 18:26:17 PST
(In reply to Tyler Wilcock from comment #3)
> Comment on attachment 444462 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=444462&action=review
> 
> > LayoutTests/accessibility/notification-listeners.html:23
> > +            let select = await waitForElementById("select");
> 
> Does this need to await waitForElementById instead of
> accessibilityController.accessibleElementById? The selected item appears to
> be a static part of the document, so seems like it should be accessible by
> the latter.
Nevermind, Andres responded elsewhere that using accessibilityController.accessibleElementById in this case results in flakiness (~10 runs of 1000). It's fine to leave as-is.
Comment 5 Andres Gonzalez 2021-11-16 18:38:58 PST
Created attachment 444465 [details]
Patch
Comment 6 Andres Gonzalez 2021-11-16 18:42:32 PST
(In reply to Tyler Wilcock from comment #3)
> Comment on attachment 444462 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=444462&action=review
> 
> > LayoutTests/accessibility/notification-listeners.html:23
> > +            let select = await waitForElementById("select");
> 
> Does this need to await waitForElementById instead of
> accessibilityController.accessibleElementById? The selected item appears to
> be a static part of the document, so seems like it should be accessible by
> the latter.

Thanks for pointing this out. That was my original take as well, but it turns out that if we use accessibleElementByID, the test is flaky. Added details to the ChangeLog.
Comment 7 EWS 2021-11-17 04:50:45 PST
Committed r285924 (244333@main): <https://commits.webkit.org/244333@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 444465 [details].