Skip to content

Commit

Permalink
Bug 1638177 [wpt PR 23624] - Origin isolation: test that insecure HTT…
Browse files Browse the repository at this point in the history
…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
marco-c committed Jun 11, 2020
1 parent cdef670 commit ba618fd
Show file tree
Hide file tree
Showing 2 changed files with 260 additions and 0 deletions.
254 changes: 254 additions & 0 deletions testing/web-platform/tests/origin-isolation/insecure-http.sub.html
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
>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Origin
-
Isolation
:
?
1

0 comments on commit ba618fd

Please sign in to comment.