[Webkit-unassigned] [Bug 137756] WKWebView: JavaScript fails to load, apparently due to decoding error

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 20 08:19:04 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=137756

--- Comment #9 from Nolan Lawson <nolan at nolanlawson.com> ---
Specifying the subresource encoding is a fine workaround when the developer has control over the web server. But in our case we want to use `loadHTMLString` to load a dynamic `index.html` page and then have subresources accessed as file:// URLs. So in this case we have no control over the headers.

In Android the roughly equivalent `loadDataWithBaseURL` method [1] gives the option to specify the encoding. Is this something that could be exposed in the WK framework? If not, a typical hybrid app with local resources that wants to use `loadHTMLString` would need to also run a local web server on the device, which seems pretty wasteful.

[1]: https://developer.android.com/reference/android/webkit/WebView.html#loadDataWithBaseURL%28java.lang.String%2C%20java.lang.String%2C%20java.lang.String%2C%20java.lang.String%2C%20java.lang.String%29

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20141020/e96afe9e/attachment-0002.html>


More information about the webkit-unassigned mailing list