mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 16:55:40 +00:00
Bug 1348682 - Check if it's shutting down at the beginning of the State::FinishOpen; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D44314 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
f950d9f8a9
commit
2ac78b7c79
@ -19681,6 +19681,12 @@ nsresult FactoryOp::FinishOpen() {
|
||||
MOZ_ASSERT(mState == State::FinishOpen);
|
||||
MOZ_ASSERT(!mContentParent);
|
||||
|
||||
if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread()) ||
|
||||
IsActorDestroyed()) {
|
||||
IDB_REPORT_INTERNAL_ERR();
|
||||
return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
|
||||
}
|
||||
|
||||
if (QuotaManager::Get()) {
|
||||
nsresult rv = OpenDirectory();
|
||||
if (NS_WARN_IF(NS_FAILED(rv))) {
|
||||
|
Loading…
Reference in New Issue
Block a user