Safety Tips: add lookalike heuristic checking.
This CL adds lookalike heuristic checking to safety tips. A safety tip is only triggered when a lookalike domain is identified, but an interstitial would NOT be triggered. In practice, this means a safety tip is triggered when: - there's an edit distance of 1 to a top or engaged domain, or - there's skeleton similarity to a non-top-500 top domain. This CL also tidies the logic in lookalikes slightly. Now Chrome identifies lookalikes first and as a separate step decides whether to display an interstitial. Both functions are used when determining whether to trigger a safety tip, so as interstitialling logic changes, safety tips will move out of the way appropriately. Bug: 984725, 996733 Change-Id: I590f6d707a5347d55fb48e71e1420434b14bccb7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1771940 Commit-Queue: Joe DeBlasio <jdeblasio@chromium.org> Reviewed-by:Emily Stark <estark@chromium.org> Cr-Commit-Position: refs/heads/master@{#690940}
Showing
This diff is collapsed.
This diff is collapsed.
Please register or sign in to comment