mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 718708 - Don't prompt to remember password when there is an invalid hostname. r=zpao
This commit is contained in:
parent
c527c0ca61
commit
87670e37c9
@ -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 " +
|
||||
|
Loading…
Reference in New Issue
Block a user