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:
Gavin Sharp 2012-09-27 19:32:38 -07:00
Родитель 6f14b9f100
Коммит 96932ff9b4
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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;