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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 10 01:14:16 PDT 2018


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

            Bug ID: 184444
           Summary: [GTK] webkit_web_view_load_html() garbages linked CSS
                    content
           Product: WebKit
           Version: WebKit Local Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Gtk
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mcrha at redhat.com
                CC: bugs-noreply at webkitgtk.org

Created attachment 337598

  --> https://bugs.webkit.org/attachment.cgi?id=337598&action=review

wk2-css.c

This looks like bug #127481, but that one is meant to be fixed. Maybe something had been missing. My test with 2.18.6 and git checkout at git-svn-id: http://svn.webkit.org/repository/webkit/trunk@230032 268f45cc-cd09-0410-ab3c-d52691b4dbfc fails. The trick here is to have the HTML content contain UTF-8 letters, it doesn't matter which.

Using
   webkit_web_view_load_bytes (web_view, bytes, NULL, NULL, "file://");
on exactly the same content of loading that with
   webkit_web_view_load_uri (WEBKIT_WEB_VIEW (wk), "file:///tmp/a.html");
doesn't exhibit the issue, it's only the
   webkit_web_view_load_html (web_view, html, "file://");
misbehaving. There doesn't change anything whether the HTML content contains
  <meta http-equiv="content-type" content="text/html; charset=utf-8">
or not, everything is about the content using only ASCII or UTF-8 letters.

Attached is my test program, which references webview.css file provided by 'evolution' program/package. The first line contains a command line how to compile and run it. Some more details are shown in the dialog itself.

-- 
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/20180410/7eb5f130/attachment-0002.html>


More information about the webkit-unassigned mailing list