Bug 1679418 - Fix test_bug1300461.html failure for Fission. r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D99711
This commit is contained in:
Peter Van der Beken 2020-12-14 21:04:00 +00:00
Родитель d841c6145f
Коммит 1d908096c5
2 изменённых файлов: 4 добавлений и 2 удалений

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

@ -424,18 +424,21 @@ CanonicalBrowsingContext::ReplaceLoadingSessionHistoryEntryForLoad(
}
newEntry->SetDocshellID(GetHistoryID());
newEntry->SetIsDynamicallyAdded(CreatedDynamically());
newEntry->SetForInitialLoad(true);
// Replacing the old entry.
SessionHistoryEntry::SetByLoadId(aInfo->mLoadId, newEntry);
bool forInitialLoad = true;
for (size_t i = 0; i < mLoadingEntries.Length(); ++i) {
if (mLoadingEntries[i].mLoadId == aInfo->mLoadId) {
forInitialLoad = mLoadingEntries[i].mEntry->ForInitialLoad();
mLoadingEntries[i].mEntry = newEntry;
break;
}
}
newEntry->SetForInitialLoad(forInitialLoad);
return MakeUnique<LoadingSessionHistoryInfo>(newEntry, aInfo->mLoadId);
}

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

@ -102,7 +102,6 @@ skip-if = verify && (os == 'mac') && debug && webrender # Hit MOZ_CRASH(Shutdown
skip-if = fission # It relies on the bfcache
[test_bug1609475.html]
[test_bug1300461.html]
skip-if = fission
[test_bug1326251.html]
skip-if = toolkit == 'android' || fission # It relies on the bfcache
[test_bug1379762.html]