Bug 1666010 - Ensure nsDocShell::mActiveEntryIsLoadingFromSessionHistory value is set correctly r=nika

Differential Revision: https://phabricator.services.mozilla.com/D90751
This commit is contained in:
Olli Pettay
2020-09-18 20:29:52 +00:00
parent 61ac2461b8
commit 66e12c9497

View File

@@ -5702,7 +5702,8 @@ nsresult nsDocShell::Embed(nsIContentViewer* aContentViewer,
MOZ_LOG(gSHLog, LogLevel::Debug, ("document %p Embed", this));
mActiveEntry = nullptr;
mozilla::UniquePtr<mozilla::dom::LoadingSessionHistoryInfo> loadingEntry;
mActiveEntryIsLoadingFromSessionHistory = !!mLoadingEntry;
mActiveEntryIsLoadingFromSessionHistory =
mLoadingEntry && mLoadingEntry->mLoadIsFromSessionHistory;
if (mLoadingEntry) {
mActiveEntry = MakeUnique<SessionHistoryInfo>(mLoadingEntry->mInfo);
mLoadingEntry.swap(loadingEntry);