Title: [232348] trunk/Source/WebCore
Revision
232348
Author
[email protected]
Date
2018-05-31 08:47:35 -0700 (Thu, 31 May 2018)

Log Message

Unreviewed, apply review comments from Darin after r232310.

* platform/ReferrerPolicy.cpp:
(WebCore::parseReferrerPolicy):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (232347 => 232348)


--- trunk/Source/WebCore/ChangeLog	2018-05-31 14:59:37 UTC (rev 232347)
+++ trunk/Source/WebCore/ChangeLog	2018-05-31 15:47:35 UTC (rev 232348)
@@ -1,3 +1,10 @@
+2018-05-31  Chris Dumez  <[email protected]>
+
+        Unreviewed, apply review comments from Darin after r232310.
+
+        * platform/ReferrerPolicy.cpp:
+        (WebCore::parseReferrerPolicy):
+
 2018-05-31  Zalan Bujtas  <[email protected]>
 
         [LFC] Margin box is border box + margins.

Modified: trunk/Source/WebCore/platform/ReferrerPolicy.cpp (232347 => 232348)


--- trunk/Source/WebCore/platform/ReferrerPolicy.cpp	2018-05-31 14:59:37 UTC (rev 232347)
+++ trunk/Source/WebCore/platform/ReferrerPolicy.cpp	2018-05-31 15:47:35 UTC (rev 232348)
@@ -70,10 +70,6 @@
 {
     switch (source) {
     case ReferrerPolicySource::HTTPHeader: {
-        policyString = stripLeadingAndTrailingHTTPSpaces(policyString);
-        if (policyString.isEmpty())
-            return std::nullopt;
-
         // Implementing https://www.w3.org/TR/2017/CR-referrer-policy-20170126/#parse-referrer-policy-from-header.
         std::optional<ReferrerPolicy> result;
         for (auto tokenView : policyString.split(',')) {
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to