зеркало из https://github.com/mozilla/pjs.git
Bug 700685: DeleteDatabaseHelper releases objects on the wrong thread. r=bent
This commit is contained in:
Родитель
f6714f779c
Коммит
025c952e95
|
@ -537,7 +537,7 @@ public:
|
|||
const nsAString& aName,
|
||||
const nsACString& aASCIIOrigin)
|
||||
: AsyncConnectionHelper(static_cast<IDBDatabase*>(nsnull), aRequest),
|
||||
mOpenRequest(aRequest), mOpenHelper(aHelper),
|
||||
mOpenHelper(aHelper), mOpenRequest(aRequest),
|
||||
mCurrentVersion(aCurrentVersion), mName(aName),
|
||||
mASCIIOrigin(aASCIIOrigin)
|
||||
{ }
|
||||
|
@ -545,6 +545,14 @@ public:
|
|||
nsresult GetSuccessResult(JSContext* aCx,
|
||||
jsval* aVal);
|
||||
|
||||
void ReleaseMainThreadObjects()
|
||||
{
|
||||
mOpenHelper = nsnull;
|
||||
mOpenRequest = nsnull;
|
||||
|
||||
AsyncConnectionHelper::ReleaseMainThreadObjects();
|
||||
}
|
||||
|
||||
protected:
|
||||
nsresult DoDatabaseWork(mozIStorageConnection* aConnection);
|
||||
nsresult Init();
|
||||
|
|
Загрузка…
Ссылка в новой задаче