Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Issue 2554573012: Fix early prerender cancellation not working with PlzNavigate. (Closed)

Created:
4 years ago by jam
Modified:
4 years ago
Reviewers:
pasko, davidben
CC:
chromium-reviews, tburkard+watch_chromium.org, gavinp+prer_chromium.org, cbentzel+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix early prerender cancellation not working with PlzNavigate. With PlzNavigate the navigation starts in the browser, so LaunchAppWithUrl cancels the prerender before we get the PrerenderHostMsg_AddLinkRelPrerender IPC from the renderer. Fix this by noticing that the prerender was already cancelled when the IPC arrives. This fixes PlatformAppUrlRedirectorBrowserTest.PrerenderedClickInTabIntercepted with PlzNavigate. BUG=504347 Committed: https://crrev.com/e54c55a96737caf4a3c435dac442fe77122ff33e Cr-Commit-Position: refs/heads/master@{#437633}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -15 lines) Patch
M chrome/browser/prerender/prerender_contents.h View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/prerender/prerender_handle.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/prerender/prerender_link_manager.cc View 2 chunks +14 lines, -10 lines 0 comments Download

Messages

Total messages: 17 (10 generated)
jam
4 years ago (2016-12-08 23:00:09 UTC) #5
davidben
lgtm. +pasko FYI. Right, this is the ridiculous thing where prerenders are destroyed a PostTask ...
4 years ago (2016-12-09 19:26:10 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2554573012/1
4 years ago (2016-12-09 19:32:49 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-12-09 20:42:25 UTC) #13
pasko
lgtm On 2016/12/09 19:26:10, davidben wrote: > lgtm. +pasko FYI. > > Right, this is ...
4 years ago (2016-12-12 13:46:30 UTC) #14
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/e54c55a96737caf4a3c435dac442fe77122ff33e Cr-Commit-Position: refs/heads/master@{#437633}
4 years ago (2016-12-12 14:40:10 UTC) #16
davidben
4 years ago (2016-12-12 16:45:28 UTC) #17
Message was sent while issue was closed.
On 2016/12/12 13:46:30, pasko wrote:
> lgtm
> 
> On 2016/12/09 19:26:10, davidben wrote:
> > lgtm. +pasko FYI.
> > 
> > Right, this is the ridiculous thing where prerenders are destroyed a
PostTask
> > later, isn't it?
> 
> Yes, the multi-stage process of killing prerenders is not fully transparent to
> me. I guess it is remnants of trying to keep prerenders for longer in various
> old experiments.

I think it's also to hack around some reentrancy bugs. I hope the plan is to
still remove all of this code?

Powered by Google App Engine
This is Rietveld 408576698