Skip to content
Commit 5b4806eb authored by Max Curran's avatar Max Curran Committed by Chromium LUCI CQ
Browse files

Update prefetch status to kPrefetchNotUsedCookiesChanged when

appropriate.

After the eligibility check is complete, a PrefetchCookieListener is
registered for eligible cross-site prefetches in order to ensure that
cookies are not added for the prefetch URL. If cookies are added, then
the prefetch cannot be served. This CL makes it so that when the
prefetch is blocked due to cookies having changed, the prefetch's status
is updated to kPrefetchNotUsedCookiesChanged. The CL also adds two tests
to cover all different cases where cookies changing are checked.

Bug: 1443037
Change-Id: Ie48a33997867c6aad55b4ca08b5bfa442368277d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4521866


Reviewed-by: default avatarRyan Sturm <ryansturm@chromium.org>
Commit-Queue: Max Curran <curranmax@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1149319}
parent 28bba1f2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment