Backed out changeset 05fceb07f800 (bug 1909698) for causing wpt crashes/assertions. CLOSED TREE
This commit is contained in:
@@ -1329,20 +1329,7 @@ void nsDocShell::FirePageHideShowNonRecursive(bool aShow) {
|
||||
mEODForCurrentDocument = false;
|
||||
mIsRestoringDocument = true;
|
||||
mLoadGroup->AddRequest(channel, nullptr);
|
||||
nsCOMPtr<nsIURI> uri;
|
||||
if (doc->FragmentDirective()) {
|
||||
// If we have fragment directives, then we've mutated the document
|
||||
// uri. Set the current URI from session history instead.
|
||||
if (mozilla::SessionHistoryInParent()) {
|
||||
uri = mActiveEntry->GetURI();
|
||||
} else if (mOSHE) {
|
||||
uri = mOSHE->GetURI();
|
||||
}
|
||||
}
|
||||
if (!uri) {
|
||||
uri = doc->GetDocumentURI();
|
||||
}
|
||||
SetCurrentURI(uri, channel,
|
||||
SetCurrentURI(doc->GetDocumentURI(), channel,
|
||||
/* aFireOnLocationChange */ true,
|
||||
/* aIsInitialAboutBlank */ false,
|
||||
/* aLocationFlags */ 0);
|
||||
|
||||
Reference in New Issue
Block a user