Button does not programmatically indicate that it opens a dialog (Sponsored story card and ad banner > ••• disclosure > Report this ad button)
Categories
(Firefox :: New Tab Page, enhancement)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox163 | --- | fixed |
People
(Reporter: farmisen, Assigned: asquaret)
References
Details
(Keywords: access, good-first-bug)
Attachments
(1 external file)
Steps to Reproduce
Open DevTools. On a sponsored story card or an ad banner on the New Tab page, open the ••• disclosure and inspect the Report this ad button.
Expected Behavior
aria-haspopup="dialog" is present, as activating the button opens the report dialog.
Actual Behavior
aria-haspopup attribute not present.
User Impact
Semantic information diluted.
WCAG 2.2 References
Best practice only. While aria-haspopup="dialog" adds semantic information, its absence does not constitute a WCAG failure provided the dialog itself is properly implemented and announced.
Recommendations
Add ariaHasPopup: "dialog" to the ReportAd option in browser/extensions/newtab/content-src/lib/link-menu-options.mjs. Other options that open a dialog, such as EditTopSite and ReportContent, already set it, and both menu implementations forward it to the menu item button.
Code Pointers
ReportAd dispatches REPORT_AD_OPEN, which opens the same ReportContent dialog as the Report button. The option is used by DSLinkMenu (sponsored story cards) and AdBannerContextMenu (ad banners).
| Assignee | ||
Comment 1•9 days ago
|
||
Updated•9 days ago
|
Comment 3•7 days ago
|
||
| bugherder | ||
Description
•