FIXME: Remove SchemeRegistry::RegisterURLSchemeAsCORSEnabled
https://chromium-review.googlesource.com/c/chromium/src/+/1157364
This commit is contained in:
parent
ffeab383b5
commit
b5b49c9ed0
2 changed files with 3 additions and 2 deletions
|
@ -276,7 +276,9 @@ void WebFrame::RegisterURLSchemeAsPrivileged(const std::string& scheme,
|
|||
privileged_scheme);
|
||||
}
|
||||
if (corsEnabled) {
|
||||
blink::SchemeRegistry::RegisterURLSchemeAsCORSEnabled(privileged_scheme);
|
||||
// FIXME: blink::SchemeRegistry::RegisterURLSchemeAsCORSEnabled
|
||||
// is removed with C70
|
||||
// https://chromium-review.googlesource.com/c/chromium/src/+/1157364
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -153,7 +153,6 @@ void RendererClientBase::RenderThreadStarted() {
|
|||
// In Chrome we should set extension's origins to match the pages they can
|
||||
// work on, but in Electron currently we just let extensions do anything.
|
||||
blink::SchemeRegistry::RegisterURLSchemeAsSecure(extension_scheme);
|
||||
blink::SchemeRegistry::RegisterURLSchemeAsCORSEnabled(extension_scheme);
|
||||
blink::SchemeRegistry::RegisterURLSchemeAsBypassingContentSecurityPolicy(
|
||||
extension_scheme);
|
||||
|
||||
|
|
Loading…
Reference in a new issue