Bug 266384 - AX: aria-labeledby should be ignored for browser interop reasons.
Summary: AX: aria-labeledby should be ignored for browser interop reasons.
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Andres Gonzalez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-12-13 18:05 PST by Andres Gonzalez
Modified: 2023-12-15 14:14 PST (History)
18 users (show)

See Also:


Attachments
Patch (10.67 KB, patch)
2023-12-13 18:16 PST, Andres Gonzalez
no flags Details | Formatted Diff | Diff
Patch (12.70 KB, patch)
2023-12-14 07:17 PST, Andres Gonzalez
no flags Details | Formatted Diff | Diff
Patch (12.02 KB, patch)
2023-12-14 07:49 PST, Andres Gonzalez
no flags Details | Formatted Diff | Diff
Patch (14.20 KB, patch)
2023-12-14 14:01 PST, Andres Gonzalez
no flags Details | Formatted Diff | Diff
Patch (14.88 KB, patch)
2023-12-14 16:53 PST, Andres Gonzalez
tyler_w: review-
ews-feeder: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andres Gonzalez 2023-12-13 18:05:12 PST
Only aria-labelledby should be used instead.
Comment 1 Radar WebKit Bug Importer 2023-12-13 18:05:20 PST
<rdar://problem/119640762>
Comment 2 Andres Gonzalez 2023-12-13 18:16:26 PST
Created attachment 469031 [details]
Patch
Comment 3 Andres Gonzalez 2023-12-14 07:17:47 PST
Created attachment 469039 [details]
Patch
Comment 4 EWS Watchlist 2023-12-14 07:21:04 PST
This patch modifies the imported WPT tests. Please ensure that any changes on the tests (not coming from a WPT import) are exported to WPT. Please see https://trac.webkit.org/wiki/WPTExportProcess
Comment 5 Andres Gonzalez 2023-12-14 07:49:23 PST
Created attachment 469040 [details]
Patch
Comment 6 Andres Gonzalez 2023-12-14 14:01:45 PST
Created attachment 469046 [details]
Patch
Comment 7 Andres Gonzalez 2023-12-14 16:53:15 PST
Created attachment 469051 [details]
Patch
Comment 8 Tyler Wilcock 2023-12-15 09:50:48 PST
Comment on attachment 469051 [details]
Patch

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

> LayoutTests/accessibility/aria-labelledby-overrides-aria-label-expected.txt:6
> +usingLabel.title: [AXTitle: ]

Why is this testcase affected by removing aria-labeledby? It was just using its button innner-text with an aria-label, no aria-labelledby or labeledby as far as I can tell.

> LayoutTests/accessibility/aria-labelledby-overrides-aria-label-expected.txt:8
> +usingLabelledby.title: [AXTitle: ]

As the correct-spelling version, shouldn't this still have a title?
Comment 9 Andres Gonzalez 2023-12-15 10:07:02 PST
(In reply to Tyler Wilcock from comment #8)
> Comment on attachment 469051 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=469051&action=review
> 
> > LayoutTests/accessibility/aria-labelledby-overrides-aria-label-expected.txt:6
> > +usingLabel.title: [AXTitle: ]
> 
> Why is this testcase affected by removing aria-labeledby? It was just using
> its button innner-text with an aria-label, no aria-labelledby or labeledby
> as far as I can tell.
> 
> > LayoutTests/accessibility/aria-labelledby-overrides-aria-label-expected.txt:8
> > +usingLabelledby.title: [AXTitle: ]
> 
> As the correct-spelling version, shouldn't this still have a title?

The accessibility/*-expected.txt wasn't being used because there was one for platform/Mac and one for platform/glib. So what I did was to remove the one from platform/Mac and move it to accessibility, as we do with most other tests, i.e., the Mac expectation file is in the accessibility dir and other platforms if differ are int heir corresponding platform/ dirs. So if you compare the new accessibility/*-expected.txt with the deleted platform/Mac one, you can confirm that the only change is the removal of the labeledby lines. Thanks for being alert about these changes.
Comment 10 Tyler Wilcock 2023-12-15 10:09:13 PST
(In reply to Andres Gonzalez from comment #9)
> (In reply to Tyler Wilcock from comment #8)
> > Comment on attachment 469051 [details]
> > Patch
> > 
> > View in context:
> > https://bugs.webkit.org/attachment.cgi?id=469051&action=review
> > 
> > > LayoutTests/accessibility/aria-labelledby-overrides-aria-label-expected.txt:6
> > > +usingLabel.title: [AXTitle: ]
> > 
> > Why is this testcase affected by removing aria-labeledby? It was just using
> > its button innner-text with an aria-label, no aria-labelledby or labeledby
> > as far as I can tell.
> > 
> > > LayoutTests/accessibility/aria-labelledby-overrides-aria-label-expected.txt:8
> > > +usingLabelledby.title: [AXTitle: ]
> > 
> > As the correct-spelling version, shouldn't this still have a title?
> 
> The accessibility/*-expected.txt wasn't being used because there was one for
> platform/Mac and one for platform/glib. So what I did was to remove the one
> from platform/Mac and move it to accessibility, as we do with most other
> tests, i.e., the Mac expectation file is in the accessibility dir and other
> platforms if differ are int heir corresponding platform/ dirs. So if you
> compare the new accessibility/*-expected.txt with the deleted platform/Mac
> one, you can confirm that the only change is the removal of the labeledby
> lines. Thanks for being alert about these changes.
Oh right, should've noticed that, thanks!
Comment 11 Tyler Wilcock 2023-12-15 13:12:59 PST
Comment on attachment 469051 [details]
Patch

Changing to r- as the misspelling is used by too many sites to remove for now.
Comment 12 James Craig 2023-12-15 14:14:36 PST
More info on that here: 
- https://github.com/w3c/aria/issues/2093