Bug 1320888 - Fix an incorrect assert in dom/cache/ r?ehsan
MozReview-Commit-ID: KYemidcoGS8
--- a/dom/cache/Context.cpp
+++ b/dom/cache/Context.cpp
@@ -866,17 +866,17 @@ Context::Dispatch(Action* aAction)
return;
} else if (mState == STATE_CONTEXT_INIT ||
mState == STATE_CONTEXT_PREINIT) {
PendingAction* pending = mPendingActions.AppendElement();
pending->mAction = aAction;
return;
}
- MOZ_ASSERT(STATE_CONTEXT_READY);
+ MOZ_ASSERT(mState == STATE_CONTEXT_READY);
DispatchAction(aAction);
}
void
Context::CancelAll()
{
NS_ASSERT_OWNINGTHREAD(Context);