Bug 1667027 - Fix more tests that uses legacySHistory. r=peterv

Differential Revision: https://phabricator.services.mozilla.com/D91277
This commit is contained in:
Andreas Farre
2020-09-28 12:31:58 +00:00
parent 656a441f3c
commit 5e1d0cbcd2
6 changed files with 200 additions and 116 deletions

View File

@@ -162,6 +162,7 @@ void CanonicalBrowsingContext::ReplacedBy(
}
aNewContext->mWebProgress = std::move(mWebProgress);
aNewContext->mFields.SetWithoutSyncing<IDX_BrowserId>(GetBrowserId());
aNewContext->mFields.SetWithoutSyncing<IDX_HistoryID>(GetHistoryID());
if (mSessionHistory) {
mSessionHistory->SetBrowsingContext(aNewContext);