Title: [179782] trunk/Source/WebKit2
Revision
179782
Author
[email protected]
Date
2015-02-07 11:50:42 -0800 (Sat, 07 Feb 2015)

Log Message

And as a further followup restore the 8bit test too.

* NetworkProcess/cache/NetworkCacheKey.cpp:
(WebKit::hashString):

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (179781 => 179782)


--- trunk/Source/WebKit2/ChangeLog	2015-02-07 19:45:15 UTC (rev 179781)
+++ trunk/Source/WebKit2/ChangeLog	2015-02-07 19:50:42 UTC (rev 179782)
@@ -1,5 +1,12 @@
 2015-02-07  Antti Koivisto  <[email protected]>
 
+        And as a further followup restore the 8bit test too.
+
+        * NetworkProcess/cache/NetworkCacheKey.cpp:
+        (WebKit::hashString):
+
+2015-02-07  Antti Koivisto  <[email protected]>
+
         Use longer hashes for cache keys
         https://bugs.webkit.org/show_bug.cgi?id=141356
 

Modified: trunk/Source/WebKit2/NetworkProcess/cache/NetworkCacheKey.cpp (179781 => 179782)


--- trunk/Source/WebKit2/NetworkProcess/cache/NetworkCacheKey.cpp	2015-02-07 19:45:15 UTC (rev 179781)
+++ trunk/Source/WebKit2/NetworkProcess/cache/NetworkCacheKey.cpp	2015-02-07 19:50:42 UTC (rev 179782)
@@ -62,7 +62,7 @@
 static void hashString(MD5& md5, const String& string)
 {
     const uint8_t zero = 0;
-    if (string.containsOnlyASCII()) {
+    if (string.is8Bit() && string.containsOnlyASCII()) {
         md5.addBytes(string.characters8(), string.length());
         md5.addBytes(&zero, 1);
         return;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to