Bug 1181871 P1 Only enforce Cache Context shared data destruction on target thread after init. r=ehsan

This commit is contained in:
Ben Kelly 2015-07-10 13:56:06 -07:00
parent 30ba8ce2c0
commit 7ff47213f8

View File

@ -83,9 +83,9 @@ private:
{
// We could proxy release our data here, but instead just assert. The
// Context code should guarantee that we are destroyed on the target
// thread. If we're not, then QuotaManager might race and try to clear the
// origin out from under us.
MOZ_ASSERT(mTarget == NS_GetCurrentThread());
// thread once the connection is initialized. If we're not, then
// QuotaManager might race and try to clear the origin out from under us.
MOZ_ASSERT_IF(mConnection, mTarget == NS_GetCurrentThread());
}
nsCOMPtr<nsIThread> mTarget;