Bug 1320888 - Fix an incorrect assert in dom/cache/ r=Ehsan
authorSylvestre Ledru <sledru@mozilla.com>
Tue, 29 Nov 2016 10:50:57 +0100
changeset 324875 9ed7aed4f033d79645dda143896bd26325e95094
parent 324874 8355901806763d6fc91abdf2a89a5f563f5966ac
child 324876 76b7a868d3a1879b58e44ac6e40856fe497d19f6
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +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);