ChildProcessSecurityPolicy: only use granted schemes for requests
https://chromium-review.googlesource.com/c/chromium/src/+/1108485
This commit is contained in:
parent
4f540fe52a
commit
a7c687f160
1 changed files with 1 additions and 1 deletions
|
@ -1961,7 +1961,7 @@ v8::Local<v8::Value> WebContents::Debugger(v8::Isolate* isolate) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void WebContents::GrantOriginAccess(const GURL& url) {
|
void WebContents::GrantOriginAccess(const GURL& url) {
|
||||||
content::ChildProcessSecurityPolicy::GetInstance()->GrantOrigin(
|
content::ChildProcessSecurityPolicy::GetInstance()->GrantCommitOrigin(
|
||||||
web_contents()->GetMainFrame()->GetProcess()->GetID(),
|
web_contents()->GetMainFrame()->GetProcess()->GetID(),
|
||||||
url::Origin::Create(url));
|
url::Origin::Create(url));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue