Bug 1565707 - fixed folder picker in advanced POP3 server settings. r=aceman
authorKhushil Mistry <khushil324@gmail.com>
Sat, 13 Jul 2019 11:56:00 +0200
changeset 27114 20983e2e6047660cdd4ab4f8f021a3ff8a3e6f66
parent 27113 48e3344da00353181bd8ab707eade5d01b51af65
child 27115 390fba7934a0d9ddd9eb45074c274060ddef835b
push id16169
push usermozilla@jorgk.com
push dateSat, 13 Jul 2019 22:19:27 +0000
treeherdercomm-central@390fba7934a0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersaceman
bugs1565707
Bug 1565707 - fixed folder picker in advanced POP3 server settings. r=aceman
mailnews/base/content/folder-menupopup.js
--- a/mailnews/base/content/folder-menupopup.js
+++ b/mailnews/base/content/folder-menupopup.js
@@ -93,17 +93,17 @@
         this._teardown();
       }, { once: true });
 
       // If non-null, the subFolders of this nsIMsgFolder will be used to
       // populate this menu.  If this is null, the menu will be populated
       // using the root-folders for all accounts.
       this._parentFolder = null;
 
-      this._stringBundle = null;
+      this._stringBundle = new StringBundle("chrome://messenger/locale/folderWidgets.properties");
 
       // Various filtering modes can be used with this menu-binding. To use
       // one of them, append the mode="foo" attribute to the element. When
       // building the menu, we will then use this._filters[mode] as a filter
       // function to eliminate folders that should not be shown.
       // note: extensions should feel free to plug in here.
       this._filters = {
         // Returns true if messages can be filed in the folder.
@@ -329,18 +329,16 @@
 
     connectedCallback() {
       if (this.delayConnectedCallback()) {
         return;
       }
       // Call the connectedCallback of the "base" class this mixin class is extending.
       super.connectedCallback();
 
-      this._stringBundle = new StringBundle("chrome://messenger/locale/folderWidgets.properties");
-
       // Get the displayformat if set.
       if (this.parentNode && this.parentNode.localName == "menulist") {
         this._displayformat = this.parentNode.getAttribute("displayformat");
       }
     }
 
     set parentFolder(val) {
       return this._parentFolder = val;