-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SignedExchange: Remove support for version 1b2
This patch drops support for Signed Exchange of "application/signed-exchange;v=b2" format. After this patch, loading Signed Exchanges of version 1b2 will cause fallback redirect. SignedExchangeEnvelopeTest and SignedExchangeSignatureVerifierTest will remain TestWithParam<SignedExchangeVersion>, since that will be useful when adding support for future versions. Bug: 919424 Change-Id: I8f992c2d38e21ad2fc89b9c227295867f588a04a Reviewed-on: https://chromium-review.googlesource.com/c/1428628 Reviewed-by: Kouhei Ueno <[email protected]> Reviewed-by: Kinuko Yasuda <[email protected]> Reviewed-by: Tsuyoshi Horo <[email protected]> Reviewed-by: Kent Tamura <[email protected]> Commit-Queue: Kunihiko Sakamoto <[email protected]> Cr-Commit-Position: refs/heads/master@{#625134}
- Loading branch information
1 parent
e188b4d
commit 554f2b2
Showing
5 changed files
with
38 additions
and
1 deletion.
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
Binary file not shown.
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,2 @@ | ||
Content-Type: application/signed-exchange;v=b2 | ||
X-Content-Type-Options: nosniff |
Binary file not shown.
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,20 @@ | ||
<!DOCTYPE html> | ||
<title>Loading SignedHTTPExchange of unsupported version must fail</title> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="/common/get-host-info.sub.js"></script> | ||
<script src="./resources/sxg-util.js"></script> | ||
<body> | ||
<p>Note: This test FAILs if your browser supports Signed Exchange version 1b2.</p> | ||
<script> | ||
promise_test(async (t) => { | ||
const sxgUrl = get_host_info().HTTPS_ORIGIN + | ||
'/signed-exchange/resources/sxg-version1b2.sxg'; | ||
const message = await openSXGInIframeAndWaitForMessage(t, sxgUrl); | ||
const innerURL = innerURLOrigin() + | ||
'/signed-exchange/resources/inner-url.html'; | ||
assert_equals(message.location, innerURL); | ||
assert_true(message.is_fallback); | ||
}, 'Loading SignedHTTPExchange of unsupported version must fail and fallback redirect.'); | ||
</script> | ||
</body> |