mirror of
https://github.com/HackPlan/atom-shell.git
synced 2026-04-29 04:05:37 +08:00
Release render view's remote objects when it's deleted.
Privously we release them when the window is unloaded, which is not correct since a render view can have multiple windows (or js contexts) and when the unload event is emitted the render view could already have gone. This PR does the cleaning work purely in browser, so here is no need to worry about renderer's life time.
This commit is contained in:
@@ -43,6 +43,7 @@ class Window : public EventEmitter,
|
||||
virtual void OnWindowBlur() OVERRIDE;
|
||||
virtual void OnRendererUnresponsive() OVERRIDE;
|
||||
virtual void OnRendererResponsive() OVERRIDE;
|
||||
virtual void OnRenderViewDeleted() OVERRIDE;
|
||||
virtual void OnRendererCrashed() OVERRIDE;
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user