[Security] Fix COOP behavior in insecure contexts.
COOP should be disregarded in insecure contexts. This was not done properly and only avoided storing the COOP value in the RenderFrameHost after using it to potentially do a BrowsingInstance swap. This patch fixes the issue by completely stripping the response of its COOP value in such cases. Also fixes CrossOriginOpenerPolicyBrowserTest to use an HTTPS server and add a test that verifies it does not work over HTTP. Bug: 922191 Change-Id: I4eb31afe33bbee0da672d8179879ca8242668258 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2087917Reviewed-by:Camille Lamy <clamy@chromium.org> Commit-Queue: Arthur Hemery <ahemery@chromium.org> Cr-Commit-Position: refs/heads/master@{#747285}
Showing
Please register or sign in to comment