Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JavaScript API can't be used for polyfilling autocomplete=one-time-code in practice #18

Closed
hober opened this issue Mar 4, 2020 · 2 comments

Comments

@hober
Copy link

hober commented Mar 4, 2020

Hi,

@dbaron, @hadleybeeman, and I took a look at w3ctag/design-reviews#391 today in our Wellington F2F. We have a variety of feedback, of which this issue is one.

It looks like one of the main purposes of the JavaScript API is so it can be used to polyfill autocomplete=one-time-code. It seems unlikely to us that a browser will ship with the JavaScript API but without autocomplete=one-time-code, so it seems to us that the API can't realistically be used to polyfill the autofill feature in the wild since browsers which lack the autofill feature also lack this JavaScript API.

Do you anticipate that there will be browsers with the JavaScript API but without autocomplete=one-time-code?

@hober hober changed the title Imperative API can't be used for polyfilling the declarative equivalent in practice JavaScript API can't be used for polyfilling autocomplete=one-time-code in practice Mar 4, 2020
@hober hober changed the title JavaScript API can't be used for polyfilling autocomplete=one-time-code in practice JavaScript API can't be used for polyfilling autocomplete=one-time-code in practice Mar 4, 2020
@pwnall
Copy link

pwnall commented Mar 5, 2020

Chrome is strongly consider shipping the JavaScript API and not autocomplete=one-time-code. We currently think that the JS API results in better user experiences than the autocomplete model.

@samuelgoto
Copy link
Collaborator

Do you anticipate that there will be browsers with the JavaScript API but without autocomplete=one-time-code?

To answer this question, yes, chrome isn't planning to implement the declarative API at the moment. Not opposing to it, just hasn't gotten up enough in the prioritization to get to it.

I prototyped myself earlier last year and found it to be non trivial to support, hence the preference for the JS API.

https://chromium-review.googlesource.com/c/chromium/src/+/1828057

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

No branches or pull requests

3 participants