mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update web-platform-tests to revision b'5857a9b5776d85fe77883fadf62c398dc05cf608'
This commit is contained in:
parent
2803edd5e1
commit
8101fa5636
96 changed files with 1117 additions and 441 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue