Port bug 1497280 - Stop referencing DateTimePickerParent.jsm from mailGlue.js; rs=me
authorGeoff Lankow <geoff@darktrojan.net>
Fri, 05 Jul 2019 17:13:24 +1200
changeset 36035 2d6811274bb185fd102ddb53118e99cdd4135d72
parent 36034 8fbca3217e6e712c53529bc952649ce9c7fbb15b
child 36036 ee2fd60f9f9fefe3fd6aee789498f4463b8045f5
push id392
push userclokep@gmail.com
push dateMon, 02 Sep 2019 20:17:19 +0000
reviewersme
bugs1497280
Port bug 1497280 - Stop referencing DateTimePickerParent.jsm from mailGlue.js; rs=me
mail/components/mailGlue.js
--- a/mail/components/mailGlue.js
+++ b/mail/components/mailGlue.js
@@ -20,19 +20,16 @@ var {RemoteSecuritySettings} = ChromeUti
 XPCOMUtils.defineLazyGetter(this, "gBrandBundle", function() {
   return Services.strings.createBundle("chrome://branding/locale/brand.properties");
 });
 
 XPCOMUtils.defineLazyGetter(this, "gMailBundle", function() {
   return Services.strings.createBundle("chrome://messenger/locale/messenger.properties");
 });
 
-ChromeUtils.defineModuleGetter(this, "DateTimePickerParent",
-                               "resource://gre/modules/DateTimePickerParent.jsm");
-
 ChromeUtils.defineModuleGetter(this, "ActorManagerParent",
                                "resource://gre/modules/ActorManagerParent.jsm");
 
 let ACTORS = {
 };
 
 /**
  * Glue code that should be executed before any windows are opened. Any
@@ -181,18 +178,16 @@ MailGlue.prototype = {
 
     const {ExtensionsUI} = ChromeUtils.import("resource:///modules/ExtensionsUI.jsm");
     ExtensionsUI.checkForSideloadedExtensions();
 
     // Certificates revocation list, etc.
     Services.tm.idleDispatchToMainThread(() => {
       RemoteSecuritySettings.init();
     });
-
-    DateTimePickerParent.init();
   },
 
   _handleLink(aSubject, aData) {
     let linkHandled = aSubject.QueryInterface(Ci.nsISupportsPRBool);
     if (!linkHandled.data) {
       let win = Services.wm.getMostRecentWindow("mail:3pane");
       aData = JSON.parse(aData);
       let tabParams = { contentPage: aData.href, clickHandler: null };