mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-18 17:02:01 +00:00
Bug 1302938 - Explain why user referrer trimming policy can be overriden. r=dragana
MozReview-Commit-ID: GfmeIu2WEGX --HG-- extra : rebase_source : 386c056f51dd351e7713806cec2292f5a226e8ef
This commit is contained in:
parent
1342cbfe94
commit
16c0d80286
@ -1522,6 +1522,9 @@ HttpBaseChannel::SetReferrerWithPolicy(nsIURI *referrer,
|
||||
referrerPolicy == REFERRER_POLICY_STRICT_ORIGIN ||
|
||||
(isCrossOrigin && (referrerPolicy == REFERRER_POLICY_ORIGIN_WHEN_XORIGIN ||
|
||||
referrerPolicy == REFERRER_POLICY_STRICT_ORIGIN_WHEN_XORIGIN))) {
|
||||
// We can override the user trimming preference because "origin"
|
||||
// (network.http.referer.trimmingPolicy = 2) is the strictest
|
||||
// trimming policy that users can specify.
|
||||
userReferrerTrimmingPolicy = 2;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user