Lookalikes: Handle WillProcessResponse instead of WillStartRequest
This CL is effectively a revert of crrev.com/c/1526806. That commit changed the implementation of the lookalike URL navigation throttle to observe WillStartRequest() instead of WillProcessResponse. As a result, the throttle was no longer able to see the redirect chain and did not have a way of allowing certain safe redirects such as elespañol[.]com to elespanol[.]com. This CL goes back to using WillProcesResponse(). Doing this gives WillRedirectRequest() a chance to run and lets the throttle observe the redirect chain. Follow up CLs will allow safe redirects. Bug: 986404 Change-Id: I9b41b9b2c29e12120a0ecb2af6c50d283e915458 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1713445Reviewed-by:Joe DeBlasio <jdeblasio@chromium.org> Commit-Queue: Mustafa Emre Acer <meacer@chromium.org> Cr-Commit-Position: refs/heads/master@{#680260}
Showing
Please register or sign in to comment