forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[HTTPS-Upgrades] Fix crash or hang during certain redirects
When HTTPS-Upgrades are applied multiple times across redirects to different sites within the same navigation, old remote/receiver instances were being held onto and either triggering a DCHECK or causing the navigation to hang (in non-DCHECK builds) by failing to continue the next redirect step. This CL removes these DCHECKs and instead explicitly reset()'s the Remote and Receiver in HttpsUpgradesInterceptor::RedirectHandler() before re-binding them to trigger the upgrade redirect. This also adds a regression test that triggered these DCHECKS (or navigation hang) before the fix was applied. Bug: 1431026 Change-Id: If487631e217ad06aefabe72e84c6c138902a5b06 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4418407 Commit-Queue: Chris Thompson <[email protected]> Reviewed-by: Mustafa Emre Acer <[email protected]> Cr-Commit-Position: refs/heads/main@{#1129533}
- Loading branch information
1 parent
75be8bf
commit d121a41
Showing
2 changed files
with
52 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters