Save doorhanger is displayed on twitch.tv after toggling Show password
Categories
(Web Compatibility :: Site Reports, defect, P3)
Tracking
(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)
Affected platforms:
Windows 10 x64
MacOS 10.15
Affected versions:
All
Steps to reproduce:
- Launch Firefox
- Go to twitch.com and reach the login form
- 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
Comment 1•5 years ago
|
||
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.
Updated•5 years ago
|
Comment 2•5 years ago
|
||
Adam, do you have any Twitch contacts we can pass this along to?
Comment 3•5 years ago
|
||
We actually have a mailing list... I just forgot :(
Comment 4•5 years ago
|
||
This no longer reproduces for me. Can you verify please Timea?
Reporter | ||
Comment 5•5 years ago
|
||
Unfortunately, I can still reproduce this on latest Nightly 81 on Windows 10
Comment 6•5 years ago
|
||
Bummer, thanks for re-testing.
Updated•5 years ago
|
Updated•5 years ago
|
Comment 7•4 years ago
|
||
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.
Comment 8•3 years ago
|
||
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.
Updated•9 months ago
|
Description
•