mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 07:18:39 +09:00
Issue #2641 - Update Fetch to adhere to the updated spec (pass refpolicy)
Resolves #2641
This commit is contained in:
parent
f6f046930d
commit
7d978ccd71
16 changed files with 244 additions and 91 deletions
|
|
@ -1316,7 +1316,7 @@ HttpBaseChannel::SetReferrerWithPolicy(nsIURI *referrer,
|
|||
if(NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
mReferrerPolicy = REFERRER_POLICY_NO_REFERRER_WHEN_DOWNGRADE;
|
||||
mReferrerPolicy = referrerPolicy;
|
||||
|
||||
if (!referrer) {
|
||||
return NS_OK;
|
||||
|
|
@ -1324,7 +1324,6 @@ HttpBaseChannel::SetReferrerWithPolicy(nsIURI *referrer,
|
|||
|
||||
// Don't send referrer at all when the meta referrer setting is "no-referrer"
|
||||
if (referrerPolicy == REFERRER_POLICY_NO_REFERRER) {
|
||||
mReferrerPolicy = REFERRER_POLICY_NO_REFERRER;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
@ -1597,7 +1596,6 @@ HttpBaseChannel::SetReferrerWithPolicy(nsIURI *referrer,
|
|||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
mReferrer = clone;
|
||||
mReferrerPolicy = referrerPolicy;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue