commit | 053bcc1791c6d6a7679bc73de80e9cd3fe93178c | [log] [tgz] |
---|---|---|
author | John Abd-El-Malek <jam@chromium.org> | Fri Nov 16 00:36:36 2018 |
committer | John Abd-El-Malek <jam@chromium.org> | Fri Nov 16 00:36:36 2018 |
tree | 1b8a4a872b973d95134d4ca7fa6d92ec36713e5b | |
parent | 6da357292322df39430604b19507e7db39a5351a [diff] |
Fix safe search policy not being applied on redirects. This is another regression from r579953. The problem is that NetworkDelegate::OnBeforeURLRequest is called on the initial request and every redirect, while URLLoaderThrottle::WillStartRequest is only called on the original request and not redirects. This cl doesn't fix the network service path, as we don't have a way to change the URL in a throttle on a redirect. It's meant to be as minimal to merge. Follow-up cls will add a test and fix this for network service path. Bug: 899268 Change-Id: I1948ee74a57e6a36cfda165abd924900b4b8b1c4 Reviewed-on: https://chromium-review.googlesource.com/c/1338567 Reviewed-by: Kinuko Yasuda <kinuko@chromium.org> Commit-Queue: John Abd-El-Malek <jam@chromium.org> Cr-Commit-Position: refs/heads/master@{#608599}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .