<?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>27853</bug_id>
          
          <creation_ts>2015-01-19 12:09:22 +0000</creation_ts>
          <short_desc>Yet another small fixes</short_desc>
          <delta_ts>2015-01-20 09:25:27 +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>FIXED</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="Arkadiusz Michalski (Spirit)">crimsteam</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>117310</commentid>
    <comment_count>0</comment_count>
    <who name="Arkadiusz Michalski (Spirit)">crimsteam</who>
    <bug_when>2015-01-19 12:09:22 +0000</bug_when>
    <thetext>I caught a few more things:

===

For Request() constructor, step 3.,  &quot;referrer is client&quot; &lt;&lt; client is initial value for &quot;referrer&quot; so probably can be skip here:
https://fetch.spec.whatwg.org/#concept-request-referrer

Btw, why &quot;context&quot; (https://fetch.spec.whatwg.org/#concept-request-context) hasn&apos;t initial value, but we see that &quot;context frame type&quot; has. If you set initial for &quot;context&quot; (let say fetch) then  &quot;context is fetch&quot; in Request() constructor, step 3., can be removed too. 


2. &quot;Let request be input&apos;s associated request,...&quot; &lt;&lt; this second request can/should refer to https://fetch.spec.whatwg.org/#concept-request-request

In step 13., &quot;force cache&quot; should not be wrapped by &lt;dd&gt;?

In step 21.4 you use more restrict append algo (https://fetch.spec.whatwg.org/#concept-headers-append), but for Response() constructor step 7.3 append is just https://fetch.spec.whatwg.org/#concept-header-list-append. This two constructor have very similar steps for body and I wondering why they use a different append, it&apos;s intentional?

===

For &quot;header list&quot; (https://fetch.spec.whatwg.org/#concept-headers-header-list), you can add &quot;, which is initially empty&quot;.

=== 

https://fetch.spec.whatwg.org/#http-access-control-allow-origin
&quot;Indicates whether a resource can be shared, via returning the literal value of the Origin reques....&quot; &lt;&lt; not `Origin`?

===

Why in fill algo (https://fetch.spec.whatwg.org/#concept-headers-fill) header&apos;s key must be converted to ByteString, but for sequence (step 2.) that operation is not needed?

IDL definition:
sequence&lt;sequence&lt;ByteString&gt;&gt;
OpenEndedDictionary&lt;ByteString&gt;

===

In basic fetch algo (https://fetch.spec.whatwg.org/#concept-basic-fetch), for &quot;blob&quot; scheme, you define /length/ variable (step 3.), but use it only one time (step 5.). I think you can skip step 3. and write just: 
4. Append `Content-Length`/blob&apos;s size to response&apos;s header list.

After this we get shorter algo. Notice, that for blob&apos;s type you don&apos;t define any variable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117341</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-01-20 09:25:27 +0000</bug_when>
    <thetext>https://github.com/whatwg/fetch/commit/bb2c619b74ffc5bc3d048fb75fbb5a89a0d673b2

&gt; Btw, why &quot;context&quot; (https://fetch.spec.whatwg.org/#concept-request-context)
&gt; hasn&apos;t initial value, but we see that &quot;context frame type&quot; has.

I want those creating requests to think about context.

&gt; In step 21.4 you use more restrict append algo
&gt; (https://fetch.spec.whatwg.org/#concept-headers-append), but for Response()
&gt; constructor step 7.3 append is just
&gt; https://fetch.spec.whatwg.org/#concept-header-list-append. This two
&gt; constructor have very similar steps for body and I wondering why they use a
&gt; different append, it&apos;s intentional?

Yes, Request is much more security sensitive.


&gt; Why in fill algo (https://fetch.spec.whatwg.org/#concept-headers-fill)
&gt; header&apos;s key must be converted to ByteString, but for sequence (step 2.)
&gt; that operation is not needed?
&gt; 
&gt; IDL definition:
&gt; sequence&lt;sequence&lt;ByteString&gt;&gt;
&gt; OpenEndedDictionary&lt;ByteString&gt;

I&apos;m awaiting some resolution to bug 27008.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>