The APIs WKStringRef WKStringCreateWithJSString(JSStringRef) and JSStringRef WKStringCopyJSString(WKStringRef) call the characters() method on their argument string to create the wrapped return string. This will cause 8-bit argument string to be up converted and create the results strings as 16 bit strings. Instead both of these API's should use the wrapped WTFString objects so that 8-bit strings stay that way. Due to threading, these API's need to create copies, but that is already done in OpaqueJSString.
Created attachment 169427 [details] Patch
Comment on attachment 169427 [details] Patch Very nice!
Comment on attachment 169427 [details] Patch Attachment 169427 [details] did not pass efl-ews (efl): Output: http://queues.webkit.org/results/14455140
Comment on attachment 169427 [details] Patch Attachment 169427 [details] did not pass qt-wk2-ews (qt): Output: http://queues.webkit.org/results/14461073
Created attachment 169432 [details] Patch with fix to #include typo
Comment on attachment 169432 [details] Patch with fix to #include typo Clearing flags on attachment: 169432 Committed r131777: <http://trac.webkit.org/changeset/131777>
All reviewed patches have been landed. Closing bug.
Fixed windows build: http://trac.webkit.org/changeset/131801
(In reply to comment #8) > Fixed windows build: http://trac.webkit.org/changeset/131801 Thanks.