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

Unified Diff: chrome/browser/prerender/prerender_manager.cc

Issue 2355023002: Preserving Content-Type header from http request in OpenURL path. (Closed)
Patch Set: Rebasing... Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/prerender/prerender_manager.cc
diff --git a/chrome/browser/prerender/prerender_manager.cc b/chrome/browser/prerender/prerender_manager.cc
index e4dfb19c7cef312817c55b56b2e27c23a1debc43..8e11f54c7b29a72a57688d3fe29eda5076a77e74 100644
--- a/chrome/browser/prerender/prerender_manager.cc
+++ b/chrome/browser/prerender/prerender_manager.cc
@@ -298,7 +298,10 @@ bool PrerenderManager::MaybeUsePrerenderedPage(const GURL& url,
WebContents* web_contents = params->target_contents;
DCHECK(!IsWebContentsPrerendering(web_contents, nullptr));
- // Don't prerender if the navigation involves some special parameters.
+ // Don't prerender if the navigation involves some special parameters that
+ // are different from what was used by PrerenderContents::StartPrerendering
+ // (which always uses GET method and doesn't specify any extra headers when
+ // calling content::NavigationController::LoadURLWithParams).
if (params->uses_post || !params->extra_headers.empty())
return false;
« no previous file with comments | « no previous file | content/browser/frame_host/navigator.h » ('j') | content/browser/frame_host/render_frame_host_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698