Bug 1804896: don't run update related tests against msix packages r=bytesized,application-update-reviewers

We don't use our updater in MSIX, no need to run the tests (which break various ways anyways).

Differential Revision: https://phabricator.services.mozilla.com/D164667
This commit is contained in:
Ben Hearsum
2022-12-15 00:45:13 +00:00
parent 20e93dfd50
commit 53e4224334
8 changed files with 21 additions and 1 deletions

View File

@@ -20,7 +20,9 @@ skip-if = os != 'mac'
[browser_policies_notice_in_aboutpreferences.js]
[browser_policies_setAndLockPref_API.js]
[browser_policy_app_auto_update.js]
skip-if = os == 'win' && msix # Updater is disabled in MSIX builds
[browser_policy_app_update.js]
skip-if = os == 'win' && msix # Updater is disabled in MSIX builds
[browser_policy_block_about.js]
[browser_policy_block_about_support.js]
[browser_policy_block_set_desktop_background.js]
@@ -67,3 +69,4 @@ https_first_disabled = true
[browser_policy_usermessaging.js]
[browser_policy_websitefilter.js]
[browser_policy_background_app_update.js]
skip-if = os == 'win' && msix # Updater is disabled in MSIX builds

View File

@@ -4,5 +4,6 @@ prefs =
browser.policies.alternatePath='<test-root>/browser/components/enterprisepolicies/tests/browser/disable_app_update/config_disable_app_update.json'
support-files =
config_disable_app_update.json
skip-if = os == 'win' && msix # Updater is disabled in MSIX builds
[browser_policy_disable_app_update.js]

View File

@@ -12,5 +12,6 @@ prefs =
browser.startup.homepage_override.mstone="60.0"
browser.startup.upgradeDialog.enabled=false
browser.policies.alternatePath='<test-root>/browser/components/tests/browser/whats_new_page/config_localhost_update_url.json'
skip-if = os == 'win' && msix # Updater is disabled in MSIX builds; what's new pages therefore have no meaning.
[browser_whats_new_page.js]

View File

@@ -15,6 +15,10 @@ https_first_disabled = true
https_first_disabled = true
[browser_selection.js]
[browser_updateAsk.js]
skip-if = os == 'win' && msix # Updater is disabled in MSIX builds
[browser_updateRefresh.js]
skip-if = os == 'win' && msix # Updater is disabled in MSIX builds
[browser_updateRestart.js]
skip-if = os == 'win' && msix # Updater is disabled in MSIX builds
[browser_updateWeb.js]
skip-if = os == 'win' && msix # Updater is disabled in MSIX builds

View File

@@ -115,6 +115,13 @@ add_task(async function selected_result_intervention_refresh() {
});
add_task(async function selected_result_intervention_update() {
// Updates are disabled for MSIX packages, this test is irrelevant for them.
if (
AppConstants.platform === "win" &&
Services.sysinfo.getProperty("hasWinPackageId")
) {
return;
}
await UpdateUtils.setAppUpdateAutoEnabled(false);
await initUpdate({ queryString: "&noUpdates=1" });
UrlbarProviderInterventions.checkForBrowserUpdate(true);

View File

@@ -1,5 +1,7 @@
[DEFAULT]
skip-if = os != 'win'
skip-if =
os != 'win'
msix # Updater is disabled in MSIX builds
reason = BITS is only available on Windows.
dupe-manifest =
tags = appupdate bits

View File

@@ -11,6 +11,7 @@ support-files =
prefs =
app.update.BITS.enabled=false
app.update.langpack.enabled=true
skip-if = os == 'win' && msix # Updater is disabled in MSIX builds
# About Dialog Application Update Tests
[browser_aboutDialog_bc_downloading.js]

View File

@@ -9,6 +9,7 @@ support-files =
../../data/shared.js
../../data/app_update.sjs
../testConstants.js
skip-if = os == 'win' && msix # Updater is disabled in MSIX builds
[browser_aboutPrefs_fc_autoUpdateTrue.js]
[browser_aboutPrefs_fc_autoUpdateFalse.js]