2018-10-24 18:24:11 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: deepak1556 <hop2deep@gmail.com>
|
|
|
|
Date: Thu, 18 Oct 2018 17:07:42 -0700
|
|
|
|
Subject: content_browser_main_loop.patch
|
|
|
|
|
|
|
|
Pass idle quit closure for main message loop, so that pending tasks are
|
|
|
|
run before shutdown. This is required to cleanup WebContents asynchronously
|
2020-11-10 17:06:56 +00:00
|
|
|
in electron::api::WebContents::ResetManagedWebContents.
|
2018-10-24 18:24:11 +00:00
|
|
|
|
2018-10-08 21:29:58 +00:00
|
|
|
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
|
2021-01-12 23:31:23 +00:00
|
|
|
index 80b679406ee9f24b9ef3669b0274bb467dd0a02d..bed72ab5ba6b116c081054c2424831bbc7cc9bbd 100644
|
2018-10-08 21:29:58 +00:00
|
|
|
--- a/content/browser/browser_main_loop.cc
|
|
|
|
+++ b/content/browser/browser_main_loop.cc
|
2021-01-12 23:31:23 +00:00
|
|
|
@@ -1409,7 +1409,7 @@ void BrowserMainLoop::MainMessageLoopRun() {
|
2019-07-03 01:22:09 +00:00
|
|
|
NOTREACHED();
|
|
|
|
#else
|
2018-10-08 21:29:58 +00:00
|
|
|
base::RunLoop run_loop;
|
|
|
|
- parts_->PreDefaultMainMessageLoopRun(run_loop.QuitClosure());
|
|
|
|
+ parts_->PreDefaultMainMessageLoopRun(run_loop.QuitWhenIdleClosure());
|
|
|
|
run_loop.Run();
|
|
|
|
#endif
|
|
|
|
}
|