Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1734)

Unified Diff: third_party/WebKit/Source/platform/weborigin/SecurityPolicy.cpp

Issue 2733943002: Trim whitespace from Referrer-Policy tokens (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
- &currentResult)) {
+ if (SecurityPolicy::referrerPolicyFromString(
+ token.stripWhiteSpace(), legacyKeywordsSupport, &currentResult)) {
referrerPolicy = currentResult;
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698