From 16e224bb86318c6a9b96f2f0d5157898daa49a35 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 12 Jun 2015 16:23:26 +0800 Subject: [PATCH] Don't set browser_handles_all_top_level_requests POST requests currently can not be handled on browser side. Fix #1945. --- atom/browser/common_web_contents_delegate.cc | 7 ------- 1 file changed, 7 deletions(-) diff --git a/atom/browser/common_web_contents_delegate.cc b/atom/browser/common_web_contents_delegate.cc index eeb8d574..087205d3 100644 --- a/atom/browser/common_web_contents_delegate.cc +++ b/atom/browser/common_web_contents_delegate.cc @@ -16,7 +16,6 @@ #include "content/public/browser/child_process_security_policy.h" #include "content/public/browser/render_process_host.h" #include "content/public/browser/render_view_host.h" -#include "content/public/common/renderer_preferences.h" #include "storage/browser/fileapi/isolated_context.h" namespace atom { @@ -103,12 +102,6 @@ void CommonWebContentsDelegate::InitWithWebContents( owner_window_ = owner_window; web_contents->SetDelegate(this); - // Tell renderer to handle all navigations in browser. - auto preferences = web_contents->GetMutableRendererPrefs(); - preferences->browser_handles_non_local_top_level_requests = true; - preferences->browser_handles_all_top_level_requests = true; - web_contents->GetRenderViewHost()->SyncRendererPrefs(); - // Create InspectableWebContents. web_contents_.reset(brightray::InspectableWebContents::Create(web_contents)); web_contents_->SetDelegate(this); -- 2.43.0