From a7c687f160cadbd665b8a55cbfcf2affbbfe4428 Mon Sep 17 00:00:00 2001 From: Jeremy Apthorp Date: Tue, 2 Oct 2018 12:01:04 -0700 Subject: [PATCH] ChildProcessSecurityPolicy: only use granted schemes for requests https://chromium-review.googlesource.com/c/chromium/src/+/1108485 --- atom/browser/api/atom_api_web_contents.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atom/browser/api/atom_api_web_contents.cc b/atom/browser/api/atom_api_web_contents.cc index 629d6ecc60f9..86e563bcb30c 100644 --- a/atom/browser/api/atom_api_web_contents.cc +++ b/atom/browser/api/atom_api_web_contents.cc @@ -1961,7 +1961,7 @@ v8::Local WebContents::Debugger(v8::Isolate* isolate) { } void WebContents::GrantOriginAccess(const GURL& url) { - content::ChildProcessSecurityPolicy::GetInstance()->GrantOrigin( + content::ChildProcessSecurityPolicy::GetInstance()->GrantCommitOrigin( web_contents()->GetMainFrame()->GetProcess()->GetID(), url::Origin::Create(url)); }