<?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>25855</bug_id>
          
          <creation_ts>2009-05-18 06:28:06 -0700</creation_ts>
          <short_desc>[GTK] Should support proper Content Encoding</short_desc>
          <delta_ts>2010-05-04 16:39:49 -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>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Gtk, Soup</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gustavo Noronha (kov)">gustavo</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>baptiste.millemathias</cc>
    
    <cc>christian</cc>
    
    <cc>commit-queue</cc>
    
    <cc>danw</cc>
    
    <cc>eric225125</cc>
    
    <cc>martin.sourada</cc>
    
    <cc>sa</cc>
    
    <cc>slomo</cc>
    
    <cc>tevaum</cc>
    
    <cc>uzytkownik2</cc>
    
    <cc>webkit.review.bot</cc>
    
    <cc>zan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>121790</commentid>
    <comment_count>0</comment_count>
    <who name="Gustavo Noronha (kov)">gustavo</who>
    <bug_when>2009-05-18 06:28:06 -0700</bug_when>
    <thetext>Currently WebKitGTK+ is limited to using identity as content encoding. We are unable to take advantage of compression, for faster transfer rates, for instance. See https://bugs.webkit.org/show_bug.cgi?id=25854 and http://bugzilla.gnome.org/show_bug.cgi?id=522772 for more information.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124636</commentid>
    <comment_count>1</comment_count>
    <who name="Xan Lopez">xan.lopez</who>
    <bug_when>2009-06-06 02:17:47 -0700</bug_when>
    <thetext>*** Bug 26233 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>130180</commentid>
    <comment_count>2</comment_count>
    <who name="Jan Alonzo">jmalonzo</who>
    <bug_when>2009-07-07 04:04:37 -0700</bug_when>
    <thetext>*** Bug 25481 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>146997</commentid>
    <comment_count>3</comment_count>
    <who name="Xan Lopez">xan.lopez</who>
    <bug_when>2009-09-13 14:39:43 -0700</bug_when>
    <thetext>*** Bug 29221 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>152695</commentid>
    <comment_count>4</comment_count>
    <who name="Xan Lopez">xan.lopez</who>
    <bug_when>2009-10-06 06:07:55 -0700</bug_when>
    <thetext>*** Bug 30066 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>154327</commentid>
    <comment_count>5</comment_count>
    <who name="Dan Winship">danw</who>
    <bug_when>2009-10-13 07:16:08 -0700</bug_when>
    <thetext>OK, since real Content-Encoding support is probably not coming until GNOME 2.30, and we&apos;re continuing to trip over sites that use &quot;Content-Encoding: gzip&quot; even though we send &quot;Accept-Encoding: identity&quot; (notably archive.org), maybe a gross hack is in order... what we&apos;d do is, check from gotHeadersCallback if the response includes &quot;Content-Encoding: gzip&quot;; if so, disconnect from content-sniffed and got-chunk and connect to got-body. Wait until the got-body handler is called, unzip the body data all at once, call soup_content_sniffer_sniff() if necessary, and then belatedly emit all the webkit &quot;signals&quot;. This would break incremental rendering of the data, but it would only be getting used on broken sites anyway.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>156526</commentid>
    <comment_count>6</comment_count>
    <who name="Gustavo Noronha (kov)">gustavo</who>
    <bug_when>2009-10-21 10:33:49 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; OK, since real Content-Encoding support is probably not coming until GNOME
&gt; 2.30, and we&apos;re continuing to trip over sites that use &quot;Content-Encoding: gzip&quot;
&gt; even though we send &quot;Accept-Encoding: identity&quot; (notably archive.org), maybe a
&gt; gross hack is in order... what we&apos;d do is, check from gotHeadersCallback if the
&gt; response includes &quot;Content-Encoding: gzip&quot;; if so, disconnect from
&gt; content-sniffed and got-chunk and connect to got-body. Wait until the got-body
&gt; handler is called, unzip the body data all at once, call
&gt; soup_content_sniffer_sniff() if necessary, and then belatedly emit all the
&gt; webkit &quot;signals&quot;. This would break incremental rendering of the data, but it
&gt; would only be getting used on broken sites anyway.

I have been thinking the same. Are you planning to write such a patch, or should I try to secure some time to get it done?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>156547</commentid>
    <comment_count>7</comment_count>
    <who name="Dan Winship">danw</who>
    <bug_when>2009-10-21 11:04:57 -0700</bug_when>
    <thetext>i was not planning to write it myself</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157147</commentid>
    <comment_count>8</comment_count>
    <who name="Dan Winship">danw</who>
    <bug_when>2009-10-23 05:17:54 -0700</bug_when>
    <thetext>ok, i&apos;m working on avb&apos;s update of my original patches. see the linked b.g.o bug</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>161344</commentid>
    <comment_count>9</comment_count>
    <who name="Sven Arvidsson">sa</who>
    <bug_when>2009-11-07 05:42:10 -0800</bug_when>
    <thetext>*** Bug 30934 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>162405</commentid>
    <comment_count>10</comment_count>
    <who name="">eric225125</who>
    <bug_when>2009-11-11 01:54:02 -0800</bug_when>
    <thetext>I just wanted to let you know in case you didn&apos;t see it in the gnome bug posted in the first message that support for proper content encoding should be released soon with libsoup-2.28.2.  There is also a patch there that supposedly enables these features for webkit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167222</commentid>
    <comment_count>11</comment_count>
    <who name="Gustavo Noronha (kov)">gustavo</who>
    <bug_when>2009-11-30 06:20:46 -0800</bug_when>
    <thetext>*** Bug 31982 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>172272</commentid>
    <comment_count>12</comment_count>
      <attachid>44968</attachid>
    <who name="Dan Winship">danw</who>
    <bug_when>2009-12-16 05:59:12 -0800</bug_when>
    <thetext>Created attachment 44968
patch to use SoupContentDecoder

(note that while this claims to require libsoup &gt;= 2.28.2, i haven&apos;t actually updated the gnome-2-28 branch yet, so you&apos;ll want to test against master. that will be fixed before this gets committed of course.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>172273</commentid>
    <comment_count>13</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2009-12-16 06:01:35 -0800</bug_when>
    <thetext>style-queue ran check-webkit-style on attachment 44968 without any errors.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>172381</commentid>
    <comment_count>14</comment_count>
    <who name="Christian Dywan">christian</who>
    <bug_when>2009-12-16 10:29:23 -0800</bug_when>
    <thetext>(In reply to comment #12)
&gt; Created an attachment (id=44968) [details]
&gt; patch to use SoupContentDecoder
&gt; 
&gt; (note that while this claims to require libsoup &gt;= 2.28.2, i haven&apos;t actually
&gt; updated the gnome-2-28 branch yet, so you&apos;ll want to test against master. that
&gt; will be fixed before this gets committed of course.)

The patch needs an #ifdef SOUP_TYPE_CONTENT_DECODER because otherwise it fails with current releases.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>172403</commentid>
    <comment_count>15</comment_count>
      <attachid>44968</attachid>
    <who name="Gustavo Noronha (kov)">gustavo</who>
    <bug_when>2009-12-16 10:52:54 -0800</bug_when>
    <thetext>Comment on attachment 44968
patch to use SoupContentDecoder

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>172405</commentid>
    <comment_count>16</comment_count>
    <who name="Gustavo Noronha (kov)">gustavo</who>
    <bug_when>2009-12-16 10:53:55 -0800</bug_when>
    <thetext>(In reply to comment #14)
&gt; The patch needs an #ifdef SOUP_TYPE_CONTENT_DECODER because otherwise it fails
&gt; with current releases.

We decided to not handle this, and assume people mostly know what they&apos;re doing when using development releases. 2.29.4 will have it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>172421</commentid>
    <comment_count>17</comment_count>
      <attachid>44968</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2009-12-16 11:14:44 -0800</bug_when>
    <thetext>Comment on attachment 44968
patch to use SoupContentDecoder

Clearing flags on attachment: 44968

Committed r52208: &lt;http://trac.webkit.org/changeset/52208&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>172422</commentid>
    <comment_count>18</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2009-12-16 11:14:51 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>220869</commentid>
    <comment_count>19</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2010-05-04 16:39:49 -0700</bug_when>
    <thetext>*** Bug 29768 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>44968</attachid>
            <date>2009-12-16 05:59:12 -0800</date>
            <delta_ts>2009-12-16 11:14:44 -0800</delta_ts>
            <desc>patch to use SoupContentDecoder</desc>
            <filename>content-decoder.diff</filename>
            <type>text/plain</type>
            <size>3541</size>
            <attacher name="Dan Winship">danw</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL0NoYW5nZUxvZyBiL0NoYW5nZUxvZwppbmRleCA5OGQ1ZGU0Li4zZjgzOWEz
IDEwMDY0NA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