Skip to content

Commit

Permalink
Fix #91: rename force-Origin-header flag to omit-Origin; unset it whe…
Browse files Browse the repository at this point in the history
…n Request is modified
  • Loading branch information
annevk committed Sep 7, 2015
1 parent 8453abc commit dfb8bff
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
20 changes: 10 additions & 10 deletions Overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ <h4 id="requests"><span class="secno">3.1.5 </span>Requests</h4>
changed during redirects too.

<p>A <a href="#concept-request" title="concept-request">request</a> has an associated
<dfn id="force-origin-header-flag">force-<code title="">Origin</code>-header flag</dfn>. Unless stated otherwise it is unset.
<dfn id="omit-origin-header-flag">omit-<code>Origin</code>-header flag</dfn>. Unless stated otherwise it is unset.

<p>A <a href="#concept-request" title="concept-request">request</a> has an associated
<dfn id="same-origin-data-url-flag">same-origin data-URL flag</dfn>. Unless stated otherwise it is unset.
Expand Down Expand Up @@ -2271,9 +2271,8 @@ <h3 id="http-network-or-cache-fetch"><span class="secno">5.4 </span>HTTP-network
<!-- XXX ideally we have an easier way to convert something ASCII-safe into bytes
concept-as-bytes -->

<li><p>If <var title="">httpRequest</var>'s
<a href="#force-origin-header-flag">force-<code>Origin</code>-header flag</a> is set,
<a href="#concept-header-list-append" title="concept-header-list-append">append</a>
<li><p>If <var title="">httpRequest</var>'s <a href="#omit-origin-header-flag">omit-<code>Origin</code>-header flag</a> is
unset, <a href="#concept-header-list-append" title="concept-header-list-append">append</a>
`<code title="">Origin</code>`/<var title="">httpRequest</var>'s
<a href="#concept-request-origin" title="concept-request-origin">origin</a>,
<a class="external" data-anolis-spec="html" href="https://html.spec.whatwg.org/multipage/browsers.html#ascii-serialisation-of-an-origin" title="ASCII serialization of an origin">serialized</a>
Expand Down Expand Up @@ -2608,7 +2607,6 @@ <h3 id="cors-preflight-fetch"><span class="secno">5.6 </span>CORS-preflight fetc
<a href="#concept-request-destination" title="concept-request-destination">destination</a>,
<a href="#concept-request-origin" title="concept-request-origin">origin</a> is <var title="">request</var>'s
<a href="#concept-request-origin" title="concept-request-origin">origin</a>,
<a href="#force-origin-header-flag">force-<code>Origin</code>-header flag</a> is set,
<a href="#concept-request-referrer" title="concept-request-referrer">referrer</a> is <var title="">request</var>'s
<a href="#concept-request-referrer" title="concept-request-referrer">referrer</a>, and
<a href="#concept-request-referrer-policy" title="concept-request-referrer-policy">referrer policy</a> is
Expand Down Expand Up @@ -3486,7 +3484,8 @@ <h3 id="request-class"><span class="secno">6.3 </span>Request class</h3>
<a class="external" data-anolis-spec="html" href="https://html.spec.whatwg.org/multipage/webappapis.html#entry-settings-object">entry settings object</a>,
<a href="#concept-request-window" title="concept-request-window">window</a> is <var title="">window</var>,
<a href="#concept-request-origin" title="concept-request-origin">origin</a> is "<code>client</code>",
<a href="#force-origin-header-flag">force-<code>Origin</code>-header flag</a> is set,
<a href="#omit-origin-header-flag">omit-<code>Origin</code>-header flag</a> is <var title="">request</var>'s
<a href="#omit-origin-header-flag">omit-<code>Origin</code>-header flag</a>,
<a href="#same-origin-data-url-flag">same-origin data-URL flag</a> is set,
<a href="#concept-request-referrer" title="concept-request-referrer">referrer</a> is <var title="">request</var>'s
<a href="#concept-request-referrer" title="concept-request-referrer">referrer</a>,
Expand Down Expand Up @@ -3543,10 +3542,11 @@ <h3 id="request-class"><span class="secno">6.3 </span>Request class</h3>
<li><p>Set <var title="">fallbackCredentials</var> to "<code title="">omit</code>".
</ol>

