Archive for September, 2014

Disabling Chrome Autofill

I ran into a weird error where chrome was populating forms within an application with the stored username/password. For instance, in an Add New User form, the stored username showed in in the zipcode field.

Turns out that Chrome now ignores the autocomplete=”off” attribute. Chrome also looks for the first textbox of type “password” and fills the textbox directly above with the username, assuming it must be a login page.

The fix is ugly, but seems to work ok in .Net MVC. You have to fake out Chrome by adding two hidden fields, one of which is type=”password”, like so:


<input style="display:none" type="text" name="fakeusernameremembered" />

<input style="display:none" type="password" name="fakepasswordremembered" />

Here is a detailed thread at SO.

Missing You

Coben is pretty relaible.

Missing You

Tatiana

Pretty steady series.

Tatiana (Arkady Renko)