Closed Bug 2094928 Opened 9 days ago Closed 7 days ago

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)

enhancement

Tracking

()

RESOLVED FIXED
163 Branch
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: nobody → asquaret
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 7 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: