<?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>52885</bug_id>
          
          <creation_ts>2011-01-21 04:13:47 -0800</creation_ts>
          <short_desc>[Gtk] ResourceHandleSoup: do not wait for streams to close to issue didFinishLoading</short_desc>
          <delta_ts>2011-01-24 03:23:14 -0800</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>Other</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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sergio Villar Senin">svillar</reporter>
          <assigned_to name="Sergio Villar Senin">svillar</assigned_to>
          <cc>abarth</cc>
    
    <cc>eric</cc>
    
    <cc>mrobinson</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>338001</commentid>
    <comment_count>0</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2011-01-21 04:13:47 -0800</bug_when>
    <thetext>[Gtk] ResourceHandleSoup: do not wait for streams to close to issue didFinishLoading</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>338004</commentid>
    <comment_count>1</comment_count>
      <attachid>79723</attachid>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2011-01-21 04:17:10 -0800</bug_when>
    <thetext>Created attachment 79723
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>338067</commentid>
    <comment_count>2</comment_count>
      <attachid>79723</attachid>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2011-01-21 08:20:29 -0800</bug_when>
    <thetext>Comment on attachment 79723
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=79723&amp;action=review

This makes a lot of sense!

&gt; Source/WebCore/ChangeLog:9
&gt; +        No new tests as it does not change functionality. We will not wait for
&gt; +        the the input stream to close to issue didFinishLoading to WebCore

You probably want to mention here what the motiviation is then. Do you see a performance improvement, if so, is it significant?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>338150</commentid>
    <comment_count>3</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2011-01-21 10:33:19 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 79723 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=79723&amp;action=review
&gt; 
&gt; This makes a lot of sense!
&gt; 
&gt; &gt; Source/WebCore/ChangeLog:9
&gt; &gt; +        No new tests as it does not change functionality. We will not wait for
&gt; &gt; +        the the input stream to close to issue didFinishLoading to WebCore
&gt; 
&gt; You probably want to mention here what the motiviation is then. Do you see a performance improvement, if so, is it significant?

The performance improvement exists but it&apos;s very subtle as it won&apos;t be noticed unless we have a lot of asynchronous operations taking place at the same time, something that, on the other hand, is very likely to happen with complex web pages.

I think even an small improvement worths the change as it&apos;s very simple but no strong feelings. At the same time it also seems more correct to issue the notification there than in a stream closing callback.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>338345</commentid>
    <comment_count>4</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2011-01-21 14:26:52 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; I think even an small improvement worths the change as it&apos;s very simple but no strong feelings. At the same time it also seems more correct to issue the notification there than in a stream closing callback.

I definitely agree that this patch is worthwhile. It should be fine to just mention this performance improvment in the ChangeLog, so that those reading later can understand the motivation for the change. :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>338921</commentid>
    <comment_count>5</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2011-01-24 02:57:31 -0800</bug_when>
    <thetext>Committed r76498: &lt;http://trac.webkit.org/changeset/76498&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>338926</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-01-24 03:23:14 -0800</bug_when>
    <thetext>http://trac.webkit.org/changeset/76498 might have broken Qt Linux Release
The following tests are not passing:
inspector/debugger-autocontinue-on-syntax-error.html
inspector/debugger-scripts.html
inspector/storage-panel-dom-storage.html
inspector/styles-add-blank-property.html</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>79723</attachid>
            <date>2011-01-21 04:17:10 -0800</date>
            <delta_ts>2011-01-21 08:20:29 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-52885-20110121131708.patch</filename>
            <type>text/plain</type>
            <size>2395</size>
            <attacher name="Sergio Villar Senin">svillar</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZyBiL1NvdXJjZS9XZWJDb3JlL0No
YW5nZUxvZwppbmRleCA2OTM1NmFiYzI2YmZiNjIyOTk5Yjk2MTg0MDk5NzAzNTg0OGI5NzBiLi5l
NTVhNTNiY2Q5NTg1NjcwNTllZjc1Yzk0ZTkxNTE0Y2NiNzQ2ZGY4IDEwMDY0NAotLS0gYS9Tb3Vy
Y2UvV2ViQ29yZS9DaGFuZ2VMb2cKKysrIGIvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCkBAIC0x
LDMgKzEsMTcgQEAKKzIwMTEtMDEtMjEgIFNlcmdpbyBWaWxsYXIgU2VuaW4gIDxzdmlsbGFyQGln
YWxpYS5jb20+CisKKyAgICAgICAg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IEdBc3lu
Y1Jlc3VsdCogYXN5bmNSZXN1bHQsIGdwb2ludGVyIGRhdGEpCkBAIC04NTQsNiArODQ0LDEwIEBA
IHN0YXRpYyB2b2lkIHJlYWRDYWxsYmFjayhHT2JqZWN0KiBzb3VyY2UsIEdBc3luY1Jlc3VsdCog
YXN5bmNSZXN1bHQsIGdwb2ludGVyIGRhCiAgICAgfQogCiAgICAgaWYgKCFieXRlc1JlYWQpIHsK
KyAgICAgICAgLy8gRmluaXNoIHRoZSBsb2FkLiBXZSBkbyBub3Qgd2FpdCBmb3IgdGhlIHN0cmVh
bSB0bworICAgICAgICAvLyBjbG9zZS4gSW5zdGVhZCB3ZSBiZXR0ZXIgbm90aWZ5IFdlYkNvcmUg
YXMgc29vbiBhcyBwb3NzaWJsZQorICAgICAgICBjbGllbnQtPmRpZEZpbmlzaExvYWRpbmcoaGFu
ZGxlLmdldCgpLCAwKTsKKwogICAgICAgICBnX2lucHV0X3N0cmVhbV9jbG9zZV9hc3luYyhkLT5t
X2lucHV0U3RyZWFtLmdldCgpLCBHX1BSSU9SSVRZX0RFRkFVTFQsCiAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgIDAsIGNsb3NlQ2FsbGJhY2ssIDApOwogICAgICAgICByZXR1cm47
Cg==
</data>
<flag name="review"
          id="71147"
          type_id="1"
          status="+"
          setter="mrobinson"
    />
          </attachment>
      

    </bug>

</bugzilla>