Skip to content

Commit

Permalink
Bug 1617760 [wpt PR 21943] - Run CORP on nested frame navigations, a=…
Browse files Browse the repository at this point in the history
…testonly

Automatic update from web-platform-tests
Run CORP on nested frame navigations

This implements WICG/cross-origin-embedder-policy#11.

Change-Id: I7bb07f0616cc947c8a84fa140af58984046c7587
Bug: 887967
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2066358
Reviewed-by: Kinuko Yasuda <kinukochromium.org>
Commit-Queue: Yutaka Hirano <yhiranochromium.org>
Cr-Commit-Position: refs/heads/master{#745857}

--

wpt-commits: 52191577ce292eed7bf42651764b8010b112ec8c
wpt-pr: 21943

UltraBlame original commit: 4f49d0f971bf8d187409fcd5cda3dab341b46bbc
  • Loading branch information
marco-c committed Mar 9, 2020
1 parent 4abe250 commit 22fee84
Show file tree
Hide file tree
Showing 3 changed files with 325 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,37 @@
succeed
)
;
/
/
CORP
is
checked
because
COEP
of
the
frame
is
"
require
-
corp
"
.
The
parent
/
/
frame
'
s
COEP
value
doesn
'
t
matter
.
async_test
(
t
Expand Down Expand Up @@ -883,6 +914,276 @@
)
)
;
/
/
REMOTE_ORIGIN
is
cross
-
origin
same
-
site
.
frame
.
src
=
{
HOST
.
HTTPS_REMOTE_ORIGIN
}
{
BASE
}
/
navigate
-
require
-
corp
-
same
-
site
.
sub
.
html
?
token
=
{
id
}
;
document
.
body
.
append
(
frame
)
;
}
'
CORP
:
same
-
site
is
checked
and
allowed
.
'
)
;
/
/
CORP
is
checked
because
COEP
of
the
frame
is
"
require
-
corp
"
.
The
parent
/
/
frame
'
s
COEP
value
doesn
'
t
matter
.
async_test
(
t
=
>
{
const
frame
=
document
.
createElement
(
"
iframe
"
)
;
const
id
=
token
(
)
;
t
.
add_cleanup
(
(
)
=
>
frame
.
remove
(
)
)
;
let
loaded
=
false
;
window
.
addEventListener
(
'
message
'
t
.
step_func
(
(
e
)
=
>
{
if
(
e
.
data
=
=
=
id
)
{
loaded
=
true
;
}
}
)
)
;
t
.
step_timeout
(
(
)
=
>
{
/
/
Make
sure
the
iframe
didn
'
t
load
.
See
https
:
/
/
github
.
com
/
whatwg
/
html
/
issues
/
125
for
why
a
/
/
timeout
is
used
here
.
Long
term
all
network
error
handling
should
be
similar
and
have
a
/
/
reliable
event
.
assert_false
(
loaded
)
;
t
.
done
(
)
;
}
2000
)
;
/
/
NOTESAMESITE_ORIGIN
is
cross
-
origin
cross
-
site
.
frame
.
src
Expand Down Expand Up @@ -933,8 +1234,9 @@
-
site
is
not
checked
and
blocked
.
'
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,14 @@ Policy
require
-
corp
Cross
-
Origin
-
Resource
-
Policy
:
cross
-
origin
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,14 @@ Policy
require
-
corp
Cross
-
Origin
-
Resource
-
Policy
:
cross
-
origin

0 comments on commit 22fee84

Please sign in to comment.