Files
sousa-gecko/browser/components/backup/tests/xpcshell/xpcshell.toml
T
Benjamin Beurdouche fe1a64d20a Bug 1996558 - Disable profile backup when SQLite at-rest encryption is enabled. r=gcp
Profile backup stages databases as raw obfsvfs ciphertext whose per-database
keys live only in the originating profile's lockstore, so an encrypted backup
cannot be restored into another profile; and restoring a plaintext backup into
an encrypting instance would copy databases that obfsvfs then rejects
fail-closed, leaving a broken profile. Until portable encrypted backup/restore
exists, gate both archiveEnabledStatus and restoreEnabledStatus on
security.storage.encryption.sqlite.enabled so backup and restore are
unavailable while encryption is on. This is a no-op at the production default
(encryption off).

Differential Revision: https://phabricator.services.mozilla.com/D305032
2026-06-16 13:00:41 +00:00

137 lines
3.2 KiB
TOML

[DEFAULT]
run-if = [
"os != 'android'",
]
head = "head.js"
firefox-appdir = "browser"
prefs = [
"browser.backup.log=true",
"browser.backup.archive.enabled=true",
"browser.backup.restore.enabled=true",
# Profile backup is disabled when SQLite at-rest encryption is on
# (Bug 1996558); run these tests with it off (the production default).
"security.storage.encryption.sqlite.enabled=false",
]
["test_AddonsBackupResource.js"]
["test_ArchiveEncryption.js"]
["test_ArchiveEncryptionState.js"]
["test_ArchiveEncryption_nonce.js"]
["test_ArchiveUtils_countReplacementCharacters.js"]
["test_BackupResource.js"]
support-files = ["data/test_xulstore.json"]
["test_BackupService.js"]
support-files = [
"data/test_archive.template.html",
"data/test_keep_file_open.worker.js"
]
["test_BackupService_archive.js"]
requesttimeoutfactor = 2 # Slow on macOS debug
support-files = [
"data/corrupt.zip",
"data/break_over_unicode.html",
"data/missing_binary_block.html",
"data/missing_json_block.html",
]
["test_BackupService_crossProfileTypeRecovery.js"]
prefs = [
"browser.backup.profiles.force-enable=true",
]
["test_BackupService_enable_disable_encryption.js"]
["test_BackupService_enabled.js"]
["test_BackupService_enabledListPref.js"]
head = "../../../../../toolkit/profile/test/xpcshell/head.js ../../../profiles/tests/unit/head.js head.js"
prefs = [
"browser.profiles.created=false",
"browser.profiles.enabled=true",
]
["test_BackupService_finalizeSingleFileArchive.js"]
["test_BackupService_internalPostRecovery.js"]
["test_BackupService_onedrive.js"]
run-if = [
"os == 'win'",
]
run-sequentially = ["true"] # Mock Windows registry interferes with normal operations
["test_BackupService_recoverFromSnapshotFolder.js"]
["test_BackupService_recoverFromSnapshotFolderIntoSelectableProfile.js"]
["test_BackupService_regeneration.js"]
["test_BackupService_renderTemplate.js"]
["test_BackupService_resolveArchiveDestFolderPath.js"]
["test_BackupService_resolveDownloadLink.js"]
["test_BackupService_restoreStepTelemetry.js"]
["test_BackupService_retryHeuristic.js"]
["test_BackupService_scheduler.js"]
["test_BackupService_schema_versions.js"]
["test_BackupService_setParentDirPath.js"]
["test_BackupService_takeMeasurements.js"]
["test_BackupService_telemetry.js"]
["test_BackupService_wrongPassword.js"]
["test_BookmarksBackupResource.js"]
["test_CookiesBackupResource.js"]
["test_CredentialsAndSecurityBackupResource.js"]
["test_FormHistoryBackupResource.js"]
["test_MeasurementUtils_fuzzByteSize.js"]
["test_MiscDataBackupResource.js"]
["test_PlacesBackupResource.js"]
["test_PreferencesBackupResource.js"]
["test_PreferencesBackupResource_Nimbus.js"]
["test_PreferencesBackupResource_searchEngines.js"]
["test_PreferencesBackupResource_selectableProfile.js"]
["test_ResourceFailures.js"]
["test_SelectableProfileBackupResource.js"]
head = "../../../../../toolkit/profile/test/xpcshell/head.js ../../../profiles/tests/unit/head.js head.js"
support-files = ["data/fake_avatar.png"]
prefs = [
"browser.profiles.enabled=true",
"browser.profiles.created=false",
]
["test_SessionStoreBackupResource.js"]
["test_SessionStoreBackupResource_mockSessionStore.js"]
["test_SiteSettingsBackupResource.js"]
["test_backupService_findBackupsInWellKnownLocations.js"]