ChildProcessSecurityPolicy: only use granted schemes for requests

https://chromium-review.googlesource.com/c/chromium/src/+/1108485
This commit is contained in:
Jeremy Apthorp 2018-10-02 12:01:04 -07:00
parent 4f540fe52a
commit a7c687f160

View file

@ -1961,7 +1961,7 @@ v8::Local<v8::Value> 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));
}