Skip to content

pkp/pkp-lib#12337 CSS masking to handle auto complete off for password type input - #879

Open
touhidurabir wants to merge 1 commit into
pkp:mainfrom
touhidurabir:i12337_v2_main
Open

pkp/pkp-lib#12337 CSS masking to handle auto complete off for password type input#879
touhidurabir wants to merge 1 commit into
pkp:mainfrom
touhidurabir:i12337_v2_main

Conversation

@touhidurabir

Copy link
Copy Markdown
Member

* this returns false and the field falls back to type="password"
* with autocomplete="new-password" + vendor data-* attrs.
*/
isMaskedSecret() {

@jardakotesovec jardakotesovec Apr 21, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @touhidurabir , seems that the different browsers and extensions are being quite inconsistent on this.

I will try to push back here (sorry), to see whether we could go with simpler version, as this is quite convoluted.

Could not we for compliance purposes just go with autocomplete=off and if the extensions browsers fails to follow that - I don't think thats our problem, but they are not following attribute which is meant to achieve this behaviour.

@asmecher Any thoughts on how far we need to take this?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is quite convoluted.

I agree on this 100% .

Could not we for compliance purposes just go with autocomplete=off and if the extensions browsers fails to follow that - I don't think thats our problem, but they are not following attribute which is meant to achieve this behaviour.

If we can do that, that's best for us . However European Commission Web Application Security Standard set this as a requirement . And seems some browser and extension just simply does not respect the attr autocomplete=off, specially when considering FireFox only as browser . So I make an update PR on this to handle such cases .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants