<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>27841</bug_id>
          
          <creation_ts>2015-01-15 23:10:29 +0000</creation_ts>
          <short_desc>Aborting request</short_desc>
          <delta_ts>2015-02-17 12:39:41 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>Fetch</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Arthur Stolyar">nekr.fabula</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>mike</cc>
          
          <qa_contact>sideshowbarker+fetchspec</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>117252</commentid>
    <comment_count>0</comment_count>
    <who name="Arthur Stolyar">nekr.fabula</who>
    <bug_when>2015-01-15 23:10:29 +0000</bug_when>
    <thetext>Did not found any way to abort fetch request. Did I miss something there?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117273</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-01-16 09:28:08 +0000</bug_when>
    <thetext>See https://github.com/whatwg/fetch/issues/20 for some discussion on the matter.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117277</commentid>
    <comment_count>2</comment_count>
    <who name="Arthur Stolyar">nekr.fabula</who>
    <bug_when>2015-01-16 16:14:51 +0000</bug_when>
    <thetext>I have library there I made ajax abtraction which uses native Promise and returns them. Without ability to abort such requests it&apos;s a pain developing normal apps which uses ajax. So I decided to make some sort of subclassing of Promise, so ajax returns promise with additional method &quot;abort&quot;. Of course, this cannot help in all situations such as Promise.all(...), but at least it works in situations such this:

var req = ajax(...).then(funnction() {return new Promise(...)});
...
req.abort(); // subclass of promise, actually native promise monkey-patched with |abort| method
...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117986</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-02-17 12:39:41 +0000</bug_when>
    <thetext>https://github.com/slightlyoff/ServiceWorker/issues/625 is now tracking this.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>