Don't set browser_handles_all_top_level_requests
POST requests currently can not be handled on browser side. Fix #1945.
This commit is contained in:
parent
459d389e03
commit
16e224bb86
1 changed files with 0 additions and 7 deletions
|
@ -16,7 +16,6 @@
|
||||||
#include "content/public/browser/child_process_security_policy.h"
|
#include "content/public/browser/child_process_security_policy.h"
|
||||||
#include "content/public/browser/render_process_host.h"
|
#include "content/public/browser/render_process_host.h"
|
||||||
#include "content/public/browser/render_view_host.h"
|
#include "content/public/browser/render_view_host.h"
|
||||||
#include "content/public/common/renderer_preferences.h"
|
|
||||||
#include "storage/browser/fileapi/isolated_context.h"
|
#include "storage/browser/fileapi/isolated_context.h"
|
||||||
|
|
||||||
namespace atom {
|
namespace atom {
|
||||||
|
@ -103,12 +102,6 @@ void CommonWebContentsDelegate::InitWithWebContents(
|
||||||
owner_window_ = owner_window;
|
owner_window_ = owner_window;
|
||||||
web_contents->SetDelegate(this);
|
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.
|
// Create InspectableWebContents.
|
||||||
web_contents_.reset(brightray::InspectableWebContents::Create(web_contents));
|
web_contents_.reset(brightray::InspectableWebContents::Create(web_contents));
|
||||||
web_contents_->SetDelegate(this);
|
web_contents_->SetDelegate(this);
|
||||||
|
|
Loading…
Reference in a new issue