diff options
Diffstat (limited to 'content/renderer/render_view.cc')
-rw-r--r-- | content/renderer/render_view.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/content/renderer/render_view.cc b/content/renderer/render_view.cc index 4cbe162..a7c5f8f1 100644 --- a/content/renderer/render_view.cc +++ b/content/renderer/render_view.cc @@ -2572,7 +2572,10 @@ void RenderView::willSendRequest( if (top_data_source) { NavigationState* state = NavigationState::FromDataSource(top_data_source); - if (state && request.targetType() == WebURLRequest::TargetIsPrefetch) + // TODO(gavinp): separate out prefetching and prerender field trials + // if the rel=prerender rel type is sticking around. + if (state && (request.targetType() == WebURLRequest::TargetIsPrefetch || + request.targetType() == WebURLRequest::TargetIsPrerender)) state->set_was_prefetcher(true); } |