Fix a crash by setting a flag to true.

This commit is contained in:
Pale Moon
2017-11-21 17:13:08 +01:00
committed by Roy Tam
parent 128051cf51
commit 9c9841e5f0
+3
View File
@@ -938,6 +938,9 @@ nsDocShell::~nsDocShell()
{
MOZ_ASSERT(!mProfileTimelineRecording);
// Avoid notifying observers while we're in the dtor.
mIsBeingDestroyed = true;
Destroy();
nsCOMPtr<nsISHistoryInternal> shPrivate(do_QueryInterface(mSessionHistory));