Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating to fit with fetch aborting #152

Merged
merged 6 commits into from Sep 8, 2017
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 6 additions & 12 deletions xhr.bs
Expand Up @@ -283,7 +283,8 @@ registered whose <b>type</b> is one of
<!-- No need to mention upload event listeners as they happen during /opened/. -->

<p>If an {{XMLHttpRequest}} object is garbage collected while its
connection is still open, the user agent must <a>terminate the request</a>.
connection is still open, the user agent must <a for=fetch lt=terminated>terminate</a> the ongoing
fetch operated by the {{XMLHttpRequest}} object.


<h3 id=event-handlers>Event handlers</h3>
Expand Down Expand Up @@ -413,13 +414,6 @@ turn causes the <a>use-CORS-preflight flag</a> to be set.)

<hr>

<p>To <dfn>terminate the request</dfn>,
<a for=fetch>terminate</a> the
<a for=/>fetch</a> algorithm operated by the
{{XMLHttpRequest}} object.



<h4 id=the-open()-method>The <code>open()</code> method</h4>

<dl class=domintro>
Expand Down Expand Up @@ -515,7 +509,8 @@ methods, when invoked, must run these steps:
<code>InvalidAccessError</code> exception.

<li>
<p><a>Terminate the request</a>.
<p><a for=fetch lt=terminated>Terminate</a> the ongoing fetch operated by the
{{XMLHttpRequest}} object.

<p class=note>A <a for=/>fetch</a> can be
ongoing at this point.
Expand All @@ -524,8 +519,7 @@ methods, when invoked, must run these steps:
<p>Set variables associated with the object as follows:

<ul>
<li><p>Unset the <a><code>send()</code> flag</a>, and
<a>upload listener flag</a>.
<li><p>Unset the <a><code>send()</code> flag</a> and <a>upload listener flag</a>.
<li><p>Set <a>request method</a> to <var>method</var>.
<li><p>Set <a>request URL</a> to <var>parsedURL</var>.
<li><p>Set the <a>synchronous flag</a>, if <var>async</var> is false, and unset
Expand Down Expand Up @@ -894,7 +888,7 @@ method must run these steps:
</ol>

<li><p>If <var>req</var>'s <a for=request>done flag</a> is unset, then set the
<a>timed out flag</a>, and <a for=fetch>terminate</a> <a for=/>fetching</a>.
<a>timed out flag</a> and <a for=fetch>terminate</a> <a for=/>fetching</a>.
</ol>

<p>To <a>process request body</a> for
Expand Down