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

Issue 6966016: Handle <link rel=prerender> in chrome. (Closed)

Created:
9 years, 7 months ago by gavinp
Modified:
9 years, 6 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, Jói, Nirnimesh, tburkard+watch_chromium.org, John Grabowski, Paweł Hajdan Jr., jam, anantha, darin-cc_chromium.org, dyu1, brettw-cc_chromium.org
Visibility:
Public.

Description

Handle <link rel=prerender> in chrome. This new link rel type is being used for the prerendering experiment instead of prefetch; this CL depends on webkit patch https://bugs.webkit.org/show_bug.cgi?id=61297 landing, but, together with that patch, chrome properly interprets and responds to link rel=prerender to launch prerendering. BUG=none TEST=PrerenderBrowserTest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86465

Patch Set 1 #

Total comments: 7

Patch Set 2 : remediate to reviews #

Total comments: 6

Patch Set 3 : tone down the over-aggressive search and replace... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -42 lines) Patch
M chrome/browser/prerender/prerender_browsertest.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/prerender/prerender_field_trial.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/prerender/prerender_manager.h View 4 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/prerender/prerender_manager.cc View 4 chunks +6 lines, -6 lines 0 comments Download
M chrome/renderer/page_load_histograms.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/test/data/prerender/prerender_infinite_a.html View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/prerender/prerender_infinite_a_multiple.html View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/test/data/prerender/prerender_infinite_b.html View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/prerender/prerender_infinite_b_multiple.html View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/prerender/prerender_infinite_c_multiple.html View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/prerender/prerender_loader.html View 1 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host.cc View 1 2 5 chunks +17 lines, -11 lines 0 comments Download
M content/common/common_param_traits.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/render_view.cc View 1 1 chunk +4 lines, -1 line 0 comments Download
M net/base/load_flags_list.h View 2 chunks +2 lines, -1 line 0 comments Download
M net/url_request/url_request_http_job.cc View 1 chunk +1 line, -1 line 0 comments Download
M webkit/glue/resource_type.h View 1 chunk +1 line, -0 lines 0 comments Download
M webkit/glue/weburlloader_impl.cc View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
gavinp
This version works if you patch the referenced webkit review into your webkit repo, otherwise ...
9 years, 7 months ago (2011-05-23 20:45:25 UTC) #1
cbentzel
Yes, this looks like it will work. http://codereview.chromium.org/6966016/diff/1/chrome/test/data/prerender/prerender_loader.html File chrome/test/data/prerender/prerender_loader.html (right): http://codereview.chromium.org/6966016/diff/1/chrome/test/data/prerender/prerender_loader.html#newcode22 chrome/test/data/prerender/prerender_loader.html:22: document.write('<link rel="prerender" ...
9 years, 7 months ago (2011-05-23 20:52:25 UTC) #2
mmenke
http://codereview.chromium.org/6966017/, which removes the prerendering code in ResourceDispatcherHost, will have some implications for this CL. ...
9 years, 7 months ago (2011-05-23 20:57:38 UTC) #3
dominich
http://codereview.chromium.org/6966016/diff/1/chrome/test/functional/prefetch.py File chrome/test/functional/prefetch.py (right): http://codereview.chromium.org/6966016/diff/1/chrome/test/functional/prefetch.py#newcode73 chrome/test/functional/prefetch.py:73: <link rel="prerender" href="static-prefetch-target.html"> Should this should remain as prefetch ...
9 years, 7 months ago (2011-05-23 21:00:03 UTC) #4
tburkard
LGTM On Mon, May 23, 2011 at 2:00 PM, <dominich@chromium.org> wrote: > > > http://codereview.chromium.org/6966016/diff/1/chrome/test/functional/prefetch.py ...
9 years, 7 months ago (2011-05-23 21:48:18 UTC) #5
gavinp
Thank you for the reviews. I hope this upload addresses your concerns. As well, Matt, ...
9 years, 7 months ago (2011-05-23 21:58:26 UTC) #6
gavinp
+darin for reviews from common/OWNERS and webkit/OWNERS . http://webkit-commit-queue.appspot.com/queue-status/commit-queue <-- the webkit patch on which ...
9 years, 7 months ago (2011-05-23 22:02:21 UTC) #7
mmenke
LGTM http://codereview.chromium.org/6966016/diff/1/content/browser/renderer_host/resource_dispatcher_host.cc File content/browser/renderer_host/resource_dispatcher_host.cc (right): http://codereview.chromium.org/6966016/diff/1/content/browser/renderer_host/resource_dispatcher_host.cc#newcode2029 content/browser/renderer_host/resource_dispatcher_host.cc:2029: // Prefetches & prerenders are at a lower ...
9 years, 7 months ago (2011-05-23 22:09:35 UTC) #8
cbentzel
http://codereview.chromium.org/6966016/diff/6001/chrome/test/data/login/prefetch.html File chrome/test/data/login/prefetch.html (left): http://codereview.chromium.org/6966016/diff/6001/chrome/test/data/login/prefetch.html#oldcode2 chrome/test/data/login/prefetch.html:2: <link rel="prefetch" href="/auth-basic/resource.gif"> I think this wants to stay ...
9 years, 7 months ago (2011-05-24 03:11:07 UTC) #9
darin (slow to review)
LGTM for content/ and webkit/
9 years, 7 months ago (2011-05-24 05:09:38 UTC) #10
gavinp
Thanks everyone! http://codereview.chromium.org/6966016/diff/6001/chrome/test/data/login/prefetch.html File chrome/test/data/login/prefetch.html (left): http://codereview.chromium.org/6966016/diff/6001/chrome/test/data/login/prefetch.html#oldcode2 chrome/test/data/login/prefetch.html:2: <link rel="prefetch" href="/auth-basic/resource.gif"> On 2011/05/24 03:11:07, cbentzel ...
9 years, 7 months ago (2011-05-24 13:02:52 UTC) #11
cbentzel
LGTM On Tue, May 24, 2011 at 9:02 AM, <gavinp@chromium.org> wrote: > Thanks everyone! > ...
9 years, 7 months ago (2011-05-24 13:05:20 UTC) #12
commit-bot: I haz the power
Try job failure for 6966016-1024 on mac: http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac&number=28587
9 years, 7 months ago (2011-05-24 16:15:09 UTC) #13
commit-bot: I haz the power
Try job failure for 6966016-1024 on linux: http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux&number=28273
9 years, 7 months ago (2011-05-24 17:31:25 UTC) #14
commit-bot: I haz the power
9 years, 7 months ago (2011-05-24 19:19:50 UTC) #15
Change committed as 86465

Powered by Google App Engine
This is Rietveld 408576698