[Webkit-unassigned] [Bug 184444] [GTK] webkit_web_view_load_html() garbages linked CSS content

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 18 09:50:49 PDT 2018


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

--- Comment #7 from Milan Crha <mcrha at redhat.com> ---
(In reply to Michael Catanzaro from comment #6)
> gchar* strings are always UTF-8 in GLib APIs, always, that's a GLib
> convention

Not general gchar *strings/variables, see for example:
https://developer.gnome.org/glib/2.54/glib-Character-Set-Conversion.html#g-filename-to-utf8

But I agree with you, it's a reasonable expectation that gchar * is a single-byte encoding and I'd go even further and expect, in case of webkit_web_view_load_html() and webkit_web_view_load_plain_text() and the one for alternative representation, that the passed-in string is in UTF-8, or better the WebKitSettings' default-encoding.

It won't fix the issue of mixed HTML and CSS on its own, but it's a good start. See the mentioned bug #127481 where the guessing on CSS from the actual content of the HTML is possibly done (aka WebPage::loadString() according to the attached patch there, but it is more than 4 years old now, thus it could change heavily meanwhile).

-- 
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/20180418/6ef18e99/attachment-0001.html>


More information about the webkit-unassigned mailing list