<?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>20179</bug_id>
          
          <creation_ts>2008-07-26 03:39:16 -0700</creation_ts>
          <short_desc>XMLHttpRequest.abort() problem</short_desc>
          <delta_ts>2009-07-29 17:11:43 -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>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc>http://www.w3.org/TR/XMLHttpRequest/#abort</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="bugzilla33">bugzilla33</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>jchaffraix</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>86995</commentid>
    <comment_count>0</comment_count>
    <who name="bugzilla33">bugzilla33</who>
    <bug_when>2008-07-26 03:39:16 -0700</bug_when>
    <thetext>1. http://www.w3.org/TR/XMLHttpRequest/#abort
2. browser doesn&apos;t switch the state to DONE (4) and doesn&apos;t dispatch a readystatechange on XMLHttpRequest.abort() when:
   a) state is OPENED (1) and send() flag is &quot;true&quot;;
   b) state is HEADERS_RECEIVED (2);
   c) state is LOADING (3).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87701</commentid>
    <comment_count>1</comment_count>
    <who name="Julien Chaffraix">jchaffraix</who>
    <bug_when>2008-08-02 15:30:30 -0700</bug_when>
    <thetext>(In reply to comment #0)
&gt; 1. http://www.w3.org/TR/XMLHttpRequest/#abort

I have read again the specification and the code. I did see a small mismatch: we check for state &lt;= OPENED and the send flag is false instead of state == UNSENT or state == OPENED and the send flag is false. However the send() flag is false for the UNSENT state so it should be harmless.

&gt; 2. browser doesn&apos;t switch the state to DONE (4) and doesn&apos;t dispatch a
&gt; readystatechange on XMLHttpRequest.abort() when:
&gt;    a) state is OPENED (1) and send() flag is &quot;true&quot;;
&gt;    b) state is HEADERS_RECEIVED (2);
&gt;    c) state is LOADING (3).

The 3 last points are covered by a regression test (http://trac.webkit.org/browser/trunk/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-abort-readyState-shouldDispatchEvent.html).

Could you provide us a test case or a real page that shows the bug you are mentioning? And give us all the details about your platform (WebKit revision, OS...)?

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>135739</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2009-07-29 17:11:43 -0700</bug_when>
    <thetext>Resolving as INVALID, as there was no response to the above comment, and it&apos;s not clear if there is a bug to investigate here.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>