renderer: dont fork the process when there is server redirect

This commit is contained in:
Robo 2015-12-25 02:19:56 +05:30
Родитель f5a093db58
Коммит ab9d1bf97e
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

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