<li><p>If any of <var title="">init</var>'s members are present, set
<var title="">request</var>'s <a href="#concept-request-referrer" title="concept-request-referrer">referrer</a> to
"<code>client</code>", and <var title="">request</var>'s
<a href="#concept-request-referrer-policy" title="concept-request-referrer-policy">referrer policy</a> to the empty string.
<li><p>If any of <var title="">init</var>'s members are present, unset <var title="">request</var>'s
<a href="#omit-origin-header-flag">omit-<code>Origin</code>-header flag</a>, set <var title="">request</var>'s
<a href="#concept-request-referrer" title="concept-request-referrer">referrer</a> to "<code>client</code>", and
<var title="">request</var>'s <a href="#concept-request-referrer-policy" title="concept-request-referrer-policy">referrer policy</a> to
the empty string.

<li>
<p>If <var title="">init</var>'s <code>referrer</code> member is present, run these
Expand Down
20 changes: 10 additions & 10 deletions Overview.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ <h4>Requests</h4>
changed during redirects too.

<p>A <span title=concept-request>request</span> has an associated
<dfn>force-<code title>Origin</code>-header flag</dfn>. Unless stated otherwise it is unset.
<dfn>omit-<code>Origin</code>-header flag</dfn>. Unless stated otherwise it is unset.

<p>A <span title=concept-request>request</span> has an associated
<dfn>same-origin data-URL flag</dfn>. Unless stated otherwise it is unset.
Expand Down Expand Up @@ -2216,9 +2216,8 @@ <h3>HTTP-network-or-cache fetch</h3>
<!-- XXX ideally we have an easier way to convert something ASCII-safe into bytes
concept-as-bytes -->

<li><p>If <var title>httpRequest</var>'s
<span>force-<code>Origin</code>-header flag</span> is set,
<span title=concept-header-list-append>append</span>
<li><p>If <var title>httpRequest</var>'s <span>omit-<code>Origin</code>-header flag</span> is
unset, <span title=concept-header-list-append>append</span>
`<code title>Origin</code>`/<var title>httpRequest</var>'s
<span title=concept-request-origin>origin</span>,
<span data-anolis-spec=html title="ASCII serialization of an origin">serialized</span>
Expand Down Expand Up @@ -2553,7 +2552,6 @@ <h3>CORS-preflight fetch</h3>
<span title=concept-request-destination>destination</span>,
<span title=concept-request-origin>origin</span> is <var title>request</var>'s
<span title=concept-request-origin>origin</span>,
<span>force-<code>Origin</code>-header flag</span> is set,
<span title=concept-request-referrer>referrer</span> is <var title>request</var>'s
<span title=concept-request-referrer>referrer</span>, and
<span title=concept-request-referrer-policy>referrer policy</span> is
Expand Down Expand Up @@ -3431,7 +3429,8 @@ <h3>Request class</h3>
<span data-anolis-spec=html>entry settings object</span>,
<span title=concept-request-window>window</span> is <var title>window</var>,
<span title=concept-request-origin>origin</span> is "<code>client</code>",
<span>force-<code>Origin</code>-header flag</span> is set,
<span>omit-<code>Origin</code>-header flag</span> is <var title>request</var>'s
<span>omit-<code>Origin</code>-header flag</span>,
<span>same-origin data-URL flag</span> is set,
<span title=concept-request-referrer>referrer</span> is <var title>request</var>'s
<span title=concept-request-referrer>referrer</span>,
Expand Down Expand Up @@ -3488,10 +3487,11 @@ <h3>Request class</h3>
<li><p>Set <var title>fallbackCredentials</var> to "<code title>omit</code>".
</ol>

<li><p>If any of <var title>init</var>'s members are present, set
<var title>request</var>'s <span title=concept-request-referrer>referrer</span> to
"<code>client</code>", and <var title>request</var>'s
<span title=concept-request-referrer-policy>referrer policy</span> to the empty string.
<li><p>If any of <var title>init</var>'s members are present, unset <var title>request</var>'s
<span>omit-<code>Origin</code>-header flag</span>, set <var title>request</var>'s
<span title=concept-request-referrer>referrer</span> to "<code>client</code>", and
<var title>request</var>'s <span title=concept-request-referrer-policy>referrer policy</span> to
the empty string.

<li>
<p>If <var title>init</var>'s <code>referrer</code> member is present, run these
Expand Down

0 comments on commit dfb8bff

Please sign in to comment.