WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
173923
[GTK] Blank page when expected "source" XML
https://bugs.webkit.org/show_bug.cgi?id=173923
Summary
[GTK] Blank page when expected "source" XML
Bastien Nocera
Reported
2017-06-28 07:31:56 PDT
Opening
http://ftp.gnome.org/pub/GNOME/teams/releng/3.18.0/gnome-suites-core-deps-3.18.0.modules
in MiniBrowser leads to a blank page. No content-type seems to be set on the server end, but the browser tries to load it as XML anyway.
Attachments
Add attachment
proposed patch, testcase, etc.
Bastien Nocera
Comment 1
2017-06-28 07:32:08 PDT
webkitgtk4-2.16.4-1.fc26.x86_64
Carlos Garcia Campos
Comment 2
2017-06-29 02:24:16 PDT
(In reply to Bastien Nocera from
comment #0
)
> Opening >
http://ftp.gnome.org/pub/GNOME/teams/releng/3.18.0/gnome-suites-core-deps-3
. > 18.0.modules in MiniBrowser leads to a blank page. > > No content-type seems to be set on the server end, but the browser tries to > load it as XML anyway.
I think it's the opposite, it tries to load it as HTML instead of XML. I think this is what the soup sniffer gives to us. In case of xml document soup considers it as a HTML document unless it's a RSS/RDF feed. I don't know why, though.
Dan Winship
Comment 3
2017-07-03 06:38:47 PDT
(In reply to Carlos Garcia Campos from
comment #2
)
> I think it's the opposite, it tries to load it as HTML instead of XML. I > think this is what the soup sniffer gives to us. In case of xml document > soup considers it as a HTML document unless it's a RSS/RDF feed. I don't > know why, though.
It looks like there's a bug/typo in the tables in soup-content-sniffer.c: { TRUE, FALSE, (const guchar *)"\x00\xFF\xFF\xFF\xFF\xFF", (const guchar *)" <?xml", 5, "text/html", TRUE }, "text/html" should obviously be "text/xml"... Fixed in git.
Michael Catanzaro
Comment 4
2017-07-03 06:54:37 PDT
OK, thanks Dan!
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug