mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
Bug 1318376 - Set value of REFERRER_POLICY* more reasonable to avoid error conversion from unsigned to signed. r=mcmanus
MozReview-Commit-ID: J4er0G5dwim
This commit is contained in:
parent
fbed2f7f0d
commit
5879ed1f80
@ -62,31 +62,31 @@ interface nsIHttpChannel : nsIChannel
|
||||
*/
|
||||
|
||||
|
||||
/* The undefined state, usually used to check the need of
|
||||
overruling document-wide referrer policy. */
|
||||
const unsigned long REFERRER_POLICY_UNSET = 4294967295; // UINT32_MAX
|
||||
/* The undefined state, or no referrer policy, usually causing a fallback
|
||||
to a referrer policy definded elsewhere */
|
||||
const unsigned long REFERRER_POLICY_UNSET = 0;
|
||||
|
||||
/* default state, a shorter name for no-referrer-when-downgrade */
|
||||
const unsigned long REFERRER_POLICY_DEFAULT = 0;
|
||||
const unsigned long REFERRER_POLICY_DEFAULT = 1;
|
||||
/* default state, doesn't send referrer from https->http */
|
||||
const unsigned long REFERRER_POLICY_NO_REFERRER_WHEN_DOWNGRADE = 0;
|
||||
const unsigned long REFERRER_POLICY_NO_REFERRER_WHEN_DOWNGRADE = 1;
|
||||
/* sends no referrer */
|
||||
const unsigned long REFERRER_POLICY_NO_REFERRER = 1;
|
||||
const unsigned long REFERRER_POLICY_NO_REFERRER = 2;
|
||||
/* only sends the origin of the referring URL */
|
||||
const unsigned long REFERRER_POLICY_ORIGIN = 2;
|
||||
const unsigned long REFERRER_POLICY_ORIGIN = 3;
|
||||
/* same as default, but reduced to ORIGIN when cross-origin. */
|
||||
const unsigned long REFERRER_POLICY_ORIGIN_WHEN_XORIGIN = 3;
|
||||
const unsigned long REFERRER_POLICY_ORIGIN_WHEN_XORIGIN = 4;
|
||||
/* always sends the referrer, even on downgrade. */
|
||||
const unsigned long REFERRER_POLICY_UNSAFE_URL = 4;
|
||||
const unsigned long REFERRER_POLICY_UNSAFE_URL = 5;
|
||||
/* send referrer when same-origin, no referrer when cross-origin */
|
||||
const unsigned long REFERRER_POLICY_SAME_ORIGIN = 5;
|
||||
const unsigned long REFERRER_POLICY_SAME_ORIGIN = 6;
|
||||
/* send origin when request from https->https or http->http(s)
|
||||
No referrer when request from https->http. */
|
||||
const unsigned long REFERRER_POLICY_STRICT_ORIGIN = 6;
|
||||
const unsigned long REFERRER_POLICY_STRICT_ORIGIN = 7;
|
||||
/* send referrer when same-origin,
|
||||
Send origin when cross-origin from https->https or http->http(s)
|
||||
No referrer when request from https->http. */
|
||||
const unsigned long REFERRER_POLICY_STRICT_ORIGIN_WHEN_XORIGIN = 7;
|
||||
const unsigned long REFERRER_POLICY_STRICT_ORIGIN_WHEN_XORIGIN = 8;
|
||||
|
||||
/**
|
||||
* Get the HTTP referrer policy. The policy is retrieved from the meta
|
||||
|
Loading…
Reference in New Issue
Block a user