Bug 1565707 - fixed folder picker in advanced POP3 server settings. r=aceman a=jorgk
authorKhushil Mistry <khushil324@gmail.com>
Sat, 13 Jul 2019 11:56:00 +0200
changeset 36075 4abfb02edf5a6d79ee3df563430f859378ec2c27
parent 36074 597ef56645a681038a4945c6d8c9057ed779d5b3
child 36076 099ce2ae99a078da668f572217509fb2ab7f0e46
push id392
push userclokep@gmail.com
push dateMon, 02 Sep 2019 20:17:19 +0000
reviewersaceman, jorgk
bugs1565707
Bug 1565707 - fixed folder picker in advanced POP3 server settings. r=aceman a=jorgk
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;