Backed out changeset 30d7636620f8 (bug 1804684) as req by smaug
This commit is contained in:
@@ -8746,15 +8746,6 @@ bool nsDocShell::IsSameDocumentNavigation(nsDocShellLoadState* aLoadState,
|
||||
if (!docLoadInfo->GetLoadErrorPage()) {
|
||||
if (nsHTTPSOnlyUtils::IsEqualURIExceptSchemeAndRef(
|
||||
currentExposableURI, aLoadState->URI(), docLoadInfo)) {
|
||||
// At this point the requested URI is for sure a fragment
|
||||
// navigation via HTTP and HTTPS-Only mode or HTTPS-First is
|
||||
// enabled. Since we are on an HTTPS site the fragment
|
||||
// navigation should also be an HTTPS.
|
||||
// For that reason we upgrade the URI to HTTPS.
|
||||
nsCOMPtr<nsIURI> upgradedURI;
|
||||
NS_GetSecureUpgradedURI(aLoadState->URI(),
|
||||
getter_AddRefs(upgradedURI));
|
||||
aLoadState->SetURI(upgradedURI);
|
||||
aState.mSameExceptHashes = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user