Permalink
Browse files

Editorial: "return, but continue" cleanup for downloads and Worker

Helps with #3394.
  • Loading branch information...
annevk committed Jan 24, 2018
1 parent d28a66a commit 0217e1d4cb1ace836f6ef72a402b643aa879fbed
Showing with 22 additions and 15 deletions.
  1. +22 −15 source
View
37 source
@@ -23138,19 +23138,21 @@ document.body.appendChild(wbr);</pre>
<li><p>If there is a <var>hyperlink suffix</var>, append it to <var>URL</var>.</p></li>
<li><p>Return to whatever algorithm invoked these steps and continue
these steps <span>in parallel</span>.</p></li>
<li><p>Let <var>request</var> be a new <span data-x="concept-request">request</span> whose
<span data-x="concept-request-url">url</span> is <var>URL</var>,
<span data-x="concept-request-client">client</span> is <span>entry settings object</span>,
<span data-x="concept-request-initiator">initiator</span> is "<code data-x="">download</code>",
<span data-x="concept-request-destination">destination</span> is the empty string, and whose
<span>synchronous flag</span> and <span>use-URL-credentials flag</span> are set.
<!--FETCH--><li><p>Handle the result of <span data-x="concept-fetch">fetching</span>
<var>request</var> <span>as a download</span>.</p></li>
<li>
<p>Run these steps <span>in parallel</span>:</p>
<ol>
<li><p>Let <var>request</var> be a new <span data-x="concept-request">request</span> whose
<span data-x="concept-request-url">url</span> is <var>URL</var>,
<span data-x="concept-request-client">client</span> is <span>entry settings object</span>,
<span data-x="concept-request-initiator">initiator</span> is "<code data-x="">download</code>",
<span data-x="concept-request-destination">destination</span> is the empty string, and whose
<span>synchronous flag</span> and <span>use-URL-credentials flag</span> are set.</p></li>
<!--FETCH--><li><p>Handle the result of <span data-x="concept-fetch">fetching</span>
<var>request</var> <span>as a download</span>.</p></li>
</ol>
</li>
</ol>
<p>When a user agent is to handle a resource obtained from a fetch <dfn>as a download</dfn>, it
@@ -97920,11 +97922,16 @@ enum <dfn>WorkerType</dfn> { "classic", "module" };
<li><p>Associate the <var>outside port</var> with <var>worker</var>.</p></li>
<li><p>Return <var>worker</var>, and run the following step <span>in parallel</span>.</p></li>
<li>
<p>Run this step <span>in parallel</span>:</p>
<li><p><span>Run a worker</span> given <var>worker</var>, <var>worker URL</var>, <var>outside
settings</var>, <var>outside port</var>, and <var>options</var>.</p></li>
<ol>
<li><p><span>Run a worker</span> given <var>worker</var>, <var>worker URL</var>, <var>outside
settings</var>, <var>outside port</var>, and <var>options</var>.</p></li>
</ol>
</li>
<li><p>Return <var>worker</var>.</p></li>
</ol>
</div>

0 comments on commit 0217e1d

Please sign in to comment.