Bug 124815
Summary: | [GTK] jaguarusa.com displayed as plain text instead of HTML | ||
---|---|---|---|
Product: | WebKit | Reporter: | tesoro302 |
Component: | WebKitGTK | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | berto, bugs-noreply, gustavo |
Priority: | P3 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | PC | ||
OS: | Linux |
tesoro302
This page crashes consistently for me on webkit-gtk-2.2.2 on midori and epiphany:
http://www.pressure.co.uk/store/PS82/lee-perry-the-upsetters-roaring-lion/
This page only displays code:
http://www.jaguarusa.com
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Alberto Garcia
Thanks for the report, we need two separate bugs, though :) since
these are completely different problems. I'll take care of that.
The crash doesn't happen on the master branch.
The second problem seems to happen because the server doesn't send the
Content-Type header and webkit treats it as text/plain.
Alberto Garcia
Okay, the problem here seems to be:
1) there's no Content-Type header
2) libsoup's content sniffer fails to detect that it's an html page
because the initial "<!DOCTYPE html" is ignored due to the extra
whitespace at the beginning.
https://git.gnome.org/browse/libsoup/tree/libsoup/soup-content-sniffer.c?h=gnome-2-30#n98
(that's the first item in types_table, see how has_ws is FALSE).
Alberto Garcia
libsoup bug: https://bugzilla.gnome.org/show_bug.cgi?id=715126