Bug 1871409: Moved back mInitRunnable clearing in Context::OnQuotaInit to its prior position.r=janv

Differential Revision: https://phabricator.services.mozilla.com/D197155
This commit is contained in:
hsingh 2023-12-22 16:18:13 +00:00
parent 1e60549b5a
commit 49a424ae79

View File

@ -1035,6 +1035,9 @@ void Context::OnQuotaInit(
RefPtr<CipherKeyManager> aCipherKeyManager) {
NS_ASSERT_OWNINGTHREAD(Context);
MOZ_DIAGNOSTIC_ASSERT(mInitRunnable);
mInitRunnable = nullptr;
MOZ_DIAGNOSTIC_ASSERT(!mDirectoryMetadata);
mDirectoryMetadata = aDirectoryMetadata;
@ -1046,9 +1049,6 @@ void Context::OnQuotaInit(
MOZ_DIAGNOSTIC_ASSERT(!mCipherKeyManager);
mCipherKeyManager = std::move(aCipherKeyManager);
MOZ_DIAGNOSTIC_ASSERT(mInitRunnable);
mInitRunnable = nullptr;
// If we opening the context failed, but we were not explicitly canceled,
// still treat the entire context as canceled. We don't want to allow
// new actions to be dispatched. We also cannot leave the context in