fix: use context counter as contextId
For sandboxed renderer it may not have a node::Environment in the context, using a increasing counter as contextId works for all cases.
This commit is contained in:
parent
9acfe34286
commit
e2029435c4
10 changed files with 67 additions and 24 deletions
|
@ -21,7 +21,7 @@ class RendererClientBase : public content::ContentRendererClient {
|
|||
~RendererClientBase() override;
|
||||
|
||||
virtual void DidCreateScriptContext(v8::Handle<v8::Context> context,
|
||||
content::RenderFrame* render_frame) = 0;
|
||||
content::RenderFrame* render_frame);
|
||||
virtual void WillReleaseScriptContext(v8::Handle<v8::Context> context,
|
||||
content::RenderFrame* render_frame) = 0;
|
||||
virtual void DidClearWindowObject(content::RenderFrame* render_frame);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue