Bug 775206. r=bent

This commit is contained in:
Kyle Huey 2012-08-09 18:06:21 -07:00
parent ec32390333
commit 691ade3847

View File

@ -278,6 +278,8 @@ IDBDatabase::CloseInternal(bool aIsDead)
NS_ASSERTION(NS_IsMainThread(), "Wrong thread!");
if (!mClosed) {
mClosed = true;
// If we're getting called from Unlink, avoid cloning the DatabaseInfo.
{
nsRefPtr<DatabaseInfo> previousInfo;
@ -300,8 +302,6 @@ IDBDatabase::CloseInternal(bool aIsDead)
NS_ASSERTION(!IndexedDatabaseManager::IsMainProcess(), "Wrong process!");
mActorChild->SendClose(aIsDead);
}
mClosed = true;
}
}