fix: browser contexts live forever (#24964)

This commit is contained in:
Jeremy Rose 2020-08-17 13:21:53 -07:00 committed by GitHub
parent befbbc27d8
commit bac2f46ba9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 68 additions and 73 deletions

View file

@ -553,6 +553,8 @@ void ElectronBrowserMainParts::PostMainMessageLoopRun() {
js_env_->OnMessageLoopDestroying();
node_env_.reset();
ElectronBrowserContext::browser_context_map().clear();
fake_browser_process_->PostMainMessageLoopRun();
content::DevToolsAgentHost::StopRemoteDebuggingPipeHandler();
}