[Webkit-unassigned] [Bug 173191] New: trac.webkit.org/export returns Content-Type application/xhtml+xml for .html files

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jun 9 16:01:51 PDT 2017


            Bug ID: 173191
           Summary: trac.webkit.org/export returns Content-Type
                    application/xhtml+xml for .html files
           Product: WebKit
           Version: WebKit Local Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Tools / Tests
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: dbates at webkit.org
                CC: aakash_jain at apple.com, ap at webkit.org,
                    dean_johnson at apple.com, jbedard at apple.com,
                    lforschler at apple.com

Visit <https://trac.webkit.org/export/218025/webkit/trunk/LayoutTests/http/tests/security/contentSecurityPolicy/allow-favicon.html> and you will see the following error message:

This page contains the following errors:

error on line 18 at column 8: Opening and ending tag mismatch: link line 0 and head
Below is a rendering of the page up to the first error.

This error occurs because Trac is returned an HTTP response with Content-Type: application/xhtml+xml; charset=utf-8. So, Safari parses the response as XML. But the markup is HTML, which is more lenient that XML; => Safari errors out. 

For completeness, I got this export URL by visiting <https://trac.webkit.org/browser/trunk/LayoutTests/http/tests/security/contentSecurityPolicy/allow-favicon.html> and clicking the hyperlink "Original Format" at the bottom of the page.

Trac.webkit.org returns the correct Content-Type for plain text files. You can see this by clicking "Original Format" at the bottom of <https://trac.webkit.org/browser/webkit/trunk/Source/WebCore/LICENSE-APPLE>

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/20170609/3ce8622f/attachment.html>

More information about the webkit-unassigned mailing list