Some of the Firefox profile backup code is executed within a web worker, so errors thrown in the worker do not automatically maintain their full context when caught in the main process. This change creates a BackupError for throwing errors with causes specific to Firefox profile backup. The new error type is configured to work with the PromiseWorker machinery in the Firefox codebase in order to serialize and deserialize error details across the worker boundary. Differential Revision: https://phabricator.services.mozilla.com/D215920
44 lines
1.5 KiB
Python
44 lines
1.5 KiB
Python
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
|
# 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/.
|
|
|
|
with Files("**"):
|
|
BUG_COMPONENT = ("Firefox", "Profiles")
|
|
|
|
JAR_MANIFESTS += ["jar.mn"]
|
|
|
|
SPHINX_TREES["docs"] = "docs"
|
|
|
|
XPCSHELL_TESTS_MANIFESTS += ["tests/xpcshell/xpcshell.toml"]
|
|
MARIONETTE_MANIFESTS += ["tests/marionette/manifest.toml"]
|
|
BROWSER_CHROME_MANIFESTS += ["tests/browser/browser.toml"]
|
|
MOCHITEST_CHROME_MANIFESTS += ["tests/chrome/chrome.toml"]
|
|
|
|
FINAL_TARGET_FILES.actors += [
|
|
"actors/BackupUIChild.sys.mjs",
|
|
"actors/BackupUIParent.sys.mjs",
|
|
]
|
|
|
|
EXTRA_JS_MODULES.backup += [
|
|
"Archive.worker.mjs",
|
|
"ArchiveEncryption.sys.mjs",
|
|
"ArchiveEncryptionState.sys.mjs",
|
|
"ArchiveUtils.sys.mjs",
|
|
"BackupConstants.mjs",
|
|
"BackupError.mjs",
|
|
"BackupResources.sys.mjs",
|
|
"BackupService.sys.mjs",
|
|
"MeasurementUtils.sys.mjs",
|
|
"resources/AddonsBackupResource.sys.mjs",
|
|
"resources/BackupResource.sys.mjs",
|
|
"resources/CookiesBackupResource.sys.mjs",
|
|
"resources/CredentialsAndSecurityBackupResource.sys.mjs",
|
|
"resources/FormHistoryBackupResource.sys.mjs",
|
|
"resources/MiscDataBackupResource.sys.mjs",
|
|
"resources/PlacesBackupResource.sys.mjs",
|
|
"resources/PreferencesBackupResource.sys.mjs",
|
|
"resources/SessionStoreBackupResource.sys.mjs",
|
|
]
|