Bug 1390273 - Initialize the Sync UI in popup windows. r?Gijs draft
authorEdouard Oger <eoger@fastmail.com>
Tue, 15 Aug 2017 16:06:24 -0400
changeset 646902 932b34241903850c529e4081a405830c3c800dc6
parent 646672 5ab5511100233277a760550ac509283278a0e3d9
child 726352 65fcd75315e6c61e0c6d8d6141c6e6e4dd988a9f
push id74238
push userbmo:eoger@fastmail.com
push dateTue, 15 Aug 2017 20:07:39 +0000
reviewersGijs
bugs1390273
milestone57.0a1
Bug 1390273 - Initialize the Sync UI in popup windows. r?Gijs MozReview-Commit-ID: IDhhXgIrwrB
browser/base/content/browser-sync.js
--- a/browser/base/content/browser-sync.js
+++ b/browser/base/content/browser-sync.js
@@ -85,18 +85,17 @@ var gSync = {
       // we open the window. We can avoid a repaint.
       if (state.status != UIState.STATUS_NOT_CONFIGURED) {
         this.updateAllUI(state);
       }
     }
   },
 
   init() {
-    // Bail out if we're already initialized or for pop-up windows.
-    if (this._initialized || !window.toolbar.visible) {
+    if (this._initialized) {
       return;
     }
 
     for (let topic of this._obs) {
       Services.obs.addObserver(this, topic, true);
     }
 
     this._generateNodeGetters();