Bug 718708 - Don't prompt to remember password when there is an invalid hostname. r=zpao

This commit is contained in:
Margaret Leibovic 2012-01-20 12:56:19 -08:00
parent c527c0ca61
commit 87670e37c9

View File

@ -843,7 +843,12 @@ LoginManager.prototype = {
if (!this._remember)
return;
var hostname = this._getPasswordOrigin(doc.documentURI);
var hostname = this._getPasswordOrigin(doc.documentURI);
if (!hostname) {
this.log("(form submission ignored -- invalid hostname)");
return;
}
var formSubmitURL = this._getActionOrigin(form)
if (!this.getLoginSavingEnabled(hostname)) {
this.log("(form submission ignored -- saving is " +