Bug 1901660 - Update session history changes once the history is purged. r=geckoview-reviewers,sessionstore-reviewers,farre,owlish

Differential Revision: https://phabricator.services.mozilla.com/D219778
This commit is contained in:
kycn 2024-08-26 11:09:29 +00:00
parent bd3562b388
commit b77feda720
2 changed files with 4 additions and 6 deletions

View File

@ -2781,11 +2781,6 @@ class NavigationDelegateTest : BaseSessionTest() {
}
@Test fun purgeHistory() {
// TODO: Bug 1884334
val geckoPrefs = sessionRule.getPrefs(
"fission.disableSessionHistoryInParent",
)
assumeThat(geckoPrefs[0] as Boolean, equalTo(true))
// TODO: Bug 1837551
assumeThat(sessionRule.env.isFission, equalTo(false))

View File

@ -76,7 +76,10 @@ class TabListener : public nsIDOMEventListener,
void RemoveListeners();
void SetEpoch(uint32_t aEpoch) { mEpoch = aEpoch; }
uint32_t GetEpoch() { return mEpoch; }
void UpdateSHistoryChanges() { AddTimerForUpdate(); }
void UpdateSHistoryChanges() {
mSessionStore->SetSHistoryChanged();
AddTimerForUpdate();
}
void SetOwnerContent(Element* aElement);
NS_DECL_CYCLE_COLLECTING_ISUPPORTS