From 02b5195413c73aeaf1b0e418657e02539afc4503 Mon Sep 17 00:00:00 2001 From: Paul Bone Date: Fri, 17 Jul 2020 09:39:59 +0000 Subject: [PATCH] Bug 1653482 - Tidy up after Bug 1647109 r=peterv Differential Revision: https://phabricator.services.mozilla.com/D83897 --- docshell/base/BrowsingContext.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/docshell/base/BrowsingContext.cpp b/docshell/base/BrowsingContext.cpp index 378d43c58cf2..9ec2653eb8f6 100644 --- a/docshell/base/BrowsingContext.cpp +++ b/docshell/base/BrowsingContext.cpp @@ -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()); }