renderer: dont fork the process when there is server redirect
authorRobo <hop2deep@gmail.com>
Thu, 24 Dec 2015 20:49:56 +0000 (02:19 +0530)
committerRobo <hop2deep@gmail.com>
Thu, 24 Dec 2015 20:49:56 +0000 (02:19 +0530)
atom/renderer/atom_renderer_client.cc

index e0d4018..486aa2e 100644 (file)
@@ -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(