2

I'm confused about how Chrome decides what forms to autofill. By autofill I mean the inputs are highlighted in yellow and already completely filled in when you land on the page (see picture below). I do not mean autocomplete which is where the input is blank and you get a suggestion only when you start typing in it.

Here's the autofill rules as I understand them:

  1. If your form is located on its own url, e.g., http://mysite.com/login
  2. Your form is present on page load and is NOT loaded via ajax

Comparing my site with Dropbox's we both have a login page: http://localhost/login vs. https://www.dropbox.com/login which satisfies rule #1. The login form gets autofilled for both of us.

My problem is with rule #2. On Dropbox's homepage, www.dropbox.com, they have a "sign in" modal (see picture below) that gets autofilled. On my homepage, http://localhost, I have an identical modal which does NOT ever get autofilled.

I can't figure what the deal is here, can someone chime in? Is it just a localhost vs. real URL issue? If so, how do you explain why http://localhost/login gets autofilled?

Dropbox modal login

tim peterson
  • 23,653
  • 59
  • 177
  • 299
  • when logging into your site have you ever told chrome not to remember your password and to remember that choice? – Patrick Evans Aug 25 '13 at 15:35
  • @PatrickEvans are you talking about: chrome://settings => `Enable Autofill to fill out web forms in a single click.` That box is checked. If not, I'm not sure how Dropbox's "Remember me" cookie would be communicated to Chrome, though my modal doesn't have that checkbox so that would be a difference. Or maybe you are referring to something else? – tim peterson Aug 25 '13 at 15:39
  • Yes both boxes are checked and have been checked. I think its something about localhost b/c when I go to my live site, my modal is autofilled. This is strange. – tim peterson Aug 25 '13 at 15:48
  • Both good points. Changing the 1st one is what worked. My localhost was in the "Never save" category, see this http://imgur.com/4q2LHRk. I must have done that along time ago. Thanks so much this was driving me crazy. Feel free to convert your comment into an answer and I'll accept it. Thanks! – tim peterson Aug 25 '13 at 16:02

1 Answers1

2

When you log into a new site chrome will drop down its notification bar at the top and ask you if you want to save the password, if you tell it "Never" it wont ask again and it wont ever autofill

To get form fields to autofill like street, address, etc, a good answer by kmote

How to trigger Autofill in Google Chrome?,

Community
  • 1
  • 1
Patrick Evans
  • 41,991
  • 6
  • 74
  • 87