Skip to content

Commit

Permalink
Bug 1534176 [wpt PR 15518] - HTML: opener and discarded auxiliary bro…
Browse files Browse the repository at this point in the history
…wsing context, a=testonly

Automatic update from web-platform-tests
HTML: opener and discarded auxiliary browsing context

For whatwg/html#4379.
--

wpt-commits: 3df07160e80e074edf0579627b7d5689f7bebf7b
wpt-pr: 15518

UltraBlame original commit: c1ae8fa14e174cd51576e4b63a69d88e1180c64a
  • Loading branch information
marco-c committed Oct 4, 2019
1 parent 885e4ba commit 097e722
Showing 1 changed file with 226 additions and 83 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@
>
opener
and
"
removed
"
embedded
documents
discarded
browsing
contexts
<
/
title
Expand Down Expand Up @@ -70,83 +68,22 @@
<
script
>
async_test
(
t
=
>
{
const
frame
=
document
.
querySelector
function
testOpener
(
"
iframe
"
)
frameW
=
frame
.
contentWindow
;
frame
.
onload
=
t
.
step_func
(
(
)
=
>
{
/
/
Firefox
and
Chrome
/
Safari
load
differently
if
(
frame
.
contentWindow
.
location
.
href
=
=
=
"
about
:
blank
"
otherW
thisW
discardOtherBC
isDiscardedFromATask
)
{
return
;
}
/
/
Test
bits
assert_equals
(
frameW
otherW
.
opener
window
thisW
"
opener
before
Expand All @@ -161,7 +98,7 @@
.
getOwnPropertyDescriptor
(
frameW
otherW
"
opener
"
Expand All @@ -177,7 +114,7 @@
openerGet
(
)
window
thisW
"
opener
before
Expand All @@ -190,15 +127,61 @@
"
)
;
frame
discardOtherBC
(
)
;
if
(
isDiscardedFromATask
)
{
t
.
remove
step_timeout
(
(
)
=
>
{
testOpenerRemainder
(
t
otherW
openerDesc
openerGet
)
;
}
250
)
;
}
else
{
testOpenerRemainder
(
t
otherW
openerDesc
openerGet
)
;
}
}
function
testOpenerRemainder
(
t
otherW
openerDesc
openerGet
)
{
assert_equals
(
frameW
otherW
.
opener
null
Expand Down Expand Up @@ -227,7 +210,7 @@
"
)
;
frameW
otherW
.
opener
=
Expand Down Expand Up @@ -260,7 +243,7 @@
.
getOwnPropertyDescriptor
(
frameW
otherW
"
opener
"
Expand All @@ -278,7 +261,7 @@
openerDesc
)
;
frameW
otherW
.
opener
=
Expand Down Expand Up @@ -317,7 +300,7 @@
.
getOwnPropertyDescriptor
(
frameW
otherW
"
opener
"
Expand Down Expand Up @@ -361,6 +344,91 @@
)
;
}
async_test
(
t
=
>
{
const
frame
=
document
.
querySelector
(
"
iframe
"
)
frameW
=
frame
.
contentWindow
;
frame
.
onload
=
t
.
step_func
(
(
)
=
>
{
/
/
Firefox
and
Chrome
/
Safari
load
differently
if
(
frame
.
contentWindow
.
location
.
href
=
=
=
"
about
:
blank
"
)
{
return
;
}
testOpener
(
t
frameW
window
(
)
=
>
frame
.
remove
(
)
false
)
;
}
)
;
window
Expand All @@ -381,6 +449,81 @@
)
;
}
"
opener
of
discarded
nested
browsing
context
"
)
;
async_test
(
t
=
>
{
const
popupW
=
window
.
open
(
"
/
common
/
blank
.
html
"
)
;
popupW
.
onload
=
t
.
step_func
(
(
)
=
>
{
testOpener
(
t
popupW
window
(
)
=
>
popupW
.
close
(
)
true
)
;
}
)
;
}
"
opener
of
discarded
auxiliary
browsing
context
"
)
;
<
Expand Down

0 comments on commit 097e722

Please sign in to comment.