Bug 1608610 - Remove XPCShell function that loads Lightning XPI. r=Fallen

--HG--
extra : rebase_source : 929dcca52d2029148f75a10c1863fc61591e3766
This commit is contained in:
Paul Morris 2020-01-16 11:09:04 -05:00
Родитель 37bbc99c27
Коммит 1e0d6e2593
1 изменённых файлов: 0 добавлений и 30 удалений

Просмотреть файл

@ -12,36 +12,6 @@ ChromeUtils.defineModuleGetter(this, "NetUtil", "resource://gre/modules/NetUtil.
updateAppInfo(); updateAppInfo();
(function() {
let manager = Cc["@mozilla.org/component-manager-extra;1"].getService(
Ci.nsIComponentManagerExtra
);
let bindir = Services.dirsvc.get("CurProcD", Ci.nsIFile);
if (!AppConstants.NIGHTLY_BUILD) {
bindir.append("distribution");
}
bindir.append("extensions");
let xpiFile = bindir.clone();
xpiFile.append("{e2fda1a4-762b-4020-b5ad-a41df1933103}.xpi");
if (xpiFile.exists()) {
dump("Loading " + xpiFile.path + "\n");
manager.addLegacyExtensionManifestLocation(xpiFile);
} else {
// The XPI file is created by the automation, and not available on a local build.
// Use the unpacked version instead.
bindir.append("{e2fda1a4-762b-4020-b5ad-a41df1933103}");
dump("Loading " + bindir.path + "\n");
manager.addLegacyExtensionManifestLocation(bindir);
}
// Make sure to load the backend loader as early as possible, as xpcshell doesn't have the
// normal app flow with profile-after-change et al.
Cc["@mozilla.org/calendar/backend-loader;1"].getService();
})();
var { cal } = ChromeUtils.import("resource:///modules/calendar/calUtils.jsm"); var { cal } = ChromeUtils.import("resource:///modules/calendar/calUtils.jsm");
function createDate(aYear, aMonth, aDay, aHasTime, aHour, aMinute, aSecond, aTimezone) { function createDate(aYear, aMonth, aDay, aHasTime, aHour, aMinute, aSecond, aTimezone) {