From 2e9f0702f285125a3126930420b697ade34b74dc Mon Sep 17 00:00:00 2001 From: Kevin McNee Date: Tue, 10 Dec 2024 18:59:56 -0800 Subject: [PATCH] Add WPTs for RelOpenerBcgDependencyHint Add tests which confirm that rel=opener on anchors and an opener window feature with window.open() prevent proactive browsing context group changes. These tests are tentative, since the associated proposal has not shipped. These tests are implemented by using a named window lookup after a session history navigation to verify two pages are in the same BCG (since the lookup is scoped to BCGs). Also set RelOpenerBcgDependencyHint's status to experimental. The feature is needed for these tests to pass. https://github.com/explainers-by-googlers/future-browsing-context-group-dependency-hint https://chromestatus.com/feature/5182336170983424 Bug: 333743493 Change-Id: Ibcda5e87fa63b2f9dac55c1382f3e2bc8f2fd711 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6077548 Reviewed-by: Domenic Denicola Commit-Queue: Kevin McNee Cr-Commit-Position: refs/heads/main@{#1394650} --- ...owsing-context-group-change.tentative.html | 92 +++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 html/semantics/links/links-created-by-a-and-area-elements/rel-opener-prevents-browsing-context-group-change.tentative.html diff --git a/html/semantics/links/links-created-by-a-and-area-elements/rel-opener-prevents-browsing-context-group-change.tentative.html b/html/semantics/links/links-created-by-a-and-area-elements/rel-opener-prevents-browsing-context-group-change.tentative.html new file mode 100644 index 00000000000000..94a9c2d3944c25 --- /dev/null +++ b/html/semantics/links/links-created-by-a-and-area-elements/rel-opener-prevents-browsing-context-group-change.tentative.html @@ -0,0 +1,92 @@ + +Prevent browsing context group changes + + + + + + + + +