refactor: avoid deprecated v8::Context::GetIsolate() calls pt 3 context get isolate pt 3 (#47910)
* refactor: add a v8::Isolate* arg to RendererClientBase::IsWebViewFrame() Needed for creating gin dictionaries refactor: add a v8::Isolate* arg to ShouldLoadPreload() Needed for calling IsWebViewFrame() Co-authored-by: Charles Kerr <charles@charleskerr.com> * refactor: add a v8::Isolate* arg to electron::util::CompileAndCall() Co-authored-by: Charles Kerr <charles@charleskerr.com> * refactor: add a v8::Isolate* arg to OnCreatePreloadableV8Context() Co-authored-by: Charles Kerr <charles@charleskerr.com> * refactor: add a v8::Isolate* arg to InvokeEmitProcessEvent() Co-authored-by: Charles Kerr <charles@charleskerr.com> * refactor: add a v8::Isolate* arg to ServiceWorkerData's constructor Co-authored-by: Charles Kerr <charles@charleskerr.com> * refactor: add a v8::Isolate* arg to RendererClientBase::SetupMainWorldOverrides() Co-authored-by: Charles Kerr <charles@charleskerr.com> * refactor: add a v8::Isolate* arg to RendererClientBase::WilLReleaseScriptContext() Co-authored-by: Charles Kerr <charles@charleskerr.com> * docs: update docs to avoid v8::Context::GetIsolate() Co-authored-by: Charles Kerr <charles@charleskerr.com> * refactor: add a v8::Isolate* arg to ElectronSandboxedRendererClient::InitializeBindings() Co-authored-by: Charles Kerr <charles@charleskerr.com> * refactor: avoid v8::Context::GetIsolate() call in PromiseBase::SettleScope::~SettleScope() Co-authored-by: Charles Kerr <charles@charleskerr.com> --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
parent
9b1dfe90f4
commit
f2d14ca29d
17 changed files with 73 additions and 55 deletions
|
@ -32,7 +32,8 @@ class ElectronRendererClient : public RendererClientBase {
|
|||
void DidCreateScriptContext(v8::Isolate* isolate,
|
||||
v8::Local<v8::Context> context,
|
||||
content::RenderFrame* render_frame) override;
|
||||
void WillReleaseScriptContext(v8::Local<v8::Context> context,
|
||||
void WillReleaseScriptContext(v8::Isolate* isolate,
|
||||
v8::Local<v8::Context> context,
|
||||
content::RenderFrame* render_frame) override;
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue