<?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>16269</bug_id>
          
          <creation_ts>2007-12-03 03:27:47 -0800</creation_ts>
          <short_desc>WebKit fails WICD XMLHttpRequest gzip&apos;d content test</short_desc>
          <delta_ts>2010-04-27 13:38:11 -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>XML</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc>http://www.w3.org/2004/CDF/TestSuite/WICD_CDR_WP1/test-encoding-gzip.xhtml</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>15836</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>cgriego</cc>
    
    <cc>timur.mehrvarz</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>63119</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-12-03 03:27:47 -0800</bug_when>
    <thetext>WebKit fails WICD XMLHttpRequest gzip&apos;d content test

http://www.w3.org/2004/CDF/TestSuite/WICD_CDR_WP1/test-encoding-gzip.xhtml

Not sure why.  They seem to be sending the content with the proper headers:

HackTop [35683:WebKit]% curl -I &quot;http://www.w3.org/2004/CDF/TestSuite/WICD_CDR_WP1/test-encoding-gzip.txt.tgz&quot;
HTTP/1.1 200 OK
Date: Mon, 03 Dec 2007 11:25:29 GMT
Server: Apache/2
Last-Modified: Wed, 14 Nov 2007 15:03:40 GMT
ETag: &quot;43ee4dee72b00&quot;
Accept-Ranges: bytes
Content-Length: 155
Cache-Control: max-age=21600
Expires: Mon, 03 Dec 2007 17:25:29 GMT
P3P: policyref=&quot;http://www.w3.org/2001/05/P3P/p3p.xml&quot;
Content-Type: text/plain
Content-Encoding: x-gzip

I don&apos;t think this is an SVG-specific issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63134</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-12-03 05:26:57 -0800</bug_when>
    <thetext>I think the issue here may be that CFNetwork doesn&apos;t recognise x-gzip.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63675</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2007-12-08 08:12:50 -0800</bug_when>
    <thetext>I think that this test is not correct - the server sends &quot;Content-Encoding: x-gzip&quot; even though we didn&apos;t ask for it in Accept-Encoding.

CFNetwork does support &quot;gzip&quot; content encoding, as specified in RFC 2616. Support for &quot;x-gzip&quot; is not a MUST-level requirement, so it is conforming to omit it even when &quot;gzip&quot; is supported.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64668</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-12-18 14:47:02 -0800</bug_when>
    <thetext>Ok, well, I think regardless we should encourage CFNetwork to support the x-gzip type.  This bug should be moved to Radar and then closed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64669</commentid>
    <comment_count>4</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-12-18 14:47:23 -0800</bug_when>
    <thetext>I&apos;ve notified Timur that I believe the test is incorrect as is.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64674</commentid>
    <comment_count>5</comment_count>
    <who name="timur mehrvarz">timur.mehrvarz</who>
    <bug_when>2007-12-18 15:02:03 -0800</bug_when>
    <thetext>The x-gzip header: it&apos;s an issue with the w3.org servers. They should just send &quot;gzip&quot;:
http://lists.w3.org/Archives/Public/public-cdf/2007Dec/0002.html

I am waiting for a solution and will update you here. 

Other than the Content-Encoding, that comes from the server, I assume the test itself is OK. Please don&apos;t close this just yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64695</commentid>
    <comment_count>6</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-12-18 22:14:38 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; Ok, well, I think regardless we should encourage CFNetwork to support the
&gt; x-gzip type.  This bug should be moved to Radar and then closed.

See Bug 9521.

&lt;rdar://problem/5418646&gt;
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65280</commentid>
    <comment_count>7</comment_count>
    <who name="timur mehrvarz">timur.mehrvarz</who>
    <bug_when>2007-12-26 00:59:21 -0800</bug_when>
    <thetext>The w3.org server configuration has been modified, so that Content-Encoding: gzip is now being returned in all cases (instead of x-gzip). However Safari/WebKit still does not decode the text file.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65282</commentid>
    <comment_count>8</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2007-12-26 01:41:47 -0800</bug_when>
    <thetext>The headers are a bit weird still - I think they trigger a CFNetwork heuristic for misconfigured servers, and it decides that the file is supposed to be downloaded as is, not decoded and displayed. Namely,

1. The file has a .tgz extension.
2. Its Content-Type is text/plain.
3. Its Content-Encoding is gzip.

(1) and (2) look highly improbable in combination.

So, while this test is now formally valid, it still pushes the limits a bit. OTOH, it&apos;s clearly a bug that CFNetwork&apos;s heuristic for main resources is enabled for XMLHttpRequest responses (and for subresources, see bug 10409, bug 9521).

We need a way to suppress this CFNetwork heuristic.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65286</commentid>
    <comment_count>9</comment_count>
    <who name="timur mehrvarz">timur.mehrvarz</who>
    <bug_when>2007-12-26 06:00:12 -0800</bug_when>
    <thetext>It&apos;s working now. I created a new copy of the gziped txt document, but this time, I have named it &quot;test-encoding-gzip.gz.txt&quot;. Also, I am using it from a new test parent document, which is called &quot;test-encoding-gzip2.xhtml&quot;. This is now the official, referenced test, the one that you get, when you start from the index.
http://www.w3.org/2004/CDF/TestSuite/WICD_CDR_WP1/wicdcore.xhtml#core55

This way, I can turn it green now in our implementation matrix - and, in case you want to take a look at the CFNetwork&apos;s heuristic, the old URL&apos;s still exist and does show the issue still.

Thank you.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65325</commentid>
    <comment_count>10</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-12-26 21:03:34 -0800</bug_when>
    <thetext>&lt;rdar://problem/5663656&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>217891</commentid>
    <comment_count>11</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-04-27 13:37:07 -0700</bug_when>
    <thetext>The test fails for me with Safari 4.0.5 on Mac OS X 10.5.8. I thought it was supposed to pass now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>217893</commentid>
    <comment_count>12</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-04-27 13:38:11 -0700</bug_when>
    <thetext>Oops, sorry - I tested the bug URL, which is supposed to fail until CFNetwork is changed. The new one works correctly.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>