Looking at a profile with enabled, the only thing that happens while waiting to shutdown is [HandleDirty](https://searchfox.org/mozilla-central/rev/815764d6f304cd69b60075e83b06320464a66223/modules/libpref/Preferences.cpp#3141-3145). I am not sure what is actually triggering that `HandleDirty` but it might be worth to understand if we can disable `sPreferences->AllowOffMainThreadSave()` for background tasks in order to avoid async surprises during shutdown here?
Bug 1832773 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Looking at a profile with [D177879](https://phabricator.services.mozilla.com/D177879) enabled, the only thing that happens while waiting to shutdown is [HandleDirty](https://searchfox.org/mozilla-central/rev/815764d6f304cd69b60075e83b06320464a66223/modules/libpref/Preferences.cpp#3141-3145). I am not sure what is actually triggering that `HandleDirty` but it might be worth to understand if we can disable `sPreferences->AllowOffMainThreadSave()` for background tasks in order to avoid async surprises during shutdown here?