-
Andy Paicu authored
This represents steps 7 and 8 of: https://docs.google.com/document/d/1heiIgNdO7kbaU9BLOPO4wZ9maHScB87cGT5lyjeBVAM/edit#heading=h.4en9va43fgfj Bug: 950905 I have combined these two steps as they make a lot of sense together. 1) A new bool `obey_origin_policy` has been added to ResourceRequest 2) Based on its presence: a) The `Sec-Origin-Policy` HTTP header is set b) The OriginPolicyManager is used to retrieve the policy c) The policy is saved on the ResourceRequest 3) The OriginPolicyThrottle has all the necessary information to trigger the interstitial or allow the navigation. Change-Id: I75b4da55f01c0eff461e005a92f24b28925eef62 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1706428Reviewed-by:
Matt Menke <mmenke@chromium.org> Reviewed-by:
Daniel Vogelheim <vogelheim@chromium.org> Reviewed-by:
Daniel Cheng <dcheng@chromium.org> Reviewed-by:
Alex Moshchuk <alexmos@chromium.org> Commit-Queue: Andy Paicu <andypaicu@chromium.org> Cr-Commit-Position: refs/heads/master@{#686411}
d669835e