From 01822954bbb3b2af5ea3157d0171d711652b56e7 Mon Sep 17 00:00:00 2001 From: Kevin McNee Date: Tue, 10 Dec 2024 16:56:51 -0800 Subject: [PATCH] Add WPTs for named window lookup and BCG swap limits These tests verify the behaviour discussed here: https://github.com/whatwg/html/pull/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 Commit-Queue: Kevin McNee Cr-Commit-Position: refs/heads/main@{#1394596} --- ...okup-scoped-to-browsing-context-group.html | 27 +++++++++ ...ive-swap-when-other-contexts-in-group.html | 38 +++++++++++++ .../duplicate-name-order.html | 55 +++++++++++++++++++ 3 files changed, 120 insertions(+) create mode 100644 html/browsers/windows/auxiliary-browsing-contexts/named-lookup-scoped-to-browsing-context-group.html create mode 100644 html/browsers/windows/auxiliary-browsing-contexts/no-proactive-swap-when-other-contexts-in-group.html create mode 100644 html/browsers/windows/browsing-context-names/duplicate-name-order.html diff --git a/html/browsers/windows/auxiliary-browsing-contexts/named-lookup-scoped-to-browsing-context-group.html b/html/browsers/windows/auxiliary-browsing-contexts/named-lookup-scoped-to-browsing-context-group.html new file mode 100644 index 00000000000000..0450d479196a19 --- /dev/null +++ b/html/browsers/windows/auxiliary-browsing-contexts/named-lookup-scoped-to-browsing-context-group.html @@ -0,0 +1,27 @@ + +Named lookup scoped to browsing context group + + + + + + + + + diff --git a/html/browsers/windows/auxiliary-browsing-contexts/no-proactive-swap-when-other-contexts-in-group.html b/html/browsers/windows/auxiliary-browsing-contexts/no-proactive-swap-when-other-contexts-in-group.html new file mode 100644 index 00000000000000..5f4e0da690b931 --- /dev/null +++ b/html/browsers/windows/auxiliary-browsing-contexts/no-proactive-swap-when-other-contexts-in-group.html @@ -0,0 +1,38 @@ + +No proactive browsing context group changes when other contexts in group + + + + + + + + + diff --git a/html/browsers/windows/browsing-context-names/duplicate-name-order.html b/html/browsers/windows/browsing-context-names/duplicate-name-order.html new file mode 100644 index 00000000000000..95b461d4edde78 --- /dev/null +++ b/html/browsers/windows/browsing-context-names/duplicate-name-order.html @@ -0,0 +1,55 @@ + +Duplicate name lookup order + + + + + + + + +