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

Differential Revision: https://phabricator.services.mozilla.com/D90891
This commit is contained in:
Olli Pettay 2020-09-21 16:57:23 +00:00
Родитель 38efa6275a
Коммит 7a22246c6d
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -13214,7 +13214,8 @@ void nsDocShell::MoveLoadingToActiveEntry(bool aCommit) {
mActiveEntry = nullptr; mActiveEntry = nullptr;
mozilla::UniquePtr<mozilla::dom::LoadingSessionHistoryInfo> loadingEntry; mozilla::UniquePtr<mozilla::dom::LoadingSessionHistoryInfo> loadingEntry;
mActiveEntryIsLoadingFromSessionHistory = !!mLoadingEntry; mActiveEntryIsLoadingFromSessionHistory =
mLoadingEntry && mLoadingEntry->mLoadIsFromSessionHistory;
if (mLoadingEntry) { if (mLoadingEntry) {
MOZ_LOG(gSHLog, LogLevel::Debug, MOZ_LOG(gSHLog, LogLevel::Debug,
("Moving the loading entry to the active entry on nsDocShell %p " ("Moving the loading entry to the active entry on nsDocShell %p "