Bug 1660869 - Forward RemoveFromSessionHistory to the parent process for session history in the parent. r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D88061
This commit is contained in:
Peter Van der Beken
2020-08-25 16:20:17 +00:00
parent c49bf30ba7
commit 78c82ffa68
12 changed files with 78 additions and 20 deletions

View File

@@ -2937,18 +2937,6 @@ nsresult nsDocShell::AddChildSHEntryToParent(nsISHEntry* aNewEntry,
return rv;
}
NS_IMETHODIMP
nsDocShell::RemoveFromSessionHistory() {
RefPtr<ChildSHistory> sessionHistory = GetRootSessionHistory();
if (!sessionHistory) {
return NS_OK;
}
int32_t index = sessionHistory->Index();
AutoTArray<nsID, 16> ids({mHistoryID});
sessionHistory->LegacySHistory()->RemoveEntries(ids, index);
return NS_OK;
}
NS_IMETHODIMP
nsDocShell::SetCreatedDynamically(bool aDynamic) {
mDynamicallyCreated = aDynamic;