Closed Bug 2073892 Opened 2 months ago Closed 12 days ago

Quick suggest commands in the address bar result menu have no accesskey

Categories

(Firefox :: Address Bar, defect, P3)

defect

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: dao, Assigned: dao)

References

(Blocks 1 open bug)

Details

(Whiteboard: [sng])

Attachments

(1 external file)

urlbar-result-menu-show-less-frequently2, urlbar-result-menu-report-inaccurate-location2, urlbar-result-menu-dont-show-weather-suggestions2 and urlbar-result-menu-dont-show-market2 in browser.ftl, and firefox-suggest-command-dont-show-addons2, firefox-suggest-command-dont-show-mdn2, urlbar-result-menu-dont-show-flight-status2 and urlbar-result-menu-dont-show-sports2 in enUS-searchFeatures.ftl define no .accesskey, while Dismiss (D), Manage (M), Learn more (L), Remove from history (R) and Get help (H) do. Result menu commands are {name, l10n} objects, so the key comes from Fluent alone. The fixture in browser_splitbutton.js reuses urlbar-result-menu-dismiss-suggestion2 for two and three entries of one split button, which the shared result panel-list renders together; it needs distinct labels.

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.

Severity: -- → S3
Priority: -- → P3
Whiteboard: [sng]
Assignee: nobody → dao+bmo
Status: NEW → ASSIGNED

The following patch is waiting for review from an inactive reviewer:

ID Title Author Reviewer Status
D342016 Bug 2073892 - Give the address bar result menu's commands accesskeys, and let the check cover that menu. r?#urlbar-reviewers,#fluent-reviewers dao jteow: Back Nov 23, 2026

:dao, could you please find another reviewer?

For more information, please visit BugBot documentation.

Flags: needinfo?(dao+bmo)
Flags: needinfo?(dao+bmo)
Pushed by dgottwald@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/f4b668c9e80e https://hg.mozilla.org/integration/autoland/rev/b8d94eadbc13 Give the address bar result menu's commands accesskeys, and let the check cover that menu. r=urlbar-reviewers,fluent-reviewers,bolsson,daisuke
Pushed by asilaghi@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/775bcb481910 https://hg.mozilla.org/integration/autoland/rev/8b01a522abf5 Revert "Bug 2073892, Bug 2073891 - Give the address bar result menu's commands accesskeys, and let the check cover that menu. r=urlbar-reviewers,fluent-reviewers,bolsson,daisuke" for causing bc tests failures at acknowledgeFeedbackAndDismissal.js

Backed out for causing bc tests failures at acknowledgeFeedbackAndDismissal.js
Backout Link
Push with failures
Failure Log
failure log2
Failure line TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser-results/browser_acknowledgeFeedbackAndDismissal.js | acknowledgeDismissal_rowNotSelected - Console message: [JavaScript Error: "AccessKeyConflictError: panel-list: accesskey "r" is shared by "Report inaccurate location", "Remove from history"; "Not interested", "Not interested" have no accesskey while "Report inaccurate location", "Remove from history" do. Fix a shared accesske

Flags: needinfo?(dao+bmo)
Pushed by dgottwald@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/75bf1aa0672c https://hg.mozilla.org/integration/autoland/rev/1bd6a78d66ab Give the address bar result menu's commands accesskeys, and let the check cover that menu. r=urlbar-reviewers,fluent-reviewers,bolsson,daisuke
Flags: needinfo?(dao+bmo)
Status: ASSIGNED → RESOLVED
Closed: 12 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
QA Whiteboard: [search][qa-triage-done-c163/b162]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: