Bug 1278067 - remove STEEL module from Thunderbird. r=mkmelin
authoraceman <acelists@atlas.sk>
Thu, 03 Aug 2017 13:39:00 +0200
changeset 29478 969a4b75e9e5a7a8e6956a791cb609e1539817fd
parent 29477 2e9acc97f408a4e13a5ac8d2ea4c0eac78796648
child 29479 a5260cd23f61dbda6185636334fb2e14c31f30f8
push id378
push userclokep@gmail.com
push dateMon, 13 Nov 2017 18:45:35 +0000
reviewersmkmelin
bugs1278067
Bug 1278067 - remove STEEL module from Thunderbird. r=mkmelin
mail/installer/package-manifest.in
mail/installer/removed-files.in
mail/moz.build
mail/steel/moz.build
mail/steel/steelApplication.js
mail/steel/steelApplication.manifest
mail/steel/steelIApplication.idl
mail/steel/test/head_steel.js
mail/steel/test/test_linux_platformChecks.js
mail/steel/test/test_linux_platformIsMac.js
mail/steel/test/test_mac_platformChecks.js
mail/steel/test/test_mac_platformIsMac.js
mail/steel/test/test_other_platformIsMac.js
mail/steel/test/test_windows_platformChecks.js
mail/steel/test/xpcshell.ini
--- a/mail/installer/package-manifest.in
+++ b/mail/installer/package-manifest.in
@@ -173,17 +173,16 @@
 @RESPATH@/components/folderLookupService.js
 ; interfaces.manifest doesn't get packaged because it is dynamically
 ; re-created at packaging time when linking the xpts that will actually
 ; go into the package, so the test related interfaces aren't included.
 @RESPATH@/components/msgjsaccount.xpt
 @RESPATH@/components/mime.xpt
 @RESPATH@/components/mimeJSComponents.js
 @RESPATH@/components/msgMime.manifest
-@RESPATH@/components/steel.xpt
 @RESPATH@/components/msgAsyncPrompter.js
 @RESPATH@/components/msgbase.xpt
 @RESPATH@/components/msgBase.manifest
 @RESPATH@/components/msgcompose.xpt
 @RESPATH@/components/msgdb.xpt
 @RESPATH@/components/msgimap.xpt
 @RESPATH@/components/msglocal.xpt
 @RESPATH@/components/msgnews.xpt
@@ -247,18 +246,16 @@
 @RESPATH@/components/mailComponents.manifest
 @RESPATH@/components/mailContentHandler.js
 @RESPATH@/components/mailGlue.js
 @RESPATH@/components/nsMailDefaultHandler.js
 @RESPATH@/components/nsSetDefaultMail.js
 @RESPATH@/components/shell.manifest
 @RESPATH@/components/offlineStartup.js
 @RESPATH@/components/offlineStartup.manifest
-@RESPATH@/components/steelApplication.js
-@RESPATH@/components/steelApplication.manifest
 
 
 @RESPATH@/components/mdn-service.js
 @RESPATH@/components/mdn-service.manifest
 @RESPATH@/components/smime-service.js
 @RESPATH@/components/smime-service.manifest
 @RESPATH@/components/msgsmime.xpt
 
--- a/mail/installer/removed-files.in
+++ b/mail/installer/removed-files.in
@@ -494,17 +494,16 @@ uninstall/uninstall.exe
   @DIR_MACOS@components/nsUpdateServiceStub.js
   @DIR_MACOS@components/nsUpdateTimerManager.js
   @DIR_MACOS@components/nsUrlClassifierLib.js
   @DIR_MACOS@components/nsUrlClassifierListManager.js
   @DIR_MACOS@components/nsWebHandlerApp.js
   @DIR_MACOS@components/offlineStartup.js
   @DIR_MACOS@components/PlacesCategoriesStarter.js
   @DIR_MACOS@components/smime-service.js
-  @DIR_MACOS@components/steelApplication.js
   @DIR_MACOS@components/storage-Legacy.js
   @DIR_MACOS@components/storage-mozStorage.js
   @DIR_MACOS@components/txEXSLTRegExFunctions.js
   @DIR_MACOS@defaults/autoconfig/platform.js
   @DIR_MACOS@defaults/autoconfig/prefcalls.js
   @DIR_MACOS@defaults/pref/all-l10n.js
   @DIR_MACOS@defaults/pref/all-thunderbird.js
   @DIR_MACOS@defaults/pref/composer.js
@@ -1141,17 +1140,16 @@ uninstall/uninstall.exe
   @DIR_MACOS@components/profile.xpt
   @DIR_MACOS@components/proxyObjInst.xpt
   @DIR_MACOS@components/rdf.xpt
   @DIR_MACOS@components/satchel.xpt
   @DIR_MACOS@components/saxparser.xpt
   @DIR_MACOS@components/shellservice.xpt
   @DIR_MACOS@components/shistory.xpt
   @DIR_MACOS@components/spellchecker.xpt
-  @DIR_MACOS@components/steel.xpt
   @DIR_MACOS@components/storage.xpt
   @DIR_MACOS@components/toolkitprofile.xpt
   @DIR_MACOS@components/txmgr.xpt
   @DIR_MACOS@components/txtsvc.xpt
   @DIR_MACOS@components/uconv.xpt
   @DIR_MACOS@components/unicharutil.xpt
   @DIR_MACOS@components/update.xpt
   @DIR_MACOS@components/uriloader.xpt
@@ -1173,17 +1171,16 @@ uninstall/uninstall.exe
   @DIR_MACOS@components/xpcom_xpti.xpt
   @DIR_MACOS@components/xpconnect.xpt
   @DIR_MACOS@components/xpinstall.xpt
   @DIR_MACOS@components/xulapp.xpt
   @DIR_MACOS@components/xuldoc.xpt
   @DIR_MACOS@components/xultmpl.xpt
   @DIR_MACOS@components/zipwriter.xpt
   #ifdef XP_MACOSX
-    @DIR_MACOS@components/steel.xpt
     @DIR_MACOS@components/necko_wifi.xpt
     @DIR_MACOS@components/widget_cocoa.xpt
   #else
     components/accessibility.xpt
     components/filepicker.xpt
     components/toolkitremote.xpt
     components/websrvcs.xpt
   #endif
--- a/mail/moz.build
+++ b/mail/moz.build
@@ -5,17 +5,16 @@
 
 CONFIGURE_SUBST_FILES += ['installer/Makefile']
 
 # app is always last as it packages up the built files on mac.
 DIRS += [
     'base',
     'locales',
     'extensions',
-    'steel',
     'themes',
     'app',
 ]
 
 if CONFIG['MAKENSISU']:
     DIRS += ['installer/windows']
 
 if CONFIG['MOZ_BUNDLED_FONTS']:
deleted file mode 100644
--- a/mail/steel/moz.build
+++ /dev/null
@@ -1,21 +0,0 @@
-# vim: set filetype=python:
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-
-XPIDL_SOURCES += [
-    'steelIApplication.idl',
-]
-
-XPIDL_MODULE = 'steel'
-
-XPCSHELL_TESTS_MANIFESTS += ['test/xpcshell.ini']
-
-EXTRA_COMPONENTS += [
-    'steelApplication.manifest',
-]
-
-EXTRA_PP_COMPONENTS += [
-    'steelApplication.js',
-]
-
deleted file mode 100644
--- a/mail/steel/steelApplication.js
+++ /dev/null
@@ -1,74 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-var Cc = Components.classes;
-var Ci = Components.interfaces;
-
-Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
-XPCOMUtils.defineLazyModuleGetter(this, "Deprecated",
-                                  "resource://gre/modules/Deprecated.jsm");
-var APPLICATION_CID = Components.ID("f265021a-7f1d-4b4b-bdc6-9aedca4d8f13");
-var APPLICATION_CONTRACTID = "@mozilla.org/steel/application;1";
-
-//=================================================
-// Factory - Treat Application as a singleton
-// XXX This is required, because we're registered for the 'JavaScript global
-// privileged property' category, whose handler always calls createInstance.
-// See bug 386535.
-var gSingleton = null;
-var ApplicationFactory = {
-  createInstance: function af_ci(aOuter, aIID) {
-    if (aOuter != null)
-      throw Components.results.NS_ERROR_NO_AGGREGATION;
-
-    if (gSingleton == null) {
-      gSingleton = new Application();
-    }
-
-    return gSingleton.QueryInterface(aIID);
-  }
-};
-
-#include ../../mozilla/toolkit/components/exthelper/extApplication.js
-
-function Application() {
-  Deprecated.warning("STEEL is deprecated, you should use AppConstants.jsm or Services.jsm.",
-                     "http://mxr.mozilla.org/comm-central/source/mozilla/toolkit/modules/AppConstants.jsm");
-
-  this.initToolkitHelpers();
-}
-
-Application.prototype = {
-  // set the proto, defined in extApplication.js
-  __proto__: extApplication.prototype,
-
-  classID: APPLICATION_CID,
-
-  // redefine the default factory for XPCOMUtils
-  _xpcom_factory: ApplicationFactory,
-
-  // for nsISupports
-  QueryInterface : XPCOMUtils.generateQI([Ci.steelIApplication,
-                                          Ci.extIApplication,
-					  Ci.nsIObserver,
-                                          Ci.nsISupportsWeakReference]),
-
-  classInfo: XPCOMUtils.generateCI({classID: APPLICATION_CID,
-				    contractID: APPLICATION_CONTRACTID,
-				    interfaces: [Ci.steelIApplication,
-						 Ci.extIApplication,
-						 Ci.nsIObserver],
-				    flags: Ci.nsIClassInfo.SINGLETON}),
-
-  // for steelIApplication
-  platformIsMac: "nsILocalFileMac" in Ci,
-  platformIsLinux: (("@mozilla.org/gnome-gconf-service;1" in Cc) ||
-                   ("@mozilla.org/gio-service;1" in Cc) ||
-                    (Cc["@mozilla.org/system-info;1"].getService(Ci.nsIPropertyBag2)
-                       .getProperty("name") == "Linux")),
-  platformIsWindows: "@mozilla.org/windows-registry-key;1" in Cc
-};
-
-var NSGetFactory = XPCOMUtils.generateNSGetFactory([Application]);
-
deleted file mode 100644
--- a/mail/steel/steelApplication.manifest
+++ /dev/null
@@ -1,3 +0,0 @@
-component {f265021a-7f1d-4b4b-bdc6-9aedca4d8f13} steelApplication.js
-contract @mozilla.org/steel/application;1 {f265021a-7f1d-4b4b-bdc6-9aedca4d8f13}
-category JavaScript-global-privileged-property Application @mozilla.org/steel/application;1
deleted file mode 100644
--- a/mail/steel/steelIApplication.idl
+++ /dev/null
@@ -1,29 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-#include "extIApplication.idl"
-
-/**
- * The core STEEL object, available in the global scope
- */
-[scriptable, uuid(e33b45c3-9b44-45f2-8aa3-c89805695f2b)]
-interface steelIApplication : extIApplication {
-  /**
-   * Returns true if the application is running on a Mac OS X. This is intended
-   * for situations where Mac does things differently, e.g. The application
-   * doesn't support print preview on Mac because Mac provides a preview option
-   * in the print dialog.
-   */
-  readonly attribute boolean platformIsMac;
-
-  /**
-   * Returns true if the application is running on GNU/Linux or on UNIX.
-   */
-  readonly attribute boolean platformIsLinux;
-
-  /**
-   * Returns true if the application is running on Windows.
-   */
-  readonly attribute boolean platformIsWindows;
-};
deleted file mode 100644
--- a/mail/steel/test/head_steel.js
+++ /dev/null
@@ -1,6 +0,0 @@
-// These tests need an nsIXULAppInfo
-Components.utils.import("resource://testing-common/AppInfo.jsm");
-updateAppInfo();
-
-var Ci = Components.interfaces;
-var Cc = Components.classes;
deleted file mode 100644
--- a/mail/steel/test/test_linux_platformChecks.js
+++ /dev/null
@@ -1,14 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-/**
- * Linux specific version of testing the platformIsLinux part of
- * steelIApplication.
- */
-function run_test() {
-  let steel = Cc["@mozilla.org/steel/application;1"].getService(Ci.steelIApplication);
-  do_check_true(steel.platformIsLinux);
-  do_check_false(steel.platformIsMac);
-  do_check_false(steel.platformIsWindows);
-}
deleted file mode 100644
--- a/mail/steel/test/test_linux_platformIsMac.js
+++ /dev/null
@@ -1,13 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-/**
- * Linux specific version of testing the platformIsMac part of
- * steelIApplication.
- */
-
-function run_test() {
-  do_check_false(Cc["@mozilla.org/steel/application;1"]
-                  .getService(Ci.steelIApplication).platformIsMac);
-}
deleted file mode 100644
--- a/mail/steel/test/test_mac_platformChecks.js
+++ /dev/null
@@ -1,14 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-/**
- * Mac specific version of testing the platformIsLinux part of
- * steelIApplication.
- */
-function run_test() {
-  let steel = Cc["@mozilla.org/steel/application;1"].getService(Ci.steelIApplication);
-  do_check_false(steel.platformIsLinux);
-  do_check_true(steel.platformIsMac);
-  do_check_false(steel.platformIsWindows);
-}
deleted file mode 100644
--- a/mail/steel/test/test_mac_platformIsMac.js
+++ /dev/null
@@ -1,13 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-/**
- * Mac specific version of testing the platformIsMac part of
- * steelIApplication.
- */
-
-function run_test() {
-  do_check_true(Cc["@mozilla.org/steel/application;1"]
-                  .getService(Ci.steelIApplication).platformIsMac);
-}
deleted file mode 100644
--- a/mail/steel/test/test_other_platformIsMac.js
+++ /dev/null
@@ -1,13 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-/**
- * Non-mac and non-Linux specific version of testing the platformIsMac
- * part of steelIApplication.
- */
-
-function run_test() {
-  do_check_false(Cc["@mozilla.org/steel/application;1"]
-                   .getService(Ci.steelIApplication).platformIsMac);
-}
deleted file mode 100644
--- a/mail/steel/test/test_windows_platformChecks.js
+++ /dev/null
@@ -1,14 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-/**
- * Non-Mac and non-Linux specific version of testing the platformIsLinux
- * part of steelIApplication.
- */
-function run_test() {
-  let steel = Cc["@mozilla.org/steel/application;1"].getService(Ci.steelIApplication);
-  do_check_false(steel.platformIsLinux);
-  do_check_false(steel.platformIsMac);
-  do_check_true(steel.platformIsWindows);
-}
deleted file mode 100644
--- a/mail/steel/test/xpcshell.ini
+++ /dev/null
@@ -1,13 +0,0 @@
-[DEFAULT]
-head = head_steel.js
-tail =
-
-[test_mac_platformChecks.js]
-run-if = os == 'mac'
-
-[test_linux_platformChecks.js]
-run-if = os == 'linux'
-
-[test_windows_platformChecks.js]
-run-if = os == 'win'
-