-
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.
Bug 1638177 [wpt PR 23624] - Origin isolation: test that insecure HTT…
…P is not supported, a=testonly Automatic update from web-platform-tests Origin isolation: test that insecure HTTP is not supported Bug: 1042415 Change-Id: I2acd2fea79a12e1f60eb9a0114abcf61630e269a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2202512 Commit-Queue: Domenic Denicola <domenicchromium.org> Reviewed-by: James MacLean <wjmacleanchromium.org> Cr-Commit-Position: refs/heads/master{#774243} -- wpt-commits: e7e5f03642e0d32eac9965ee993efa589fb3997d wpt-pr: 23624 Differential Revision: https://phabricator.services.mozilla.com/D78791 UltraBlame original commit: ffb17c83be76f6c053239fda9a4b91579d6f5f1a
- Loading branch information
Showing
2 changed files
with
260 additions
and
0 deletions.
There are no files selected for viewing
254 changes: 254 additions & 0 deletions
254
testing/web-platform/tests/origin-isolation/insecure-http.sub.html
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,254 @@ | ||
< | ||
! | ||
DOCTYPE | ||
html | ||
> | ||
< | ||
meta | ||
charset | ||
= | ||
" | ||
utf | ||
- | ||
8 | ||
" | ||
> | ||
< | ||
title | ||
> | ||
Parent | ||
requests | ||
isolation | ||
child | ||
requests | ||
isolation | ||
child | ||
is | ||
a | ||
subdomain | ||
of | ||
the | ||
parent | ||
but | ||
all | ||
over | ||
insecure | ||
HTTP | ||
< | ||
/ | ||
title | ||
> | ||
< | ||
script | ||
src | ||
= | ||
" | ||
/ | ||
resources | ||
/ | ||
testharness | ||
. | ||
js | ||
" | ||
> | ||
< | ||
/ | ||
script | ||
> | ||
< | ||
script | ||
src | ||
= | ||
" | ||
/ | ||
resources | ||
/ | ||
testharnessreport | ||
. | ||
js | ||
" | ||
> | ||
< | ||
/ | ||
script | ||
> | ||
< | ||
div | ||
id | ||
= | ||
" | ||
log | ||
" | ||
> | ||
< | ||
/ | ||
div | ||
> | ||
< | ||
script | ||
type | ||
= | ||
" | ||
module | ||
" | ||
> | ||
import | ||
{ | ||
insertIframe | ||
sendWasmModule | ||
setBothDocumentDomains | ||
} | ||
from | ||
" | ||
. | ||
/ | ||
resources | ||
/ | ||
helpers | ||
. | ||
mjs | ||
" | ||
; | ||
let | ||
frameWindow | ||
; | ||
promise_setup | ||
( | ||
async | ||
( | ||
) | ||
= | ||
> | ||
{ | ||
frameWindow | ||
= | ||
await | ||
insertIframe | ||
( | ||
" | ||
{ | ||
{ | ||
hosts | ||
[ | ||
] | ||
[ | ||
www | ||
] | ||
} | ||
} | ||
" | ||
" | ||
? | ||
1 | ||
" | ||
) | ||
; | ||
} | ||
) | ||
; | ||
/ | ||
/ | ||
All | ||
isolation | ||
requests | ||
are | ||
ignored | ||
since | ||
this | ||
is | ||
over | ||
insecure | ||
HTTP | ||
. | ||
/ | ||
/ | ||
So | ||
both | ||
end | ||
up | ||
in | ||
the | ||
site | ||
- | ||
keyed | ||
agent | ||
cluster | ||
. | ||
promise_test | ||
( | ||
async | ||
( | ||
) | ||
= | ||
> | ||
{ | ||
const | ||
whatHappened | ||
= | ||
await | ||
sendWasmModule | ||
( | ||
frameWindow | ||
) | ||
; | ||
assert_equals | ||
( | ||
whatHappened | ||
" | ||
WebAssembly | ||
. | ||
Module | ||
message | ||
received | ||
" | ||
) | ||
; | ||
} | ||
" | ||
message | ||
event | ||
must | ||
occur | ||
" | ||
) | ||
; | ||
promise_test | ||
( | ||
async | ||
( | ||
) | ||
= | ||
> | ||
{ | ||
await | ||
setBothDocumentDomains | ||
( | ||
frameWindow | ||
) | ||
; | ||
/ | ||
/ | ||
Must | ||
not | ||
throw | ||
frameWindow | ||
. | ||
document | ||
; | ||
} | ||
" | ||
setting | ||
document | ||
. | ||
domain | ||
must | ||
give | ||
sync | ||
access | ||
" | ||
) | ||
; | ||
< | ||
/ | ||
script | ||
> |
6 changes: 6 additions & 0 deletions
6
testing/web-platform/tests/origin-isolation/insecure-http.sub.html.headers
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,6 @@ | ||
Origin | ||
- | ||
Isolation | ||
: | ||
? | ||
1 |