Update web-platform-tests to revision b'5857a9b5776d85fe77883fadf62c398dc05cf608'

This commit is contained in:
WPT Sync Bot 2023-04-08 01:35:01 +00:00
parent 2803edd5e1
commit 8101fa5636
96 changed files with 1117 additions and 441 deletions

View file

@ -227,10 +227,17 @@ function FrameInitiatedNavigation(frame, url) {
return load;
}
// Makes a subresource request to the provided host in the given frame, and returns the cookies in the response.
function FetchFromFrame(frame, host) {
// Makes a subresource request to the provided host in the given frame, and
// returns the cookies that were included in the request.
function FetchSubresourceCookiesFromFrame(frame, host) {
return FetchFromFrame(frame, `${host}/storage-access-api/resources/echo-cookie-header.py`);
}
// Makes a subresource request to the provided host in the given frame, and
// returns the response.
function FetchFromFrame(frame, url) {
return PostMessageAndAwaitReply(
{ command: "subresource cookies", host }, frame.contentWindow);
{ command: "cors fetch", url }, frame.contentWindow);
}
// Tries to set storage access policy, ignoring any errors.