Title: [114011] trunk/Source/WebKit/blackberry
- Revision
- 114011
- Author
- [email protected]
- Date
- 2012-04-12 12:03:38 -0700 (Thu, 12 Apr 2012)
Log Message
[BlackBerry] Web Inspector messages incorrectly converted
https://bugs.webkit.org/show_bug.cgi?id=83796
Patch by Konrad Piascik <[email protected]> on 2012-04-12
Reviewed by Rob Buis.
The JSON sent over from the remote Web Inspector front-end was being
mis interpreted as ISO-8859-1. This caused all non ascii characters to
become garbled when using the String constructor, so we use fromtUTF8 instead.
* Api/WebPage.cpp:
(BlackBerry::WebKit::WebPage::dispatchInspectorMessage):
Modified Paths
Diff
Modified: trunk/Source/WebKit/blackberry/Api/WebPage.cpp (114010 => 114011)
--- trunk/Source/WebKit/blackberry/Api/WebPage.cpp 2012-04-12 18:57:22 UTC (rev 114010)
+++ trunk/Source/WebKit/blackberry/Api/WebPage.cpp 2012-04-12 19:03:38 UTC (rev 114011)
@@ -5198,7 +5198,7 @@
void WebPage::dispatchInspectorMessage(const std::string& message)
{
- String stringMessage(message.c_str(), message.length());
+ String stringMessage = String::fromUTF8(message.data(), message.length());
d->m_page->inspectorController()->dispatchMessageFromFrontend(stringMessage);
}
Modified: trunk/Source/WebKit/blackberry/ChangeLog (114010 => 114011)
--- trunk/Source/WebKit/blackberry/ChangeLog 2012-04-12 18:57:22 UTC (rev 114010)
+++ trunk/Source/WebKit/blackberry/ChangeLog 2012-04-12 19:03:38 UTC (rev 114011)
@@ -1,3 +1,17 @@
+2012-04-12 Konrad Piascik <[email protected]>
+
+ [BlackBerry] Web Inspector messages incorrectly converted
+ https://bugs.webkit.org/show_bug.cgi?id=83796
+
+ Reviewed by Rob Buis.
+
+ The JSON sent over from the remote Web Inspector front-end was being
+ mis interpreted as ISO-8859-1. This caused all non ascii characters to
+ become garbled when using the String constructor, so we use fromtUTF8 instead.
+
+ * Api/WebPage.cpp:
+ (BlackBerry::WebKit::WebPage::dispatchInspectorMessage):
+
2012-04-12 Mike Fenton <[email protected]>
[BlackBerry] Speed up processing of Selection region generation.
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes