forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't send SameSite=Lax cookies on cross-site, non-top-level requests
This fixes a bug which was sending SameSite=Lax cookies on cross-site, *non*-top-level requests when the site-for-cookies was same-site with the request URL. If the request is not strictly same-site, we should only be sending Lax cookies when the site-for-cookies is same-site with the request URL, *and* the request is a top-level navigation. Similarly for accepting cookies set on responses. This implements the fix behind a flag (default enabled) to allow reverting to the old behavior if there is too much site breakage as a result of the fix. Bug: 1166211 Change-Id: I2cebf8011010903cd016d7d7c1a32bf84aa325ee Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2653663 Reviewed-by: Andrey Kosyakov <caseq@chromium.org> Reviewed-by: Maksim Orlovich <morlovich@chromium.org> Commit-Queue: Lily Chen <chlily@chromium.org> Cr-Commit-Position: refs/heads/master@{#851323}
- Loading branch information
Showing
16 changed files
with
671 additions
and
202 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
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
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
Oops, something went wrong.