From 49a424ae7941e69c9e591c2f092c0a7786cfd4ac Mon Sep 17 00:00:00 2001 From: hsingh Date: Fri, 22 Dec 2023 16:18:13 +0000 Subject: [PATCH] Bug 1871409: Moved back mInitRunnable clearing in Context::OnQuotaInit to its prior position.r=janv Differential Revision: https://phabricator.services.mozilla.com/D197155 --- dom/cache/Context.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dom/cache/Context.cpp b/dom/cache/Context.cpp index 888226e4f654..17d60269e91a 100644 --- a/dom/cache/Context.cpp +++ b/dom/cache/Context.cpp @@ -1035,6 +1035,9 @@ void Context::OnQuotaInit( RefPtr 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