COOP: change handling of redirects

This CL changes the handling of redirects in COOP to match
https://github.com/whatwg/html/pull/5739. Instead of comparing a
response to the current document, we will compare it to the last entry
in the redirect chain.

Change-Id: I73a3926a8827733974d7c08b7f3553da06435ac3
Bug: 1108292
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2339988
Commit-Queue: Camille Lamy <clamy@chromium.org>
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Reviewed-by: Pâris Meuleman <pmeuleman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#798083}
diff --git a/html/cross-origin-opener-policy/reporting/navigation-reporting/reporting-redirect-with-same-origin-allow-popups.https.html b/html/cross-origin-opener-policy/reporting/navigation-reporting/reporting-redirect-with-same-origin-allow-popups.https.html
index f807561..8ede4a7 100644
--- a/html/cross-origin-opener-policy/reporting/navigation-reporting/reporting-redirect-with-same-origin-allow-popups.https.html
+++ b/html/cross-origin-opener-policy/reporting/navigation-reporting/reporting-redirect-with-same-origin-allow-popups.https.html
@@ -103,10 +103,8 @@
         "navigation-to-document");
     assert_not_equals(report, "timeout", "Report not received");
     assert_equals(report.type, "coop");
-    assert_equals(report.url, openee_redirect_url.replace(/"/g, '%22'));
     assert_equals(report.body["disposition"], "enforce");
     assert_equals(report.body["effective-policy"], "same-origin-allow-popups");
-    assert_equals(report.body["document-uri"], openee_url);
   }, `${popup_origin.name} openee redirected to same-origin with same-origin-allow-popups`);
 }