Bug 1556657 - SHistoryParent::RecvFindEntryForBFCache should fill in all its outparams. r=annyG

Differential Revision: https://phabricator.services.mozilla.com/D33607

--HG--
extra : rebase_source : a869e6e0d2e1dfc19431f01eab257ef4ce88fabd
extra : source : b82e5b8c6964ab446abafc8be6017f4e15725d26
extra : histedit_source : b9c0a9c7462f0d984ae8d297aa8d51d80dcc02a6
This commit is contained in:
Peter Van der Beken 2019-06-04 10:58:42 +02:00
Родитель 686417088e
Коммит 1f1f27cbac
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -194,14 +194,17 @@ bool SHistoryParent::RecvFindEntryForBFCache(const uint64_t& aSharedID,
aSharedID) { aSharedID) {
if (!aIncludeCurrentEntry && i == currentIndex) { if (!aIncludeCurrentEntry && i == currentIndex) {
*aEntry = (PSHEntryParent*)nullptr; *aEntry = (PSHEntryParent*)nullptr;
*aIndex = -1;
} else { } else {
SHEntryParent::GetOrCreate(Manager(), entry, *aEntry); SHEntryParent::GetOrCreate(Manager(), entry, *aEntry);
*aIndex = i;
} }
return true; return true;
} }
} }
*aEntry = (PSHEntryParent*)nullptr; *aEntry = (PSHEntryParent*)nullptr;
*aIndex = -1;
return true; return true;
} }