Bug 1663492 - Make nsDocShell::OnNewURI use mActiveEntry instead of mOSHE if session history in the parent is enabled. r=smaug

Depends on D89423

Differential Revision: https://phabricator.services.mozilla.com/D89424
This commit is contained in:
Peter Van der Beken
2020-09-08 12:52:02 +00:00
parent d551d1937d
commit 09f2ab8eb3

View File

@@ -10411,7 +10411,9 @@ bool nsDocShell::OnNewURI(nsIURI* aURI, nsIChannel* aChannel,
* frameset pages is to add new methods to nsIDocShellTreeItem.
* Hopefully I don't have to do that.
*/
if (equalUri && mOSHE &&
if (equalUri &&
(StaticPrefs::fission_sessionHistoryInParent() ? !!mActiveEntry
: !!mOSHE) &&
(mLoadType == LOAD_NORMAL || mLoadType == LOAD_LINK ||
mLoadType == LOAD_STOP_CONTENT) &&
!inputStream) {