feat: emit process 'loaded' event in sandboxed renderers (#17680)
This commit is contained in:
parent
127b87c713
commit
77d59e99b6
4 changed files with 25 additions and 4 deletions
|
@ -226,6 +226,10 @@ void AtomSandboxedRendererClient::DidCreateScriptContext(
|
|||
node::per_process::native_module_loader.CompileAndCall(
|
||||
isolate->GetCurrentContext(), "electron/js2c/preload_bundle",
|
||||
&preload_bundle_params, &preload_bundle_args, nullptr);
|
||||
|
||||
v8::HandleScope handle_scope(isolate);
|
||||
v8::Context::Scope context_scope(context);
|
||||
InvokeHiddenCallback(context, kLifecycleKey, "onLoaded");
|
||||
}
|
||||
|
||||
void AtomSandboxedRendererClient::SetupMainWorldOverrides(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue