Title: [149537] trunk/Source/WebCore
Revision
149537
Author
[email protected]
Date
2013-05-03 13:56:53 -0700 (Fri, 03 May 2013)

Log Message

[Mac] setMetadataURL incorrectly treats path bytes as Latin-1
https://bugs.webkit.org/show_bug.cgi?id=115557

Reviewed by Sam Weinig.

* platform/mac/FileSystemMac.mm: (WebCore::setMetaData): Use the correct constructor.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (149536 => 149537)


--- trunk/Source/WebCore/ChangeLog	2013-05-03 20:56:44 UTC (rev 149536)
+++ trunk/Source/WebCore/ChangeLog	2013-05-03 20:56:53 UTC (rev 149537)
@@ -1,3 +1,12 @@
+2013-05-03  Alexey Proskuryakov  <[email protected]>
+
+        [Mac] setMetadataURL incorrectly treats path bytes as Latin-1
+        https://bugs.webkit.org/show_bug.cgi?id=115557
+
+        Reviewed by Sam Weinig.
+
+        * platform/mac/FileSystemMac.mm: (WebCore::setMetaData): Use the correct constructor.
+
 2013-05-03  Andrei Bucur  <[email protected]>
 
         Move pixelSnappedLayoutOverflowRect and maxLayoutOverflow from RenderBox

Modified: trunk/Source/WebCore/platform/mac/FileSystemMac.mm (149536 => 149537)


--- trunk/Source/WebCore/platform/mac/FileSystemMac.mm	2013-05-03 20:56:44 UTC (rev 149536)
+++ trunk/Source/WebCore/platform/mac/FileSystemMac.mm	2013-05-03 20:56:53 UTC (rev 149537)
@@ -77,7 +77,7 @@
 static void* setMetaData(void* context)
 {
     MetaDataInfo *info = (MetaDataInfo *)context;
-    wkSetMetadataURL((NSString *)info->URLString, (NSString *)info->referrer, (NSString *)String(fileSystemRepresentation(info->path).data()));
+    wkSetMetadataURL((NSString *)info->URLString, (NSString *)info->referrer, (NSString *)String::fromUTF8(fileSystemRepresentation(info->path).data()));
     
     delete info;
     
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to