mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-24 19:37:15 +00:00
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:
parent
1e60549b5a
commit
49a424ae79
6
dom/cache/Context.cpp
vendored
6
dom/cache/Context.cpp
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user