COOP: restrict-properties 1/*: update COOP: RP swap rules.

We initially decided to isolate COOP: restrict-properties pages from
each other, whatever their origin. The approach has evolved, and we now
want to reuse the same BrowsingContext group instead, if the origin
match.

This implies:
- Changing the rules in CrossOriginOpenerPolicyStatus.
- Updating the expectations of some WPTs.
- Updating the way we test that named targeting does not resolve across
BrowsingContext groups. We used multiple same-origin COOP:
restrict-properties contexts, but now instead use COOP: unsafe-none
for the main BrowsingContext group.

Bug: 1221127
Change-Id: I8601662591d531d7aa7496072d4d40c4d287ce90
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4189441
Commit-Queue: Arthur Hemery <ahemery@chromium.org>
Reviewed-by: Camille Lamy <clamy@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1096723}
diff --git a/html/cross-origin-opener-policy/tentative/restrict-properties/iframe-popup.https.html b/html/cross-origin-opener-policy/tentative/restrict-properties/iframe-popup.https.html
index 2c6f0b6..1784072 100644
--- a/html/cross-origin-opener-policy/tentative/restrict-properties/iframe-popup.https.html
+++ b/html/cross-origin-opener-policy/tentative/restrict-properties/iframe-popup.https.html
@@ -20,25 +20,26 @@
 
 // This document has COOP: restrict-properties. The popup has COOP:
 // restrict-properties. Opening from an iframe should not be different from
-// opening from the main frame and the opener should be severed.
+// opening from the main frame and the opener should be restricted if
+// cross-origin.
 [
   {
     "title": "same origin iframe, same origin popup",
     "iframeOrigin": SAME_ORIGIN,
     "popupOrigin": SAME_ORIGIN,
-    "opener": "restricted"
+    "opener": "preserved"
   },
   {
     "title": "same site iframe, same origin popup",
     "iframeOrigin": SAME_SITE,
     "popupOrigin": SAME_ORIGIN,
-    "opener": "restricted"
+    "opener": "preserved"
   },
   {
     "title": "cross origin iframe, same origin popup",
     "iframeOrigin": CROSS_ORIGIN,
     "popupOrigin": SAME_ORIGIN,
-    "opener": "restricted"
+    "opener": "preserved"
   },
   {
     "title": "same origin iframe, same site popup",
diff --git a/html/cross-origin-opener-policy/tentative/restrict-properties/named_targeting.https.html.headers b/html/cross-origin-opener-policy/tentative/restrict-properties/named_targeting.https.html.headers
deleted file mode 100644
index d5c9906..0000000
--- a/html/cross-origin-opener-policy/tentative/restrict-properties/named_targeting.https.html.headers
+++ /dev/null
@@ -1 +0,0 @@
-Cross-Origin-Opener-Policy: restrict-properties
diff --git a/html/cross-origin-opener-policy/tentative/restrict-properties/popup-with-same-origin.https.html b/html/cross-origin-opener-policy/tentative/restrict-properties/popup-with-same-origin.https.html
index 491cbc3..c0020fa 100644
--- a/html/cross-origin-opener-policy/tentative/restrict-properties/popup-with-same-origin.https.html
+++ b/html/cross-origin-opener-policy/tentative/restrict-properties/popup-with-same-origin.https.html
@@ -34,7 +34,7 @@
   {
     "title": "popup with coop restrict-properties",
     "coop": "restrict-properties",
-    "opener": "restricted"
+    "opener": "preserved"
   }
 ].forEach(variant => {
   popup_test(`Same-origin ${variant.title}`, SAME_ORIGIN,