Initialize script context in DidClearWindowObject

Doing it in RunScriptsAtDocumentStart would somehow result in weird
results when webSecurity is off.
This commit is contained in:
Cheng Zhao 2016-05-30 14:56:31 +09:00
parent ce0d3d93ab
commit 6755aa44f6
2 changed files with 10 additions and 3 deletions

View file

@ -21,6 +21,7 @@ class AtomRendererClient : public content::ContentRendererClient {
AtomRendererClient();
virtual ~AtomRendererClient();
void DidClearWindowObject(content::RenderFrame* render_frame);
void DidCreateScriptContext(
v8::Handle<v8::Context> context, content::RenderFrame* render_frame);
void WillReleaseScriptContext(