fix: ensure webcontents is destroyed before its associated browser context.

This commit is contained in:
deepak1556 2018-10-09 02:59:58 +05:30 committed by Jeremy Apthorp
parent a71755e1b6
commit 363aafc25b
4 changed files with 34 additions and 3 deletions

View 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
}