[Webkit-unassigned] [Bug 234518] New: HTTP server used in test runner serves non-utf8 files in wrong encoding

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Dec 20 11:35:47 PST 2021


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

            Bug ID: 234518
           Summary: HTTP server used in test runner serves non-utf8 files
                    in wrong encoding
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: pgriffis at igalia.com

Some files served during tests are specifically in non-utf8 encodings and the HTTP server will always send an incorrectly decoded version of those files.

A reproducer of this is `LayoutTests/imported/w3c/web-platform-tests/content-security-policy/script-src/hash-always-converted-to-utf-8/iso-8859-1.html`

You can run either `run-webkit-httpd` or `run-webkit-tests` on that file to reproduce. The file is in `iso-8859-1` encoding and `charset` is set in `iso-8859-1.html.sub.headers`

At the HTTP layer before the browser decodes anything it is sent `?`'s in place of the invalid UTF-8 characters so decoding happened somewhere before that point.

-- 
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/20211220/156e193b/attachment.htm>


More information about the webkit-unassigned mailing list