🎨
This commit is contained in:
parent
78e0b80dc7
commit
c5e68ec165
1 changed files with 3 additions and 5 deletions
|
@ -110,12 +110,10 @@ class AtomRenderFrameObserver : public content::RenderFrameObserver {
|
||||||
|
|
||||||
void WillReleaseScriptContext(v8::Local<v8::Context> context,
|
void WillReleaseScriptContext(v8::Local<v8::Context> context,
|
||||||
int world_id) override {
|
int world_id) override {
|
||||||
if (isolated_world_) {
|
bool notify_client =
|
||||||
if (IsIsolatedWorld(world_id))
|
isolated_world_ ? IsIsolatedWorld(world_id) : IsMainWorld(world_id);
|
||||||
renderer_client_->WillReleaseScriptContext(context, render_frame_);
|
if (notify_client)
|
||||||
} else if (IsMainWorld(world_id)) {
|
|
||||||
renderer_client_->WillReleaseScriptContext(context, render_frame_);
|
renderer_client_->WillReleaseScriptContext(context, render_frame_);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnDestruct() override {
|
void OnDestruct() override {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue