fix: remove memory leak when using webFrame and spell checker (#16770)

* fix: do not create native api::WebFrame in webFrame

When reloading a page without restarting renderer process (for example
sandbox mode), the blink::WebFrame is not destroyed, but api::WebFrame
is always recreated for the new page context. This leaves a leak of
api::WebFrame.

* fix: remove spell checker when page context is released
This commit is contained in:
Cheng Zhao 2019-02-09 06:38:31 +09:00 committed by Samuel Attard
parent 3f52e18a38
commit d16b581140
5 changed files with 354 additions and 348 deletions

View file

@ -644,7 +644,6 @@ filenames = {
"atom/renderer/api/atom_api_spell_check_client.cc",
"atom/renderer/api/atom_api_spell_check_client.h",
"atom/renderer/api/atom_api_web_frame.cc",
"atom/renderer/api/atom_api_web_frame.h",
"atom/renderer/atom_autofill_agent.cc",
"atom/renderer/atom_autofill_agent.h",
"atom/renderer/atom_render_frame_observer.cc",