From 679f7b20d350d21ca6a1b8007f8c4c7cc2d75454 Mon Sep 17 00:00:00 2001 From: Henrik Skupin Date: Fri, 24 Jan 2025 15:55:50 +0100 Subject: [PATCH] chore(firefox): Don't upgrade HTTP requests to HTTPS This is similar to Chrome where it is disabled as well. --- .../src/server/bidi/third_party/firefoxPrefs.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/playwright-core/src/server/bidi/third_party/firefoxPrefs.ts b/packages/playwright-core/src/server/bidi/third_party/firefoxPrefs.ts index d59ac0bc13..bf082793b6 100644 --- a/packages/playwright-core/src/server/bidi/third_party/firefoxPrefs.ts +++ b/packages/playwright-core/src/server/bidi/third_party/firefoxPrefs.ts @@ -139,6 +139,9 @@ function defaultProfilePreferences( 'dom.min_background_timeout_value_without_budget_throttling': 0, 'dom.timeout.enable_budget_timer_throttling': false, + // Disable HTTPS-First upgrades + 'dom.security.https_first': false, + // Only load extensions from the application and user profile // AddonManager.SCOPE_PROFILE + AddonManager.SCOPE_APPLICATION 'extensions.autoDisableScopes': 0,