Skip to content

Commit

Permalink
COOP: change handling of redirects
Browse files Browse the repository at this point in the history
This CL changes the handling of redirects in COOP to match
whatwg/html#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
  • Loading branch information
Camille Lamy authored and chromium-wpt-export-bot committed Aug 14, 2020
1 parent 8c6f228 commit 525abf0
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
}

Expand Down

0 comments on commit 525abf0

Please sign in to comment.