I've noticed that on any login form, when I fail to enter the correct username/password combination, the browser (Chrome, at least) does not prompt me to save the password.
As soon as I enter the right credentials however, the popup appears and I am prompted to save it.
Is there any kind of web standard that governates this behaviour?
How can I be confident, when I build a web app, that the browser will understand when the credentials are right or wrong?
Note: this is not a duplicate of How does browser know when to prompt user to save password? as suggested: the problem there is that the prompt does not appear at all. I do not have this problem: the prompt does appear, but I'm surprised it appears only when the login is successful.
My question is how does the browser knows to only prompt it when the login is successful?