<?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>24080</bug_id>
          <alias>fetch</alias>
          <creation_ts>2013-12-12 21:24:23 +0000</creation_ts>
          <short_desc>Integrate with Fetch specification</short_desc>
          <delta_ts>2015-09-16 11:54:46 +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>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>blocked on dependencies</status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          <dependson>26836</dependson>
          <blocked>24031</blocked>
    
    <blocked>24137</blocked>
    
    <blocked>24613</blocked>
    
    <blocked>24659</blocked>
    
    <blocked>26830</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Ian &apos;Hixie&apos; Hickson">ian</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>annevk</cc>
    
    <cc>bobbyholley</cc>
    
    <cc>bzbarsky</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>mkwst</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>97538</commentid>
    <comment_count>0</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-12-12 21:24:23 +0000</bug_when>
    <thetext></thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97592</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-12-13 14:34:38 +0000</bug_when>
    <thetext>Please consider &quot;HTML fetch&quot; obsolete when you do this. Please first review and request appropriate hooks. The current setup is very barebones and requires setting up requests to pass to fetch and handling responses that are returned. I&apos;m fine with adding sugar, but I have not yet figured out exactly what that should be myself.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100152</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-02-10 14:56:08 +0000</bug_when>
    <thetext>So in bug 24137 comment 19 you say we need to pick the right event loop. This would be a &quot;networking task source&quot; associated with a set of browsing contexts or a worker. So should you pass in either a Document or a WorkerGlobalScope as a handle for Fetch to find the relevant things?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105367</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-05-07 23:07:13 +0000</bug_when>
    <thetext>Ideally I&apos;d pass in an event loop, no? I&apos;m not really sure.

How confident are you in the current fetch spec text?

What exactly is it I should be merging in? In bug 24613 you said something about one of the algorithms being something you want back into HTML?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105436</commentid>
    <comment_count>4</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-05-08 14:28:41 +0000</bug_when>
    <thetext>The problem I have is that everyone uses Fetch, but nobody really cares about the details and overall platform coherence. So it&apos;s really hard to figure out what parameters Fetch needs and what the easiest setup could be given the various requirements we have.

E.g. for service workers we need a global. We can use that global for CSP too. Can we use it for Referer determination (also partially a CSP matter these days)? We always need an origin, does that need to be passed in explicitly, or can we get that from a global too?

Most of the structure is sound I think, but the details are not cemented.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105437</commentid>
    <comment_count>5</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-05-08 14:30:14 +0000</bug_when>
    <thetext>Once HTML uses this, it should use the http://fetch.spec.whatwg.org/#concept-fetch algorithm almost directly, perhaps with shorthands defined for more complicated fetching scenarios, such as &quot;image fetch&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109709</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-07-31 21:14:28 +0000</bug_when>
    <thetext>(Currently discussing Fetch&apos;s use of &apos;client&apos; in webappsec.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111218</commentid>
    <comment_count>7</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-09-08 23:34:18 +0000</bug_when>
    <thetext>Why do you need a global for service workers?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111240</commentid>
    <comment_count>8</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-09-09 09:11:38 +0000</bug_when>
    <thetext>Currently we check if the client (environment / global object) is from a service worker to go directly to the network. (We also use that client for referrer, origin, etc.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111275</commentid>
    <comment_count>9</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-09-09 15:57:34 +0000</bug_when>
    <thetext>Maybe we should extend the script settings object to just me an &quot;environment settings object&quot;, and shunt that around. That would let us maintain specific referrers, origins, event loops, etc, things that aren&apos;t always set with a global or Realm. There&apos;s a global hung off the side of the settings object already.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111278</commentid>
    <comment_count>10</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-09-09 16:06:10 +0000</bug_when>
    <thetext>An environment settings object would work for me. That would indeed help with queuing tasks on the right event loop as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123228</commentid>
    <comment_count>11</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-09-16 11:54:46 +0000</bug_when>
    <thetext>https://github.com/whatwg/html/issues/95</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>