Bug 1439022 r=baku

MozReview-Commit-ID: HSKAPIXUrtz
This commit is contained in:
Thomas Wisniewski
2018-02-21 22:20:37 -05:00
parent 9260b212cd
commit bd673fd951
2 changed files with 9 additions and 1 deletions

View File

@@ -235,7 +235,10 @@ XMLHttpRequestMainThread::~XMLHttpRequestMainThread()
Abort();
}
mParseEndListener = nullptr;
if (mParseEndListener) {
mParseEndListener->SetIsStale();
mParseEndListener = nullptr;
}
MOZ_ASSERT(!mFlagSyncLooping, "we rather crash than hang");
mFlagSyncLooping = false;