diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
commit | 086c044dc34dfc0f74fbe41f4ecb402b2cd34884 (patch) | |
tree | a4f824bd33cb075dd5aa3eb5a0a94af221bbe83a /testing/webcompat | |
parent | Adding debian version 124.0.1-1. (diff) | |
download | firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.tar.xz firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.zip |
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/webcompat')
-rw-r--r-- | testing/webcompat/fixtures.py | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/testing/webcompat/fixtures.py b/testing/webcompat/fixtures.py index 443adfae81..933c54c94f 100644 --- a/testing/webcompat/fixtures.py +++ b/testing/webcompat/fixtures.py @@ -21,6 +21,7 @@ PIP_OVERRIDES_PREF = "extensions.webcompat.enable_picture_in_picture_overrides" SHIMS_PREF = "extensions.webcompat.enable_shims" STRICT_ETP_PREF = "privacy.trackingprotection.enabled" UA_OVERRIDES_PREF = "extensions.webcompat.perform_ua_overrides" +SYSTEM_ADDON_UPDATES_PREF = "extensions.systemAddon.update.enabled" class WebDriver: @@ -82,6 +83,9 @@ class FirefoxWebDriver(WebDriver): if "use_strict_etp" in test_config: prefs[STRICT_ETP_PREF] = test_config["use_strict_etp"] + # keep system addon updates off to prevent bug 1882562 + prefs[SYSTEM_ADDON_UPDATES_PREF] = False + # remote/cdp/CDP.sys.mjs sets cookieBehavior to 0, # which we definitely do not want, so set it back to 5. cookieBehavior = 4 if test_config.get("without_tcp") else 5 @@ -125,7 +129,7 @@ def config_file(request): @pytest.fixture def bug_number(request): - return re.findall("\d+", str(request.fspath.basename))[0] + return re.findall(r"\d+", str(request.fspath.basename))[0] @pytest.fixture @@ -171,11 +175,11 @@ def install_addon(session, addon_file_path): """ const addon_file_path = arguments[0]; const cb = arguments[1]; - const { AddonManager } = ChromeUtils.import( - "resource://gre/modules/AddonManager.jsm" + const { AddonManager } = ChromeUtils.importESModule( + "resource://gre/modules/AddonManager.sys.mjs" ); - const { ExtensionPermissions } = ChromeUtils.import( - "resource://gre/modules/ExtensionPermissions.jsm" + const { ExtensionPermissions } = ChromeUtils.importESModule( + "resource://gre/modules/ExtensionPermissions.sys.mjs" ); const { FileUtils } = ChromeUtils.importESModule( "resource://gre/modules/FileUtils.sys.mjs" |