<?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>4858</bug_id>
          
          <creation_ts>2005-09-05 14:49:26 -0700</creation_ts>
          <short_desc>204 response stops timers</short_desc>
          <delta_ts>2011-05-05 11:33:56 -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>Page Loading</component>
          <version>420+</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></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction</keywords>
          <priority>P3</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Carsten Bormann">cabo</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>ian</cc>
    
    <cc>mason</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>18768</commentid>
    <comment_count>0</comment_count>
    <who name="Carsten Bormann">cabo</who>
    <bug_when>2005-09-05 14:49:26 -0700</bug_when>
    <thetext>I&apos;m still working on an isolated test case, but I have a page that submits a form, receives a 204 response, 
which means I should stay on the same page, which happens alright in Safari 2.0.1.

The problem: all the timers that were running on the page seem to stop.

(I understand that handling 204 responses is unchartered territory for many, but it has become a more 
likely case recently with the interest in AJAX style interfaces.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19084</commentid>
    <comment_count>1</comment_count>
      <attachid>3813</attachid>
    <who name="Joost de Valk (AlthA)">joost</who>
    <bug_when>2005-09-08 04:37:39 -0700</bug_when>
    <thetext>Created attachment 3813
Testcase

This testcase needs php installed, for the 204-test.php to return a 204.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19085</commentid>
    <comment_count>2</comment_count>
    <who name="Joost de Valk (AlthA)">joost</who>
    <bug_when>2005-09-08 04:38:22 -0700</bug_when>
    <thetext>Behavior as described confiremd and reproduced in attached testcase. Don&apos;t know if this is fixable and 
even if this is supposed to be fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>175700</commentid>
    <comment_count>3</comment_count>
    <who name="mason">mason</who>
    <bug_when>2009-12-29 13:53:11 -0800</bug_when>
    <thetext>+1

Just ran into this issue on a current project. Am seeing this unexpected behavior in Safari 4.0.4 / Mac.

Can confirm that Google Chrome 4.0/Win/Mac, Firefox 3.0,3.5/Win/Mac and IE 6/7/8 do NOT cancel running timers as the result of a 204 status HTTP response.

It is surprising that Chrome doesn&apos;t have this flaw as it is also based on WebKit, no?

See also this blog post (as more evidence of this as unexpected behavior): 
  - http://www.harukizaemon.com/2008/04/getting-too-fancy-with-http-response.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>398867</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-05-05 11:33:56 -0700</bug_when>
    <thetext>Luiz Agostini alerted me to the fact that this no longer fails on Safari 5.0.5 on Mac, and I can confirm. Also tested ToT, just in case.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>3813</attachid>
            <date>2005-09-08 04:37:39 -0700</date>
            <delta_ts>2005-09-08 04:37:39 -0700</delta_ts>
            <desc>Testcase</desc>
            <filename>testcase.zip</filename>
            <type>application/zip</type>
            <size>664</size>
            <attacher name="Joost de Valk (AlthA)">joost</attacher>
            
              <data encoding="base64">UEsDBBQACAAIAABiKDMAAAAAAAAAAAAAAAAMABAAMjA0LXRlc3QucGhwVVgMADgiIENfDyBD9QH1
AbOxL8go4OLMSE1MSS3SUPIICQnQN9QzUDAyMFHwy1cISi0uyM8rTlXStOayt+MCAFBLBwjOIH2O
MAAAAC4AAABQSwMEFAAIAAgAhWwoMwAAAAAAAAAAAAAAAAkAEAB0ZXN0Lmh0bWxVWAwAOCIgQyki
IEP1AVAARVG7csMgEOz5ijON7RnF8mTiTlaTNCnS5QeQdLKIMWjgkK3J5N9zAsdpeBy3u+xeNdDF
1KIaUHW8hdbrkYDmEY+S8Ebll5pUrspa9NG2pJ0F0hfsPsJpsxXfYlIe6BiQPrnqIm2kMuhpsz5A
wNbZLqzWW1kc9vv9VvyIqsx8LFfeZRvXzbV4Nbo9Aw0ITSRilQaNuxagekIPD7ICZhfhhATKQlLa
wXufiu3CwADbwVXToO0/Kr8ldjYWCJ73LxKMtucsA5qK9JoYGW4MWEfQ6TAaNReAE7LvwcXTwL0Q
+GQ6xrYqBkzIROaRorcB1CKwqxpfLv7S2jt/4U3bMf5FnI1KmJSJfH3LYjne/JPG3VZSOJvC4Zk8
gpdLfndKBYPH/ihZ8mkxtxuHUdZ/NqtSLb05ZM48TfwXUEsHCA0sEpI4AQAA+QEAAFBLAQIVAxQA
CAAIAABiKDPOIH2OMAAAAC4AAAAMAAwAAAAAAAAAAECkgQAAAAAyMDQtdGVzdC5waHBVWAgAOCIg
Q18PIENQSwECFQMUAAgACACFbCgzDSwSkjgBAAD5AQAACQAMAAAAAAAAAABApIF6AAAAdGVzdC5o
dG1sVVgIADgiIEMpIiBDUEsFBgAAAAACAAIAiQAAAPkBAAAAAA==
</data>

          </attachment>
      

    </bug>

</bugzilla>