Closed Bug 1616528 Opened 5 years ago Closed 3 years ago

Save doorhanger is displayed on twitch.tv after toggling Show password

Categories

(Web Compatibility :: Site Reports, defect, P3)

Desktop
All

Tracking

(firefox73 affected, firefox74 affected, firefox75 affected)

RESOLVED FIXED
Tracking Status
firefox73 --- affected
firefox74 --- affected
firefox75 --- affected

People

(Reporter: tbabos, Unassigned)

References

(Blocks 1 open bug, )

Details

(Keywords: site-compat, webcompat:site-wait, Whiteboard: [passwords:capture-UI][webcompat:sightline])

Attachments

(2 files)

Attached video Recording of the issue

Affected platforms:
Windows 10 x64
MacOS 10.15

Affected versions:
All

Steps to reproduce:

  1. Launch Firefox
  2. Go to twitch.com and reach the login form
  3. type anything in the password field and click on the "Show" toggle

Expected:
The password should be unmasked.

Actual:
The password is unmasked and the Save Doorhanger is displayed.

Regression-Range:
Not a regression, can reproduce back to FX68

From the logs:

LoginManagerChild: notified before form submission LoginManagerChild.jsm:716:8

The issue is that Twitch is using a <button> with the default type of "submit" so it's triggering a form submission which I assume they later prevent with preventDefault():

<button class="tw-align-items-center tw-align-middle tw-border-bottom-left-radius-small tw-border-bottom-right-radius-small tw-border-top-left-radius-small tw-border-top-right-radius-small tw-button-icon tw-button-icon--secondary tw-button-icon--small tw-core-button tw-core-button--small tw-inline-flex tw-interactive tw-justify-content-center tw-overflow-hidden tw-relative" 
        tabindex="-1" 
        aria-label="Toggle password visibility">…</button>

We intentionally ignore the preventDefault and save anyways so that we can save when sites use XHR/fetch for login after a preventDefault() .

They could easily fix this by adding type=button to this element. I see no reason for this to be a submit button. Hopefully we can reach out to them to tell them this easy fix.

Component: Password Manager: Site Compatibility → Desktop
Keywords: site-compat
Product: Toolkit → Web Compatibility
Whiteboard: [passwords:capture-UI]
Severity: normal → S3
Priority: -- → P3

Adam, do you have any Twitch contacts we can pass this along to?

Flags: needinfo?(astevenson)

We actually have a mailing list... I just forgot :(

Flags: needinfo?(astevenson) → needinfo?(miket)

This no longer reproduces for me. Can you verify please Timea?

Status: NEW → RESOLVED
Closed: 5 years ago
Flags: needinfo?(miket) → needinfo?(timea.babos)
Resolution: --- → FIXED

Unfortunately, I can still reproduce this on latest Nightly 81 on Windows 10

Flags: needinfo?(timea.babos)

Bummer, thanks for re-testing.

Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Flags: needinfo?(miket)
Flags: needinfo?(miket)

We (Twitch) have finally found this in our backlog and updated the button in question to have the type="button" attribute which should finally resolve this.

I was not able to reproduce the issue. Revealing the password does not trigger the Save password and username doorhanger

Tested with:

Browser / Version: Firefox Release 100.0.2 (64-bit)/ Firefox Nightly 102.0a1 (2022-05-23) (64-bit)
Operating System: Mac OSX Catalina 10.15.7
Operating System: Ubuntu 20.4 LTS x64

Closing this as fixed.

https://prnt.sc/V0OiiKm_Qhze

Status: REOPENED → RESOLVED
Closed: 5 years ago3 years ago
Resolution: --- → FIXED
Whiteboard: [passwords:capture-UI] → [passwords:capture-UI][webcompat:sightline]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: