• Mustafa Emre Acer's avatar
    Lookalikes: Handle WillProcessResponse instead of WillStartRequest · 26fb902e
    Mustafa Emre Acer authored
    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: default avatarJoe DeBlasio <jdeblasio@chromium.org>
    Commit-Queue: Mustafa Emre Acer <meacer@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#680260}
    26fb902e
lookalike_url_navigation_throttle.h 4.21 KB