There's currently EnsureTemporaryStorageIsInitializedInternal which can only be called on the QuotaManager IO thread. That method shouldn't be exposed to quota clients and origin operations. There should be a public method callable from the PBackground thread returning a MozPromise instead. Such method will guarantee that proper directory locking is acquired before temporary storage initialization is started. Differential Revision: https://phabricator.services.mozilla.com/D192135
83 KiB
83 KiB