-
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 1936441 [wpt PR 49631] - Add WPTs for named window lookup and BCG…
… 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
Showing
3 changed files
with
1,098 additions
and
0 deletions.
There are no files selected for viewing
256 changes: 256 additions & 0 deletions
256
...rs/windows/auxiliary-browsing-contexts/named-lookup-scoped-to-browsing-context-group.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,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 | ||
> |
Oops, something went wrong.