Closed Bug 1706326 Opened 3 years ago Closed 3 years ago

Pressing Enter on Add Engine shortcut button doesn't add the engine

Categories

(Firefox :: Address Bar, defect, P3)

defect

Tracking

()

VERIFIED FIXED
90 Branch
Accessibility Severity s2
Tracking Status
firefox88 --- unaffected
firefox89 --- verified
firefox90 --- verified

People

(Reporter: mak, Assigned: mak)

References

(Blocks 1 open bug)

Details

(Keywords: access, Whiteboard: [proton-address-bar][a11y] [proton-uplift])

Attachments

(1 file)

Keyboard navigating to an Add Engine shortcut and pressing Enter doesn't add the engine. It works correctly in the separate search bar.

STR:

  1. visit https://addons.mozilla.org/
  2. open the urlbar and navigate with th keyboard to the Add Engine shorctut button for AMO
  3. press Enter

I think this is something we want to fix sooner than later.

Assignee: nobody → mak
Severity: -- → S2
Status: NEW → ASSIGNED
Priority: -- → P3

The patch removes the special .webEngine expando and rather use the class to
recognize add engine shortcuts, similarly to how old shortcut buttons did.
It also reuses the add engine handling in SearchOneOffs.js::_on_command rather
than duplicating it.
It is also no more necessary to provide a wrapper around
SearchUIUtils.addOpenSearchEngine because it would only be used once.

Pushed by mak77@bonardo.net:
https://hg.mozilla.org/integration/autoland/rev/a358d68f94a1
Pressing Enter on Add Engine shortcut button doesn't add the engine. r=adw
Whiteboard: [proton-address-bar][a11y] → [proton-address-bar][a11y] [access-s2]
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch

Comment on attachment 9217446 [details]
Bug 1706326 - Pressing Enter on Add Engine shortcut button doesn't add the engine. r=adw

Beta/Release Uplift Approval Request

  • User impact if declined: Adding search engines directly from the address bar shortcut buttons is part of MR1, this solves an accessibility problem where pressing Enter on such button doesn't work.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: Go to a page providing an opensearch engine (bugzilla or AMO for example), click on the urlbar to open it, navigate with the keyboard down button until you reach the add engine button, press Enter to add it.
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): The patch is reusing existing code, and has an automated test.
  • String changes made/needed:
Attachment #9217446 - Flags: approval-mozilla-beta?
Flags: qe-verify+
Whiteboard: [proton-address-bar][a11y] [access-s2] → [proton-address-bar][a11y] [access-s2][proton-uplift]

Comment on attachment 9217446 [details]
Bug 1706326 - Pressing Enter on Add Engine shortcut button doesn't add the engine. r=adw

Approved for 89 beta 3, thanks.

Attachment #9217446 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
QA Whiteboard: [qa-triaged]

Verified as fixed on Firefox 89 beta 5 and latest Nightly 90.0a1 under Win 10 64-bit, Mac OSX 11.2.3 and Ubuntu 18.04 64-bit.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-triaged]
Flags: qe-verify+
Accessibility Severity: --- → s2
Whiteboard: [proton-address-bar][a11y] [access-s2][proton-uplift] → [proton-address-bar][a11y] [proton-uplift]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: