Bug 1320888 - Fix an incorrect assert in dom/cache/ r?ehsan draft
authorSylvestre Ledru <sledru@mozilla.com>
Tue, 29 Nov 2016 10:50:57 +0100
changeset 445194 d919bbfff7f23684e10a68b3fae54d8f73a2f867
parent 445170 37c24642cbf140793f57b92f511e291fdea88039
child 445201 4fcc4639733ef9de7528605e761c934363d87d84
push id37459
push usersledru@mozilla.com
push dateTue, 29 Nov 2016 09:51:37 +0000
reviewersehsan
bugs1320888
milestone53.0a1
Bug 1320888 - Fix an incorrect assert in dom/cache/ r?ehsan MozReview-Commit-ID: KYemidcoGS8
dom/cache/Context.cpp
--- 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);