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

Issue 8785007: Prerenders that send an OpenURL are canceled. (Closed)

Created:
9 years ago by cbentzel
Modified:
9 years ago
Reviewers:
dominich, mmenke
CC:
chromium-reviews, tburkard+watch_chromium.org, cbentzel+watch_chromium.org, dominich+watch_chromium.org, mmenke
Visibility:
Public.

Description

Prerenders that send a ViewHostMsg_OpenURL are canceled with FINAL_STATUS_OPEN_URL. This message is sent when a navigation is initiated from a renderer but requires browser intervention, typically because a new render process will be created. Examples of where this happens are redirects from a "normal page" to a hosted app domain, or transitions from one origin to another when --enable-strict-site-isolation is specified. BUG=105972 TEST=Install YouTube app. Start Chrome with --prerender=enabled. Go to prerender-test.appspot.com, and prerender youtube.com. Click on it and www.youtube.com should appear. Check chrome://net-internals#prerender and make sure that the youtube prerender was canceled with OpenURL as the final status. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=113011

Patch Set 1 #

Patch Set 2 : Cancel on OpenURL #

Total comments: 5

Patch Set 3 : Fix comment and OVERRIDE #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -0 lines) Patch
M chrome/browser/prerender/prerender_contents.cc View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/browser/prerender/prerender_final_status.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/prerender/prerender_final_status.cc View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
cbentzel
I'm working on browser tests, but I'd like to get this behavior in for M17. ...
9 years ago (2011-12-04 21:40:25 UTC) #1
dominich
LGTM I'm curious to see how often this happens as it would be a shame ...
9 years ago (2011-12-05 14:40:41 UTC) #2
mmenke
LGTM http://codereview.chromium.org/8785007/diff/2001/chrome/browser/prerender/prerender_contents.cc File chrome/browser/prerender/prerender_contents.cc (right): http://codereview.chromium.org/8785007/diff/2001/chrome/browser/prerender/prerender_contents.cc#newcode92 chrome/browser/prerender/prerender_contents.cc:92: const OpenURLParams& params) { nit: OVERRIDE
9 years ago (2011-12-05 15:28:25 UTC) #3
cbentzel
I agree that we need to monitor how frequently this happens. Note that this doesn't ...
9 years ago (2011-12-05 15:30:21 UTC) #4
cbentzel
http://codereview.chromium.org/8785007/diff/2001/chrome/browser/prerender/prerender_contents.cc File chrome/browser/prerender/prerender_contents.cc (right): http://codereview.chromium.org/8785007/diff/2001/chrome/browser/prerender/prerender_contents.cc#newcode92 chrome/browser/prerender/prerender_contents.cc:92: const OpenURLParams& params) { On 2011/12/05 15:28:25, Matt Menke ...
9 years ago (2011-12-05 15:30:59 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cbentzel@chromium.org/8785007/9001
9 years ago (2011-12-05 18:00:14 UTC) #6
commit-bot: I haz the power
9 years ago (2011-12-05 20:30:24 UTC) #7
Change committed as 113011

Powered by Google App Engine
This is Rietveld 408576698