Bug 1668502 - Fix opening per-account settings from context menu or account central may show the wrong account if account settings tab was already open. r=mkmelin
This commit is contained in:
Родитель
7939d2eb16
Коммит
0de5b7682b
|
@ -294,11 +294,7 @@ function MsgAccountManager(selectPage, aServer) {
|
|||
// and the selected page, reload the tab and switch to the tab.
|
||||
for (let tabInfo of tabmail.tabInfo) {
|
||||
let tab = tabmail.getTabForBrowser(tabInfo.browser);
|
||||
if (
|
||||
tab &&
|
||||
tab.urlbar &&
|
||||
tab.urlbar.textContent == "about:accountsettings"
|
||||
) {
|
||||
if (tab && tab.urlbar && tab.urlbar.value == "about:accountsettings") {
|
||||
tab.browser.contentDocument.documentElement.server = aServer;
|
||||
tab.browser.contentDocument.documentElement.selectPage = selectPage;
|
||||
tab.browser.contentWindow.onLoad();
|
||||
|
@ -320,11 +316,7 @@ function MsgAccountManager(selectPage, aServer) {
|
|||
|
||||
for (let tabInfo of tabmail.tabInfo) {
|
||||
let tab = tabmail.getTabForBrowser(tabInfo.browser);
|
||||
if (
|
||||
tab &&
|
||||
tab.urlbar &&
|
||||
tab.urlbar.textContent == "about:accountsettings"
|
||||
) {
|
||||
if (tab && tab.urlbar && tab.urlbar.value == "about:accountsettings") {
|
||||
tab.tabNode.setAttribute("type", "accountManager");
|
||||
break;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче