fix: ensure webcontents is destroyed before its associated browser context.
This commit is contained in:
parent
a71755e1b6
commit
363aafc25b
4 changed files with 34 additions and 3 deletions
13
patches/common/chromium/content_browser_main_loop.patch
Normal file
13
patches/common/chromium/content_browser_main_loop.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
|
||||
index eb942391306e..9111cf18b7fc 100644
|
||||
--- a/content/browser/browser_main_loop.cc
|
||||
+++ b/content/browser/browser_main_loop.cc
|
||||
@@ -1571,7 +1571,7 @@ void BrowserMainLoop::MainMessageLoopRun() {
|
||||
}
|
||||
|
||||
base::RunLoop run_loop;
|
||||
- parts_->PreDefaultMainMessageLoopRun(run_loop.QuitClosure());
|
||||
+ parts_->PreDefaultMainMessageLoopRun(run_loop.QuitWhenIdleClosure());
|
||||
run_loop.Run();
|
||||
#endif
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue