Skip to content

chore(chromium): stop disabling the HttpsUpgrades feature - #43455

Merged
Dmitry Gozman (dgozman) merged 1 commit into
microsoft:mainfrom
dgozman:remove-https-upgrades-disable
Oct 16, 2026
Merged

Dmitry Gozman (dgozman) merged 1 commit into
microsoft:mainfrom
dgozman:remove-https-upgrades-disable

Conversation

@dgozman

@dgozman Dmitry Gozman (dgozman) commented Oct 16, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Remove HttpsUpgrades from the list of disabled Chromium features, so headed Chromium behaves like a real browser.

Local workaround

launchOptions: {
  args: ['--disable-features=HttpsUpgrades,HttpsFirstBalancedModeAutoEnable']
}

History

Effect

  • Chromium 158 and later, headed or new headless (channel: 'chromium'): no change, upgrades are already active through balanced mode.
  • Chromium 120 to 157, Chrome and Edge stable, Electron: http:// navigations to public-looking hostnames on the default port are first tried over https://. If that fails, Chromium silently falls back to http://. If it succeeds, the page lands on the https:// URL, so a route registered for the http:// URL does not match.
  • Headless shell: no change, it does not include this feature.
  • http://localhost, loopback addresses, *.localhost, non-default ports, single-label hostnames, private IPs and reserved domains such as .test and .local are never upgraded, in any mode.

Chromium 158 enables HTTPS-First balanced mode by default, which
upgrades http:// navigations regardless of the HttpsUpgrades feature.
Disabling HttpsUpgrades no longer changes anything there, and on older
Chromium it only prevented the silent fallback upgrades that stable
Chrome has shipped since version 120. Behave like a real browser instead.
@github-actions

Copy link
Copy Markdown
Contributor

Test results for "tests 1"

4 flaky ⚠️ [playwright-test] › ui-mode-trace.spec.ts:827 › should update state on subsequent run `@playwright-x64-server2025-64-core-node22`
⚠️ [chromium-library] › library/video.spec.ts:762 › screencast › should work with video+trace `@chromium-playwright-x64-ubuntu24-64-core-node22`
⚠️ [firefox-library] › library/browsercontext-cookies-third-party.spec.ts:257 › third party 'Partitioned;' cookies `@firefox-playwright-x64-ubuntu24-64-core-node22`
⚠️ [firefox-library] › library/browsercontext-cookies-third-party.spec.ts:470 › top level 'Partitioned;' cookie and same origin iframe `@firefox-playwright-x64-ubuntu24-64-core-node22`

23558 passed, 710 skipped


Merge workflow run.

@github-actions

Copy link
Copy Markdown
Contributor

Test results for "MCP"

5154 passed, 614 skipped


Merge workflow run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants