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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user