firefox - How does browser know when to prompt user to save password? -


this related question asked here: how can browser prompt save password?

this problem: can't browser prompt me save password site i'm developing. (i'm talking bar appears when submit form on firefox, says "remember password yoursite.com? yes / not / never")

this super frustrating because feature of firefox (and other modern browsers, hope work in similar fashion) seems mystery. it's magic trick browser does, looks @ code, or submit, or something, , if "looks" login form username (or email address) field , password field, offers save.

except in case, it's not offering users option after use login form, , it's making me nuts. :-)

(i checked firefox settings-- have not told browser "never" site. should prompting.)

my question

what heuristics firefox uses know when should prompt user save? shouldn't difficult answer, since it's right there in mozilla source (i don't know or else i'd try dig out myself). i've had no luck finding blog post or other similar developer note mozilla developers this.

(i fine question being answered safari or ie; imagine browsers user similar rules, if can working in 1 of them, work in others.)

(* note if answer me has cookies, encryption or else how i'm storing passwords in local database, odds strong have misunderstood question. :-)

based off have read, think firefox detects passwords form.elements[n].type == "password" (iterating through form elements) , detects username field searching backwards through form elements text field before password field (more info here). might try similar in javascript , see if can detect password field.

from can tell, login form needs part of <form> or firefox won't detect it. setting id="password" on password field couldn't hurt either.

if still giving lot of problems, recommend asking on 1 of mozilla project's developer mailing lists (you might response developer designed feature).


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -