Bug 1900009 Comment 3 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Hey loeper, Thanks for reporting. I can confirm this is happening on latest release. 
After doing some digging, the initial page has a formless username input of this shape:
```html
<input class="email-input " inputmode="email" type="email" id="email-input" name="email" autocomplete="username" autocapitalize="none" spellcheck="false" required="" placeholder="">
```

We don't autofill username inputs without a form right now.

I think this is something we can add. Right now, we only [dispatch](https://searchfox.org/mozilla-central/source/dom/html/HTMLInputElement.cpp#4426-4433) `DOMFormHasPossibleUsername` for text and email inputs within a form. I think we can allow `autocomplete="username` without a form too since this a strong hint that a field is a username.

Alternatively, we can also check [here](https://searchfox.org/mozilla-central/source/toolkit/actors/AutoCompleteChild.sys.mjs#212)  if `autocomplete="username` and add `LoginManager` as a provider for that input. 

Dimi what do you think ?
Hey loeper, Thanks for reporting. I can confirm this is happening on latest release. 
After doing some digging, the initial page has a formless username input of this shape:
```html
<input class="email-input " inputmode="email" type="email" id="email-input" name="email" autocomplete="username" autocapitalize="none" spellcheck="false" required="" placeholder="">
```

We don't show the autofill on username inputs without a form right now.

I think this is something we can add. Right now, we only [dispatch](https://searchfox.org/mozilla-central/source/dom/html/HTMLInputElement.cpp#4426-4433) `DOMFormHasPossibleUsername` for text and email inputs within a form. I think we can allow `autocomplete="username` without a form too since this a strong hint that a field is a username.

Alternatively, we can also check [here](https://searchfox.org/mozilla-central/source/toolkit/actors/AutoCompleteChild.sys.mjs#212)  if `autocomplete="username` and add `LoginManager` as a provider for that input. 

Dimi what do you think ?
Hey loeper, Thanks for reporting. I can confirm this is happening on latest release. 
After doing some digging, the initial page has a formless username input of this shape:
```html
<input class="email-input " inputmode="email" type="email" id="email-input" name="email" autocomplete="username" autocapitalize="none" spellcheck="false" required="" placeholder="">
```

We don't show the autofill popup on username inputs without a form right now.

I think this is something we can add. Right now, we only [dispatch](https://searchfox.org/mozilla-central/source/dom/html/HTMLInputElement.cpp#4426-4433) `DOMFormHasPossibleUsername` for text and email inputs within a form. I think we can allow `autocomplete="username` without a form too since this is a strong hint that a field is a username.

Alternatively, we can also check [here](https://searchfox.org/mozilla-central/source/toolkit/actors/AutoCompleteChild.sys.mjs#212)  if `autocomplete="username` and add `LoginManager` as a provider for that input. 

Dimi what do you think ?

Back to Bug 1900009 Comment 3