зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1534699 - ensure new windows default to 'setup sync' state. r=eoger
Differential Revision: https://phabricator.services.mozilla.com/D24665 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
e838288317
Коммит
6375e0ba3a
|
@ -135,9 +135,14 @@ var gSync = {
|
|||
let label = this.syncStrings.GetStringFromName("syncnow.label");
|
||||
syncIcon.setAttribute("label", label);
|
||||
syncNow.setAttribute("label", label);
|
||||
// We start with every menuitem hidden, so that we don't need to init
|
||||
// the sync UI on windows like pageInfo.xul (see bug 1384856).
|
||||
// We start with every menuitem hidden (except for the "setup sync" state),
|
||||
// so that we don't need to init the sync UI on windows like pageInfo.xul
|
||||
// (see bug 1384856).
|
||||
// maybeUpdateUIState() also optimizes for this - if we should be in the
|
||||
// "setup sync" state, that function assumes we are already in it and
|
||||
// doesn't re-initialize the UI elements.
|
||||
document.getElementById("sync-setup").hidden = false;
|
||||
document.getElementById("PanelUI-remotetabs-setupsync").hidden = false;
|
||||
|
||||
for (let topic of this._obs) {
|
||||
Services.obs.addObserver(this, topic, true);
|
||||
|
|
Загрузка…
Ссылка в новой задаче