• Joe DeBlasio's avatar
    [Lookalikes] Change how the lookalike interstitial handles redirects · a42bdc1e
    Joe DeBlasio authored
    This CL changes what domains we consider for the lookalike interstitial.
    Previously, if Chrome saw a navigation that looked like
        A -> B -> C -> D
    (where site A is redirecting to B, etc.), the lookalike logic would
    inspect each stage, A through D, for lookalikes. It accomplished this by
    implementing DidRedirectNavigation() and DidFinishNavigation(). This
    added a bunch of complexity, but allowed us to stop a navigation
    mid-redirect.
    
    This CL changes that behavior to wait until the entire redirect chain
    has completed, and then inspect only sites A and D. These domains are
    the only ones visible to the user, and thus the only ones wherein a
    lookalike URL might be effective. This change also means that we no
    longer implement DidRedirectNavigation().
    
    Bug: 1092690
    Change-Id: I2cfa724b9793b60dd5200d1bf6847cc6919fa469
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2438888Reviewed-by: default avatarLivvie Lin <livvielin@chromium.org>
    Reviewed-by: default avatarMustafa Emre Acer <meacer@chromium.org>
    Commit-Queue: Joe DeBlasio <jdeblasio@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#812173}
    a42bdc1e
lookalike_url_navigation_throttle.h 3.33 KB