Title: [102856] trunk/Source/WebKit/mac
Revision
102856
Author
msab...@apple.com
Date
2011-12-14 17:30:40 -0800 (Wed, 14 Dec 2011)

Log Message



Modified Paths


Diff

Modified: trunk/Source/WebKit/mac/ChangeLog (102855 => 102856)


--- trunk/Source/WebKit/mac/ChangeLog	2011-12-15 01:30:35 UTC (rev 102855)
+++ trunk/Source/WebKit/mac/ChangeLog	2011-12-15 01:30:40 UTC (rev 102856)
@@ -1,3 +1,14 @@
+2011-12-14  Michael Saboff  <msab...@apple.com>
+
+        Mac WebScriptDebugger crashes beneath sourceParsed()
+        https://bugs.webkit.org/show_bug.cgi?id=74564
+
+        Reviewed by Gavin Barraclough.
+
+        * WebView/WebScriptDebugger.mm:
+        (toNSString): Change to use ->characters() method to
+        actually get characters for string conversion.
+
 2011-12-14  Hajime Morrita  <morr...@chromium.org>
 
         JS_INLINE and WTF_INLINE should be visible from WebCore

Modified: trunk/Source/WebKit/mac/WebView/WebScriptDebugger.mm (102855 => 102856)


--- trunk/Source/WebKit/mac/WebView/WebScriptDebugger.mm	2011-12-15 01:30:35 UTC (rev 102855)
+++ trunk/Source/WebKit/mac/WebView/WebScriptDebugger.mm	2011-12-15 01:30:40 UTC (rev 102856)
@@ -62,7 +62,7 @@
 {
     if (!s->length())
         return nil;
-    return [NSString stringWithCharacters:reinterpret_cast<const unichar*>(s->data()) length:s->length()];
+    return [NSString stringWithCharacters:s->data()->characters() length:s->length()];
 }
 
 // convert UString to NSURL
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to