<?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>43614</bug_id>
          
          <creation_ts>2010-08-06 01:58:55 -0700</creation_ts>
          <short_desc>XMLHttpRequest&apos;s abort() causes &quot;Failed to load resource: cancelled&quot; error</short_desc>
          <delta_ts>2011-03-10 06:55:47 -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>XML</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>OS X 10.6</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>55764</dup_id>
          
          <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="Jaka Jančar">jaka</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>caseq</cc>
    
    <cc>jaka</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>261157</commentid>
    <comment_count>0</comment_count>
    <who name="Jaka Jančar">jaka</who>
    <bug_when>2010-08-06 01:58:55 -0700</bug_when>
    <thetext>My webapp may abort XMLHttpRequests, if the data is no longer needed, before it has finished loading. This is normal behavior.

Unfortunately, this causes a bunch of &quot;Failed to load resource: cancelled&quot; errors in the console.

Setting an onabort handler doesn&apos;t make a difference. Wrapping abort() into try..catch doesn&apos;t either.

Example:

var xhr = new XMLHttpRequest;
xhr.open(&apos;GET&apos;, &apos;http://www.google.com/&apos;);
xhr.send();
xhr.abort(); // www.google.com Failed to load resource: cancelled</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>261191</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-08-06 04:30:27 -0700</bug_when>
    <thetext>Yes, we probably shouldn&apos;t be logging the cancelled error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>365142</commentid>
    <comment_count>2</comment_count>
    <who name="Andrey Kosyakov">caseq</who>
    <bug_when>2011-03-10 06:55:47 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 55764 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>