renderer: dont fork the process when there is server redirect

This commit is contained in:
Robo 2015-12-25 02:19:56 +05:30
parent f5a093db58
commit ab9d1bf97e

View file

@ -194,7 +194,7 @@ bool AtomRendererClient::ShouldFork(blink::WebLocalFrame* frame,
// the OpenURLFromTab is triggered, which means form posting would not work, // the OpenURLFromTab is triggered, which means form posting would not work,
// we should solve this by patching Chromium in future. // we should solve this by patching Chromium in future.
*send_referrer = true; *send_referrer = true;
return http_method == "GET"; return http_method == "GET" && !is_server_redirect;
} }
content::BrowserPluginDelegate* AtomRendererClient::CreateBrowserPluginDelegate( content::BrowserPluginDelegate* AtomRendererClient::CreateBrowserPluginDelegate(