diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
commit | 40a355a42d4a9444dc753c04c6608dade2f06a23 (patch) | |
tree | 871fc667d2de662f171103ce5ec067014ef85e61 /testing/webcompat | |
parent | Adding upstream version 124.0.1. (diff) | |
download | firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.tar.xz firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.zip |
Adding upstream version 125.0.1.upstream/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" |