mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 1181871 P1 Only enforce Cache Context shared data destruction on target thread after init. r=ehsan
This commit is contained in:
parent
30ba8ce2c0
commit
7ff47213f8
6
dom/cache/Context.cpp
vendored
6
dom/cache/Context.cpp
vendored
@ -83,9 +83,9 @@ private:
|
|||||||
{
|
{
|
||||||
// We could proxy release our data here, but instead just assert. The
|
// We could proxy release our data here, but instead just assert. The
|
||||||
// Context code should guarantee that we are destroyed on the target
|
// 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
|
// thread once the connection is initialized. If we're not, then
|
||||||
// origin out from under us.
|
// QuotaManager might race and try to clear the origin out from under us.
|
||||||
MOZ_ASSERT(mTarget == NS_GetCurrentThread());
|
MOZ_ASSERT_IF(mConnection, mTarget == NS_GetCurrentThread());
|
||||||
}
|
}
|
||||||
|
|
||||||
nsCOMPtr<nsIThread> mTarget;
|
nsCOMPtr<nsIThread> mTarget;
|
||||||
|
Loading…
Reference in New Issue
Block a user