• Joe DeBlasio's avatar
    [Lookalikes] Ensure TE length checks apply to no-separator matches. · 6ad8400f
    Joe DeBlasio authored
    This CL ensures that target embedding matches against no-separator top
    domains (e.g. "googlecom.example.com") don't trigger if they are too
    short. It also ensures that these embedded domains are properly checked
    for common words and checked against the target allowlist. In doing
    this, it also stops a DCHECK from triggering when a user visited a
    domain like "googlecom.example.com" (instead of
    "www.googlecom.example.com").
    
    Bug: 1126146, 1127450
    Change-Id: I19e0f5735240fad85ea7079c8905e95d2744ac2a
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2416266
    Commit-Queue: Joe DeBlasio <jdeblasio@chromium.org>
    Auto-Submit: Joe DeBlasio <jdeblasio@chromium.org>
    Reviewed-by: default avatarMustafa Emre Acer <meacer@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#808174}
    6ad8400f
lookalike_url_navigation_throttle_browsertest.cc 57.1 KB