To reproduce:
1) chrome --enable-features=NetworkService on Linux
2) Go visit some webpages, e.g. www.cnn.com
3) Look at ~/.cache/chromium/Default/Cache and see it full of todelete_ files
The code actually calls base::DeleteFile on all these paths. base::DeleteFile calls some sort of lstat variant here:
https://cs.chromium.org/chromium/src/base/files/file_util_posix.cc?rcl=de31df46c99603235f83bbcdc7c8af1fbd62b5ff&l=382
gets ENOENT, and decides there is nothing more to do.
The problem goes away by disabling the network process sandbox via:
--- a/services/service_manager/sandbox/sandbox_type.cc
+++ b/services/service_manager/sandbox/sandbox_type.cc
@@ -16,6 +16,9 @@
namespace service_manager {
bool IsUnsandboxedSandboxType(SandboxType sandbox_type) {
+ if (sandbox_type == SANDBOX_TYPE_NETWORK)
+ return true;
(This is the proximate cause of bug 846702 )
Comment 1 by morlovich@chromium.org
, May 25 2018