fix: emit will-navigate for sandboxed contents (#22188)

This commit is contained in:
Jeremy Apthorp 2020-02-21 11:08:26 -08:00 committed by GitHub
parent 8045152e59
commit a25d7fa440
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 187 additions and 104 deletions

View file

@ -291,4 +291,12 @@ void ElectronSandboxedRendererClient::WillReleaseScriptContext(
InvokeHiddenCallback(context, kLifecycleKey, "onExit");
}
bool ElectronSandboxedRendererClient::ShouldFork(blink::WebLocalFrame* frame,
const GURL& url,
const std::string& http_method,
bool is_initial_navigation,
bool is_server_redirect) {
return true;
}
} // namespace electron