Remove LinkDoctorBaseURL special case for cross origin read blocking.
This special case would have been hard to port to the network service. It's easier to just force the net_error_helper to issue a CORS-enabled request, which https://www.googleapis.com/rpc readily understands. A browsertest is added to explicitly test that CORB is applied to subresources loaded by error pages. Currently this test fails; we'll fix that in a separate CL. Manual testing: in an official/branded Chrome build, navigate to "http://blog.thestranger.com" and on the resulting DNS error page, observe a suggested correction link (of "http://thestranger.com/blog"). Repeat these steps with a chrome://net-internals trace running, and observe a request to "https://www.googleapis.com/rpc" that has the "Origin: null" request header, and which includes an "Access-Control-Allow-Origin: *" header in the response. BUG=814913,792546 Cq-Include-Trybots: master.tryserver.chromium.linux:linux_mojo Change-Id: Ib7434bd52a27909dd67c5e9a867db1dab7090d59 Reviewed-on: https://chromium-review.googlesource.com/927561Reviewed-by:Matt Menke <mmenke@chromium.org> Reviewed-by:
Łukasz Anforowicz <lukasza@chromium.org> Commit-Queue: Nick Carter <nick@chromium.org> Cr-Commit-Position: refs/heads/master@{#539309}
Showing
Please register or sign in to comment