<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>173923</bug_id>
          
          <creation_ts>2017-06-28 07:31:56 -0700</creation_ts>
          <short_desc>[GTK] Blank page when expected &quot;source&quot; XML</short_desc>
          <delta_ts>2017-07-03 06:54:37 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Bastien Nocera">bugzilla</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>cgarcia</cc>
    
    <cc>danw</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1323530</commentid>
    <comment_count>0</comment_count>
    <who name="Bastien Nocera">bugzilla</who>
    <bug_when>2017-06-28 07:31:56 -0700</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1323531</commentid>
    <comment_count>1</comment_count>
    <who name="Bastien Nocera">bugzilla</who>
    <bug_when>2017-06-28 07:32:08 -0700</bug_when>
    <thetext>webkitgtk4-2.16.4-1.fc26.x86_64</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1323915</commentid>
    <comment_count>2</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2017-06-29 02:24:16 -0700</bug_when>
    <thetext>(In reply to Bastien Nocera from comment #0)
&gt; Opening
&gt; http://ftp.gnome.org/pub/GNOME/teams/releng/3.18.0/gnome-suites-core-deps-3.
&gt; 18.0.modules in MiniBrowser leads to a blank page.
&gt; 
&gt; No content-type seems to be set on the server end, but the browser tries to
&gt; load it as XML anyway.

I think it&apos;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&apos;s a RSS/RDF feed. I don&apos;t know why, though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1325106</commentid>
    <comment_count>3</comment_count>
    <who name="Dan Winship">danw</who>
    <bug_when>2017-07-03 06:38:47 -0700</bug_when>
    <thetext>(In reply to Carlos Garcia Campos from comment #2)
&gt; I think it&apos;s the opposite, it tries to load it as HTML instead of XML. I
&gt; think this is what the soup sniffer gives to us. In case of xml document
&gt; soup considers it as a HTML document unless it&apos;s a RSS/RDF feed. I don&apos;t
&gt; know why, though.

It looks like there&apos;s a bug/typo in the tables in soup-content-sniffer.c:

	{ TRUE, FALSE,
	  (const guchar *)&quot;\x00\xFF\xFF\xFF\xFF\xFF&quot;,
	  (const guchar *)&quot; &lt;?xml&quot;,
	  5,
	  &quot;text/html&quot;,
	  TRUE },

&quot;text/html&quot; should obviously be &quot;text/xml&quot;... Fixed in git.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1325109</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-07-03 06:54:37 -0700</bug_when>
    <thetext>OK, thanks Dan!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>