Closed Bug 2073899 Opened 2 months ago Closed 5 days ago

Share menu items from macOS and More… have no accesskey beside Copy Links and QR code

Categories

(Firefox :: Sharing, defect, P3)

defect

Tracking

()

RESOLVED FIXED
163 Branch
Tracking Status
firefox163 --- fixed

People

(Reporter: dao, Assigned: dao)

References

(Blocks 1 open bug)

Details

Attachments

(1 external file)

In share-tab-popup and the content area's share submenu, the provider items SharingUtils.sys.mjs builds from MacSharingService (AirDrop, Mail, Messages, …) are generated from data and have no accesskey; More… (menu-share-more) and More Options (menu-share-windows) are static and need a key beside Copy Links (L) and the QR code item (Q).

Bug 2073853 adds an automation check: a menupopup or panel-list that opens with two visible items sharing an accesskey, or with items lacking one beside items that have one, logs an AccessKeyConflictError and fails the running browser-chrome test. This menu carries an accesskey-conflicts-bug attribute naming this bug so the check skips it. The fix picks unique letters for static items (a message whose accesskey changes gets a new Fluent id; no migration recipe) and removes the attribute in the same patch so the check guards the menu from then on. Items generated from data can't be given accesskeys, so a menu that mixes them with static items either drops the static items' accesskeys or moves the generated items into a submenu. Conflicts are per visible menu instance, so a letter has to be free among the items that can show together, not merely in the Fluent file.

SharingUtils.sys.mjs builds the items for both share-tab-popup and the context-menu share submenu, and only two of them carry an accesskey: Copy Link from menu-share-copy-links (L) and the QR item from menu-file-share-qrcode (Q). browser.ftl defines menu-share-more and menu-share-windows with a .label and no .accesskey, and the macOS provider items at #319-326 get only the OS-supplied label, so an open share menu has enabled items with no key next to items that have one.

Fix: Give the two static messages an accesskey (M is free beside L and Q) under new Fluent ids, since adding an attribute to an existing message leaves localized builds without it, and point the setAttributes calls at #333 and #344 at the new ids; set accesskey="" on each provider menuitem inside the services.forEach loop, and remove the accesskey-conflicts-bug annotation in the same patch so the check from bug 2073853 guards this menu.

Suggested severity: S4. Two menu items and the macOS provider list have no keyboard mnemonic, which is a papercut rather than a block since the menu is still navigable with arrow keys and type-ahead.


If you'd like to provide feedback on this comment, please use the 👍 or 👎 reaction.
If you want to categorize your feedback you can add one of the following tags: ai-triage-wrong-file, ai-triage-wrong-cause, ai-triage-hallucination, ai-triage-out-of-scope, ai-triage-wrong-fix, ai-triage-shallow-fix.

Needinfo hackbot@mozilla.tld to have a patch generated for this bug, include any questions or directions as needed in your comment.

The severity field is not set for this bug.
:jhirsch, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(jhirsch)
Severity: -- → S3
Flags: needinfo?(jhirsch)
Priority: -- → P3
Assignee: nobody → dao+bmo
Status: NEW → ASSIGNED
Pushed by dgottwald@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/d8496c5ea693 https://hg.mozilla.org/integration/autoland/rev/35ea9aedcbfe Give the share menu's More Options item an accesskey, and let the check cover the share menus. r=fluent-reviewers,bolsson
Status: ASSIGNED → RESOLVED
Closed: 5 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: