mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-03 14:28:39 +09:00
Remove support and tests for HSTS priming from the tree. Fixes #384
This commit is contained in:
parent
96a0af1be8
commit
d4ac94cf3e
56 changed files with 26 additions and 1812 deletions
|
|
@ -1681,8 +1681,8 @@ NS_IMETHODIMP
|
|||
HttpChannelChild::OnRedirectVerifyCallback(nsresult result)
|
||||
{
|
||||
LOG(("HttpChannelChild::OnRedirectVerifyCallback [this=%p]\n", this));
|
||||
nsresult rv;
|
||||
OptionalURIParams redirectURI;
|
||||
nsresult rv;
|
||||
nsCOMPtr<nsIHttpChannel> newHttpChannel =
|
||||
do_QueryInterface(mRedirectChannelChild);
|
||||
|
||||
|
|
@ -1697,18 +1697,9 @@ HttpChannelChild::OnRedirectVerifyCallback(nsresult result)
|
|||
result = NS_ERROR_DOM_BAD_URI;
|
||||
}
|
||||
|
||||
bool forceHSTSPriming = false;
|
||||
bool mixedContentWouldBlock = false;
|
||||
if (newHttpChannel) {
|
||||
// Must not be called until after redirect observers called.
|
||||
newHttpChannel->SetOriginalURI(mOriginalURI);
|
||||
|
||||
nsCOMPtr<nsILoadInfo> newLoadInfo;
|
||||
rv = newHttpChannel->GetLoadInfo(getter_AddRefs(newLoadInfo));
|
||||
if (NS_SUCCEEDED(rv) && newLoadInfo) {
|
||||
forceHSTSPriming = newLoadInfo->GetForceHSTSPriming();
|
||||
mixedContentWouldBlock = newLoadInfo->GetMixedContentWouldBlock();
|
||||
}
|
||||
}
|
||||
|
||||
if (mRedirectingForSubsequentSynthesizedResponse) {
|
||||
|
|
@ -1756,7 +1747,7 @@ HttpChannelChild::OnRedirectVerifyCallback(nsresult result)
|
|||
do_QueryInterface(mRedirectChannelChild);
|
||||
if (newHttpChannelInternal) {
|
||||
nsCOMPtr<nsIURI> apiRedirectURI;
|
||||
nsresult rv = newHttpChannelInternal->GetApiRedirectToURI(
|
||||
rv = newHttpChannelInternal->GetApiRedirectToURI(
|
||||
getter_AddRefs(apiRedirectURI));
|
||||
if (NS_SUCCEEDED(rv) && apiRedirectURI) {
|
||||
/* If there was an API redirect of this channel, we need to send it
|
||||
|
|
@ -1780,8 +1771,7 @@ HttpChannelChild::OnRedirectVerifyCallback(nsresult result)
|
|||
|
||||
if (mIPCOpen)
|
||||
SendRedirect2Verify(result, *headerTuples, loadFlags, redirectURI,
|
||||
corsPreflightArgs, forceHSTSPriming,
|
||||
mixedContentWouldBlock, chooseAppcache);
|
||||
corsPreflightArgs, chooseAppcache);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue