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)); }