refactor: remove renderer-side refcount in remote (#24054)
This commit is contained in:
parent
81d09bea44
commit
78fe545d18
9 changed files with 8 additions and 50 deletions
|
@ -1228,12 +1228,10 @@ void WebContents::MessageHost(const std::string& channel,
|
|||
|
||||
#if BUILDFLAG(ENABLE_REMOTE_MODULE)
|
||||
void WebContents::DereferenceRemoteJSObject(const std::string& context_id,
|
||||
int object_id,
|
||||
int ref_count) {
|
||||
int object_id) {
|
||||
base::ListValue args;
|
||||
args.Append(context_id);
|
||||
args.Append(object_id);
|
||||
args.Append(ref_count);
|
||||
EmitWithSender("-ipc-message", bindings_.dispatch_context(), InvokeCallback(),
|
||||
/* internal */ true, "ELECTRON_BROWSER_DEREFERENCE",
|
||||
std::move(args));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue