| Index: third_party/WebKit/Source/core/dom/ExecutionContext.h
|
| diff --git a/third_party/WebKit/Source/core/dom/ExecutionContext.h b/third_party/WebKit/Source/core/dom/ExecutionContext.h
|
| index 130ba2d60795231ebc979cc0bcd38af6fd54be84..38563a031a4d1e06a4af4ff9ba644bef3acd3caa 100644
|
| --- a/third_party/WebKit/Source/core/dom/ExecutionContext.h
|
| +++ b/third_party/WebKit/Source/core/dom/ExecutionContext.h
|
| @@ -154,7 +154,11 @@ public:
|
| // the context's referrer policy to the last one that is a valid
|
| // policy. Logs a message to the console if none of the policy
|
| // tokens are valid policies.
|
| - void parseAndSetReferrerPolicy(const String& policies);
|
| + //
|
| + // If |supportLegacyKeywords| is true, then the legacy keywords
|
| + // "never", "default", "always", and "origin-when-crossorigin" are
|
| + // parsed as valid policies.
|
| + void parseAndSetReferrerPolicy(const String& policies, bool supportLegacyKeywords = false);
|
| void setReferrerPolicy(ReferrerPolicy);
|
| ReferrerPolicy getReferrerPolicy() const { return m_referrerPolicy; }
|
|
|
|
|