зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
6f14b9f100
Коммит
96932ff9b4
|
@ -820,7 +820,7 @@ LoginManagerPrompter.prototype = {
|
||||||
var notifyWin = this._getNotifyWindow();
|
var notifyWin = this._getNotifyWindow();
|
||||||
var chromeWin = this._getChromeWindow(notifyWin).wrappedJSObject;
|
var chromeWin = this._getChromeWindow(notifyWin).wrappedJSObject;
|
||||||
var browser = chromeWin.gBrowser.
|
var browser = chromeWin.gBrowser.
|
||||||
getBrowserForDocument(this._window.top.document);
|
getBrowserForDocument(notifyWin.top.document);
|
||||||
|
|
||||||
aNotifyObj.show(browser, "password-save", notificationText,
|
aNotifyObj.show(browser, "password-save", notificationText,
|
||||||
"password-notification-icon", mainAction,
|
"password-notification-icon", mainAction,
|
||||||
|
@ -1018,7 +1018,7 @@ LoginManagerPrompter.prototype = {
|
||||||
var notifyWin = this._getNotifyWindow();
|
var notifyWin = this._getNotifyWindow();
|
||||||
var chromeWin = this._getChromeWindow(notifyWin).wrappedJSObject;
|
var chromeWin = this._getChromeWindow(notifyWin).wrappedJSObject;
|
||||||
var browser = chromeWin.gBrowser.
|
var browser = chromeWin.gBrowser.
|
||||||
getBrowserForDocument(this._window.top.document);
|
getBrowserForDocument(notifyWin.top.document);
|
||||||
|
|
||||||
aNotifyObj.show(browser, "password-change", notificationText,
|
aNotifyObj.show(browser, "password-change", notificationText,
|
||||||
"password-notification-icon", mainAction,
|
"password-notification-icon", mainAction,
|
||||||
|
@ -1190,7 +1190,7 @@ LoginManagerPrompter.prototype = {
|
||||||
// disabled, and if so use the opener window. But if the window
|
// disabled, and if so use the opener window. But if the window
|
||||||
// has been used to visit other pages (ie, has a history),
|
// has been used to visit other pages (ie, has a history),
|
||||||
// assume it'll stick around and *don't* use the opener.
|
// assume it'll stick around and *don't* use the opener.
|
||||||
if (chromeDoc.hasAttribute("chromehidden") &&
|
if (chromeDoc.getAttribute("chromehidden") &&
|
||||||
webnav.sessionHistory.count == 1) {
|
webnav.sessionHistory.count == 1) {
|
||||||
this.log("Using opener window for notification bar.");
|
this.log("Using opener window for notification bar.");
|
||||||
notifyWin = notifyWin.opener;
|
notifyWin = notifyWin.opener;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче