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:
Tom Tung 2019-09-02 21:17:14 +00:00
parent f950d9f8a9
commit 2ac78b7c79

View File

@ -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))) {