Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
subresource_filter: fix possible file IO on main thread
subresource-filter makes use of PostTaskAndReplyWithResult() to open a background file and then do some processing back on the main thread. This pattern can lead to file IO on the main thread during shutdown. In particular, if the file openning has completed, and shutdown starts, then the result callback is not run and the file is destroyed on the main thread. This results in file io on the main thread during shutdown. For whatever reason, WebLayer browser_tests on the android-p builder seem particularly susceptible to this, and have been disabled because they trip over it regularly. BUG=1182000 TEST=none Change-Id: Iefa701896e8d3a1be7b808af3c53277368ed322d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2724861 Commit-Queue: Scott Violet <sky@chromium.org> Reviewed-by: Josh Karlin <jkarlin@chromium.org> Cr-Commit-Position: refs/heads/master@{#859139}
- Loading branch information
Scott Violet
authored and
Chromium LUCI CQ
committed
Mar 2, 2021
1 parent
b7aa8e0
commit 5bfbe31
Showing
11 changed files
with
130 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.