mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 00:35:44 +00:00
f564eb1f40
The initial thought for getting the StartupCache out of the shutdown path was to simply not write it during shutdown, as it should write 60 seconds after startup, and the theory was that if the user shut down within the first 60 seconds of use, they were likely updating or something and it shouldn't matter. However, considering how many of our users only ever open one tab, I think it's rather likely that users are starting up firefox to go to a web site, then closing it when done with that website, and then maybe opening up a new instance in order to go to a different website. Accordingly it still makes sense to continue writing it. However, we may as well leverage a background thread for this and get it kicked off earlier during shutdown, so we don't sit there blocking in the destructor late during shutdown. Differential Revision: https://phabricator.services.mozilla.com/D62294 --HG-- extra : source : 7b7b147b6955cee07e0c115993446bfbd59cf7e2 extra : histedit_source : 6990122d6b1ac4939b0e4b0a5e452183fb981e19 |
||
---|---|---|
.. | ||
test | ||
moz.build | ||
StartupCache.cpp | ||
StartupCache.h | ||
StartupCacheUtils.cpp | ||
StartupCacheUtils.h |