Bug 1653482 - Tidy up after Bug 1647109 r=peterv

Differential Revision: https://phabricator.services.mozilla.com/D83897
This commit is contained in:
Paul Bone 2020-07-17 09:39:59 +00:00
Родитель 7c33b574ef
Коммит 02b5195413
1 изменённых файлов: 5 добавлений и 6 удалений

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

@ -2448,12 +2448,6 @@ void BrowsingContext::InitSessionHistory() {
if (!GetHasSessionHistory()) {
SetHasSessionHistory(true);
// If the top browsing context (this one) is loaded in this process then we
// also create the session history implementation for the child process.
// This can be removed once session history is stored exclusively in the
// parent process.
mChildSessionHistory->SetIsInProcess(IsInProcess());
}
}
@ -2482,6 +2476,11 @@ void BrowsingContext::CreateChildSHistory() {
// history. That is why we create the ChildSHistory object in every process
// where we have access to this browsing context (which is the top one).
mChildSessionHistory = new ChildSHistory(this);
// If the top browsing context (this one) is loaded in this process then we
// also create the session history implementation for the child process.
// This can be removed once session history is stored exclusively in the
// parent process.
mChildSessionHistory->SetIsInProcess(IsInProcess());
}