Bug 1670933 - Back button is not enabled by iframe navigation when Fission is enabled. r=smaug,extension-reviewers,zombie

Differential Revision: https://phabricator.services.mozilla.com/D95322
This commit is contained in:
Peter Van der Beken
2020-10-30 15:24:15 +00:00
parent 0d06aea979
commit eacc5c3a06
4 changed files with 8 additions and 5 deletions

View File

@@ -1407,11 +1407,11 @@ bool nsDocShell::SetCurrentURI(nsIURI* aURI, nsIRequest* aRequest,
if (mozilla::SessionHistoryInParent()) {
if (mLoadingEntry) {
isSubFrame = mLoadingEntry->mInfo.IsSubFrame();
MOZ_LOG(gSHLog, LogLevel::Debug,
("nsDocShell %p SetCurrentURI, isSubFrame=%d", this, isSubFrame));
} else {
isSubFrame = !mBrowsingContext->IsTop() && mActiveEntry;
}
MOZ_LOG(gSHLog, LogLevel::Debug,
("nsDocShell %p SetCurrentURI, no mLoadingEntry", this));
("nsDocShell %p SetCurrentURI, isSubFrame=%d", this, isSubFrame));
} else {
if (mLSHE) {
isSubFrame = mLSHE->GetIsSubFrame();