mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 784028: password manager doesn't prompt to save passwords in popup windows. r=MattN
--HG-- extra : rebase_source : 77036469f2173361d5cbc492a937e272cf8e0c97
This commit is contained in:
parent
feef09a102
commit
3413f2e05c
@ -820,7 +820,7 @@ LoginManagerPrompter.prototype = {
|
||||
var notifyWin = this._getNotifyWindow();
|
||||
var chromeWin = this._getChromeWindow(notifyWin).wrappedJSObject;
|
||||
var browser = chromeWin.gBrowser.
|
||||
getBrowserForDocument(this._window.top.document);
|
||||
getBrowserForDocument(notifyWin.top.document);
|
||||
|
||||
aNotifyObj.show(browser, "password-save", notificationText,
|
||||
"password-notification-icon", mainAction,
|
||||
@ -1018,7 +1018,7 @@ LoginManagerPrompter.prototype = {
|
||||
var notifyWin = this._getNotifyWindow();
|
||||
var chromeWin = this._getChromeWindow(notifyWin).wrappedJSObject;
|
||||
var browser = chromeWin.gBrowser.
|
||||
getBrowserForDocument(this._window.top.document);
|
||||
getBrowserForDocument(notifyWin.top.document);
|
||||
|
||||
aNotifyObj.show(browser, "password-change", notificationText,
|
||||
"password-notification-icon", mainAction,
|
||||
@ -1190,7 +1190,7 @@ LoginManagerPrompter.prototype = {
|
||||
// disabled, and if so use the opener window. But if the window
|
||||
// has been used to visit other pages (ie, has a history),
|
||||
// assume it'll stick around and *don't* use the opener.
|
||||
if (chromeDoc.hasAttribute("chromehidden") &&
|
||||
if (chromeDoc.getAttribute("chromehidden") &&
|
||||
webnav.sessionHistory.count == 1) {
|
||||
this.log("Using opener window for notification bar.");
|
||||
notifyWin = notifyWin.opener;
|
||||
|
Loading…
Reference in New Issue
Block a user