1 /* -*- indent-tabs-mode: nil; js-indent-level: 2 -*-
2 * This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 * This task ought to have an ephemeral profile and should not apply updates.
8 * These settings are controlled externally, by
9 * `BackgroundTasks::IsUpdatingTaskName` and
10 * `BackgroundTasks::IsEphemeralProfileTaskName`.
13 // This happens synchronously during installation. It shouldn't take that long
14 // and if something goes wrong we really don't want to sit around waiting for
16 export const backgroundTaskTimeoutSec = 30;
18 export async function runBackgroundTask(commandLine) {
19 console.log("Running BackgroundTask_install.");
21 console.log("Cleaning up update files.");
23 Cc["@mozilla.org/updates/update-manager;1"]
24 .getService(Ci.nsIUpdateManager)