Skip to content
Commit e1cddc1f authored by Sreeja Kamishetty's avatar Sreeja Kamishetty Committed by Chromium LUCI CQ
Browse files

Prerender: Support activation during ongoing main-frame navigation

This CL adds a new PrerenderCommitDeferringCondition to add
a mechanism to block activation until the ongoing main-frame
navigation commits.

We use WebContentsObserver to track the navigation to conditionally
resume the PrerenderCommitDeferringCondition after commit.

This work assumes no new navigations occur between the check inside
the PrerenderCommitDeferringCondition and the actual activation commit.

BUG= 1212656

Change-Id: I1b843d6ae4b1e65cd4f1fd25cfb5a027bf4d0e88
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2837757


Commit-Queue: Sreeja Kamishetty <sreejakshetty@chromium.org>
Reviewed-by: default avatarAlexander Timin <altimin@chromium.org>
Reviewed-by: default avatarTakashi Toyoshima <toyoshim@chromium.org>
Reviewed-by: default avatarMatt Falkenhagen <falken@chromium.org>
Reviewed-by: default avatarDavid Bokan <bokan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#886219}
parent f9df464e
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