From f194e621239093c9be0a49b1002778b9cca76920 Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Mon, 16 Dec 2024 01:00:25 +0000 Subject: [PATCH] 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: 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} -- wpt-commits: 1f7679ad01691ea3885537b8b19e1b88a0e7f152 wpt-pr: 49631 UltraBlame original commit: 7c930d5bca8252fcec21396df3f9ecc6a7ae3e02 --- ...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 testing/web-platform/tests/html/browsers/windows/auxiliary-browsing-contexts/named-lookup-scoped-to-browsing-context-group.html create mode 100644 testing/web-platform/tests/html/browsers/windows/auxiliary-browsing-contexts/no-proactive-swap-when-other-contexts-in-group.html create mode 100644 testing/web-platform/tests/html/browsers/windows/browsing-context-names/duplicate-name-order.html diff --git a/testing/web-platform/tests/html/browsers/windows/auxiliary-browsing-contexts/named-lookup-scoped-to-browsing-context-group.html b/testing/web-platform/tests/html/browsers/windows/auxiliary-browsing-contexts/named-lookup-scoped-to-browsing-context-group.html new file mode 100644 index 000000000000..0450d479196a --- /dev/null +++ b/testing/web-platform/tests/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/testing/web-platform/tests/html/browsers/windows/auxiliary-browsing-contexts/no-proactive-swap-when-other-contexts-in-group.html b/testing/web-platform/tests/html/browsers/windows/auxiliary-browsing-contexts/no-proactive-swap-when-other-contexts-in-group.html new file mode 100644 index 000000000000..5f4e0da690b9 --- /dev/null +++ b/testing/web-platform/tests/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/testing/web-platform/tests/html/browsers/windows/browsing-context-names/duplicate-name-order.html b/testing/web-platform/tests/html/browsers/windows/browsing-context-names/duplicate-name-order.html new file mode 100644 index 000000000000..95b461d4edde --- /dev/null +++ b/testing/web-platform/tests/html/browsers/windows/browsing-context-names/duplicate-name-order.html @@ -0,0 +1,55 @@ + +Duplicate name lookup order + + + + + + + + +