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

@ -37,6 +37,11 @@ class ElectronSandboxedRendererClient : public RendererClientBase {
void RenderViewCreated(content::RenderView*) override;
void RunScriptsAtDocumentStart(content::RenderFrame* render_frame) override;
void RunScriptsAtDocumentEnd(content::RenderFrame* render_frame) override;
bool ShouldFork(blink::WebLocalFrame* frame,
const GURL& url,
const std::string& http_method,
bool is_initial_navigation,
bool is_server_redirect) override;
private:
std::unique_ptr<base::ProcessMetrics> metrics_;