Index: third_party/WebKit/Source/platform/weborigin/SecurityPolicy.cpp |
diff --git a/third_party/WebKit/Source/platform/weborigin/SecurityPolicy.cpp b/third_party/WebKit/Source/platform/weborigin/SecurityPolicy.cpp |
index bab895b38527acf6740e77fdf22cc7210fce0bd8..2cb1aaf69bf320116ee10eeabdebfd1fac0a5bc5 100644 |
--- a/third_party/WebKit/Source/platform/weborigin/SecurityPolicy.cpp |
+++ b/third_party/WebKit/Source/platform/weborigin/SecurityPolicy.cpp |
@@ -302,8 +302,8 @@ bool SecurityPolicy::referrerPolicyFromHeaderValue( |
headerValue.split(',', true, tokens); |
for (const auto& token : tokens) { |
ReferrerPolicy currentResult; |
- if (SecurityPolicy::referrerPolicyFromString(token, legacyKeywordsSupport, |
- ¤tResult)) { |
+ if (SecurityPolicy::referrerPolicyFromString( |
+ token.stripWhiteSpace(), legacyKeywordsSupport, ¤tResult)) { |
referrerPolicy = currentResult; |
} |
} |