Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add WPT for referrer handling in HTTPS Upgrades #43676

Merged
merged 1 commit into from
Dec 15, 2023

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Dec 14, 2023

This WPT test checks that HTTPS Upgrading does not drop referrer
information when:

  1. Referrer policy is no-referrer-when-downgrade
  2. A navigation is made to an URL is HTTP
  3. Navigated URL is successfully upgraded to HTTPS

In this scenario, the upgraded HTTPS URL should get the referrer
information since the connection was never downgraded to an unsafe
URL.

The current implementation of HTTPS Upgrades in Chrome doesn't pass
this test, dropping the referrer.

Bug: 1394910
Change-Id: I459e5fcdc97adc19dc42aa5ba1ca0b1617d2158d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5122096
Reviewed-by: Carlos IL <carlosil@chromium.org>
Commit-Queue: Mustafa Emre Acer <meacer@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1237834}

Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Chromium project.

This WPT test checks that HTTPS Upgrading does not drop referrer
information when:
1. Referrer policy is no-referrer-when-downgrade
2. A navigation is made to an URL is HTTP
3. Navigated URL is successfully upgraded to HTTPS

In this scenario, the upgraded HTTPS URL should get the referrer
information since the connection was never downgraded to an unsafe
URL.

The current implementation of HTTPS Upgrades in Chrome doesn't pass
this test, dropping the referrer.

Bug: 1394910
Change-Id: I459e5fcdc97adc19dc42aa5ba1ca0b1617d2158d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5122096
Reviewed-by: Carlos IL <carlosil@chromium.org>
Commit-Queue: Mustafa Emre Acer <meacer@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1237834}
@chromium-wpt-export-bot chromium-wpt-export-bot merged commit 562cd97 into master Dec 15, 2023
18 checks passed
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-cl-5122096 branch December 15, 2023 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants