Bug 1579575 - reload Account Central pane if the selected folder changed. r=darktrojan

This commit is contained in:
aceman 2019-09-08 11:29:00 +02:00
Родитель 417f2f2bc2
Коммит 6b2730a6de
1 изменённых файлов: 6 добавлений и 4 удалений

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

@ -1810,14 +1810,16 @@ FolderDisplayWidget.prototype = {
_showAccountCentral() {
var accountBox = document.getElementById("accountCentralBox");
document.getElementById("displayDeck").selectedPanel = accountBox;
var prefName = "mailnews.account_central_page.url";
var acctCentralPage = Services.prefs.getComplexValue(
prefName,
"mailnews.account_central_page.url",
Ci.nsIPrefLocalizedString
).data;
// Prevent a second load if necessary.
if (window.frames.accountCentralPane.location.href != acctCentralPage) {
window.frames.accountCentralPane.location.href = acctCentralPage;
let loadURL =
acctCentralPage +
(this.displayedFolder ? "?folderURI=" + this.displayedFolder.URI : "");
if (window.frames.accountCentralPane.location.href != loadURL) {
window.frames.accountCentralPane.location.href = loadURL;
}
},