Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore(firefox): Don't upgrade HTTP requests to HTTPS (#34465)

Henrik Skupin9d91d7a1e932
diff --git a/.github/workflows/tests_bidi.yml b/.github/workflows/tests_bidi.yml
index 99b756c2b3..c7c4b6b54c 100644
--- a/.github/workflows/tests_bidi.yml
+++ b/.github/workflows/tests_bidi.yml
@@ -7,7 +7,7 @@ on:
- main
paths:
- .github/workflows/tests_bidi.yml
- - packages/playwright-core/src/server/bidi/*
+ - packages/playwright-core/src/server/bidi/**
schedule:
# Run every day at midnight
- cron: '0 0 * * *'
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,