Closed Bug 1574949 Opened 5 years ago Closed 5 years ago

The buttons from the Mobile Promotion does not work using the "Enter" key

Categories

(Firefox :: about:logins, defect, P1)

Desktop
All
defect

Tracking

()

VERIFIED FIXED
Firefox 70
Tracking Status
firefox-esr60 --- unaffected
firefox-esr68 --- unaffected
firefox68 --- unaffected
firefox69 --- disabled
firefox70 --- verified

People

(Reporter: cmuntean, Assigned: jaws)

References

Details

(Keywords: access, Whiteboard: [passwords:management] [skyline])

Attachments

(2 files)

[Affected Versions]:

  • Nightly 70.0a1

[Affected Platforms]

  • All Windows
  • All Mac
  • All Linux

[Prerequisites]:

  • Have a Firefox profile with multiple saved logins.
  • You are signed with a valid FxA.

[Steps to reproduce]:

  1. Open the latest Nightly browser with the profile from prerequisites.
  2. Navigate to "about:logins" page.
  3. Press the "Tab" key until the "Download on the App Store" button is focused.
  4. Press the "Enter" key and observe the behavior.

[Expected results]:

  • The Apple Store page with the Firefox Lockwise app is opened in a new tab.

[Actual results]:

  • Nothing happens.

[Notes]:

  • The issue is also reproducible of the "GET IT ON Google Play" button.
  • Attached a screen recording with the issue.

Thanks. The problem is that the code is using originalTarget instead of target for its checks related to these buttons. Also, is there a reason these aren't using <a href=""> (still using the event to do the actual work)? It seems like it would be semantically better.

Keywords: access
Priority: -- → P1
Assignee: nobody → jaws
Status: NEW → ASSIGNED

I didn't switch to using an A element with href= since the link target depends on the value of a preference, which is set at runtime in browser_dismissFooter.js and would necessitate refactoring of the test.

Pushed by jwein@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/14abb9b889f4
Use event.currentTarget to get the reference to the button when acting on the click event so it will work regardless of what inner content is clicked or if the button itself is clicked. r=MattN
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla70

I have verified this issue and is no longer reproducible on the latest Nightly 70.0a1 (2019-08-23)(64-bit) build on Windows 7 x64, Mac 10.14 and Ubuntu 16.04 x64.

  • The "Download on the App Store" and the "GET IT ON Google Play" buttons from the Mobile Promotion can be accessed using the "Enter" key.
Status: RESOLVED → VERIFIED
Component: Password Manager → about:logins
Product: Toolkit → Firefox
Target Milestone: mozilla70 → Firefox 70
Version: 70 Branch → unspecified
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: