Skip to content

Commit

Permalink
Bug 1936441 [wpt PR 49631] - Add WPTs for named window lookup and BCG…
Browse files Browse the repository at this point in the history
… swap limits, a=testonly

Automatic update from web-platform-tests
Add WPTs for named window lookup and BCG swap limits

These tests verify the behaviour discussed here:
whatwg/html#10818

While there is some implementation defined behaviour, we can add tests
for the behaviour that's consistent between the major implementations,
namely that proactive browsing context group swaps can't be done while
another context exists in the group, that named lookups are scoped to
browsing context groups, and the lookup order in the case of multiple
contexts with the same name.

Bug: None
Change-Id: I515f527fb94a711bdd8eeb6610df2127571dcc3c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6081814
Reviewed-by: Domenic Denicola <domenicchromium.org>
Commit-Queue: Kevin McNee <mcneechromium.org>
Cr-Commit-Position: refs/heads/main{#1394596}

--

wpt-commits: 1f7679ad01691ea3885537b8b19e1b88a0e7f152
wpt-pr: 49631

UltraBlame original commit: 7c930d5bca8252fcec21396df3f9ecc6a7ae3e02
  • Loading branch information
marco-c committed Dec 16, 2024
1 parent 0eafca6 commit 2bb21c7
Show file tree
Hide file tree
Showing 3 changed files with 1,098 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,256 @@
<
!
DOCTYPE
html
>
<
title
>
Named
lookup
scoped
to
browsing
context
group
<
/
title
>
<
script
src
=
"
/
resources
/
testharness
.
js
"
>
<
/
script
>
<
script
src
=
"
/
resources
/
testharnessreport
.
js
"
>
<
/
script
>
<
script
src
=
"
/
common
/
utils
.
js
"
>
<
/
script
>
<
script
src
=
"
/
common
/
dispatcher
/
dispatcher
.
js
"
>
<
/
script
>
<
script
src
=
"
/
html
/
browsers
/
browsing
-
the
-
web
/
remote
-
context
-
helper
/
resources
/
remote
-
context
-
helper
.
js
"
>
<
/
script
>
<
body
>
<
script
>
promise_test
(
async
t
=
>
{
const
rcHelper
=
new
RemoteContextHelper
(
)
;
/
/
This
test
harness
cannot
be
in
the
same
browsing
context
group
as
the
/
/
popup
.
const
rcPopup1
=
await
rcHelper
.
addWindow
(
undefined
{
features
:
'
noopener
'
}
)
;
await
rcPopup1
.
executeScript
(
(
)
=
>
{
window
.
name
=
'
my_popup
'
;
window
.
firstPopup
=
true
;
}
)
;
assert_equals
(
window
.
open
(
'
'
'
my_popup
'
)
.
firstPopup
undefined
'
cannot
lookup
across
browsing
context
groups
'
)
;
}
'
named
lookup
scoped
to
browsing
context
group
'
)
;
<
/
script
>
<
/
body
>
Loading

0 comments on commit 2bb21c7

Please sign in to comment.