Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index 56daf3fa7c175de830ec03d437b239fb96797b3a..0c8dd5775cfb7e8e033bb5d0401ba600ce0c9690 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -3162,16 +3162,16 @@ void Document::processReferrerPolicy(const String& policy) |
{ |
ASSERT(!policy.isNull()); |
- if (equalIgnoringCase(policy, "never")) { |
+ if (equalIgnoringCase(policy, "no-referrer") || equalIgnoringCase(policy, "never")) { |
setReferrerPolicy(ReferrerPolicyNever); |
- } else if (equalIgnoringCase(policy, "always")) { |
+ } else if (equalIgnoringCase(policy, "unsafe-url") || equalIgnoringCase(policy, "always")) { |
setReferrerPolicy(ReferrerPolicyAlways); |
} else if (equalIgnoringCase(policy, "origin")) { |
setReferrerPolicy(ReferrerPolicyOrigin); |
- } else if (equalIgnoringCase(policy, "default")) { |
+ } else if (equalIgnoringCase(policy, "no-referrer-when-downgrade") || equalIgnoringCase(policy, "default")) { |
setReferrerPolicy(ReferrerPolicyDefault); |
} else { |
- addConsoleMessage(ConsoleMessage::create(RenderingMessageSource, ErrorMessageLevel, "Failed to set referrer policy: The value '" + policy + "' is not one of 'always', 'default', 'never', or 'origin'. Defaulting to 'never'.")); |
+ addConsoleMessage(ConsoleMessage::create(RenderingMessageSource, ErrorMessageLevel, "Failed to set referrer policy: The value '" + policy + "' is not one of 'no-referrer', 'origin', 'no-referrer-when-downgrade', or 'unsafe-url'. Defaulting to 'no-referrer'.")); |
setReferrerPolicy(ReferrerPolicyNever); |
} |
} |