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:
Francois Marier 2016-09-27 13:25:35 -07:00
parent 1342cbfe94
commit 16c0d80286

View File

@ -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;
}