-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split cache per request's includeCredentials
whatwg/fetch issue: whatwg/fetch#1253 Design doc: https://docs.google.com/document/d/1lvbiy4n-GM5I56Ncw304sgvY5Td32R6KHitjRXvkZ6U/edit# Add the feature "SplitCacheByIncludeCredentials". When enabled, it makes the HTTP cache to differentiate the requests sent anonymously from the ones sent with credentials. This avoids anonymous requests from getting responses requested with credentials. This aligns Chrome toward Firefox. See Firefox implementations: https://github.com/mozilla/gecko-dev/blob/b31b78eea683b0eb341c676adb422cd129909fe9/netwerk/protocol/http/nsHttpChannel.cpp#L4117 Goal after this patch is to start a finch experiment to check for potential performance regressions. VIRTUAL_OWNERS: This adds 13 tests from http-cache WPT directory to be run with the feature enabled. Tests are often "any.js" tests, causing 46 run. Bug: 1221529 Change-Id: I0f1c969eb2c3401e9548c5d1e6ec63570166d7e6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3010379 Auto-Submit: Arthur Sonzogni <[email protected]> Reviewed-by: Mason Freed <[email protected]> Reviewed-by: Mike West <[email protected]> Reviewed-by: Camille Lamy <[email protected]> Reviewed-by: Maksim Orlovich <[email protected]> Commit-Queue: Arthur Sonzogni <[email protected]> Cr-Commit-Position: refs/heads/main@{#918101} NOKEYCHECK=True GitOrigin-RevId: 54013f2a5d6c06a909cbc7318895c2ccf4039921
- Loading branch information
1 parent
c8840b9
commit 5652727
Showing
10 changed files
with
38 additions
and
4 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
5 changes: 5 additions & 0 deletions
5
blink/web_tests/virtual/split-cache-by-include-credentials/README.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# virtual/split-cache-by-include-credentials/ | ||
|
||
This directory is for tests when the HTTP cache is partitioned by the | ||
"includeCredentials" attribute of the fetch specification. Test are run with: | ||
`--enable-features=SplitCacheByIncludeCredentials`. |
5 changes: 5 additions & 0 deletions
5
...-include-credentials/external/wpt/fetch/http-cache/credentials.tentative.any-expected.txt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
This is a testharness.js-based test. | ||
PASS same-origin: 2xAnonymous, 2xCredentialled, 1xAnonymous | ||
PASS same-origin: 2xCredentialled, 2xAnonymous, 1xCredentialled | ||
Harness: the test ran to completion. | ||
|
5 changes: 5 additions & 0 deletions
5
...ntials/external/wpt/fetch/http-cache/credentials.tentative.any.serviceworker-expected.txt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
This is a testharness.js-based test. | ||
PASS same-origin: 2xAnonymous, 2xCredentialled, 1xAnonymous | ||
PASS same-origin: 2xCredentialled, 2xAnonymous, 1xCredentialled | ||
Harness: the test ran to completion. | ||
|
5 changes: 5 additions & 0 deletions
5
...entials/external/wpt/fetch/http-cache/credentials.tentative.any.sharedworker-expected.txt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
This is a testharness.js-based test. | ||
PASS same-origin: 2xAnonymous, 2xCredentialled, 1xAnonymous | ||
PASS same-origin: 2xCredentialled, 2xAnonymous, 1xCredentialled | ||
Harness: the test ran to completion. | ||
|
5 changes: 5 additions & 0 deletions
5
...e-credentials/external/wpt/fetch/http-cache/credentials.tentative.any.worker-expected.txt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
This is a testharness.js-based test. | ||
PASS same-origin: 2xAnonymous, 2xCredentialled, 1xAnonymous | ||
PASS same-origin: 2xCredentialled, 2xAnonymous, 1xCredentialled | ||
Harness: the test ran to completion. | ||
|