Skip to content

Commit ff2b85d

Browse files
committed
Fix spec bug for creation with "downloading" availability
That step is supposed to only take place if the availability is "downloadable".
1 parent 5e2230e commit ff2b85d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

index.bs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1355,13 +1355,15 @@ enum RewriterLength { "as-is", "shorter", "longer" };
13551355
: "{{Availability/downloading}}"
13561356
: "{{Availability/downloadable}}"
13571357
::
1358-
1. If |availability| is "{{Availability/downloadable}}", then let |startDownloadResult| be the result of performing |startDownload| given |options|.
1358+
1. If |availability| is "{{Availability/downloadable}}", then:
13591359

1360-
1. If |startDownloadResult| is false, then:
1360+
1. Let |startDownloadResult| be the result of performing |startDownload| given |options|.
13611361

1362-
1. [=Queue a global task=] on the [=AI task source=] given |realm|'s [=realm/global object=] to [=reject=] |promise| with a "{{NetworkError}}" {{DOMException}}.
1362+
1. If |startDownloadResult| is false, then:
13631363

1364-
1. Abort these steps.
1364+
1. [=Queue a global task=] on the [=AI task source=] given |realm|'s [=realm/global object=] to [=reject=] |promise| with a "{{NetworkError}}" {{DOMException}}.
1365+
1366+
1. Abort these steps.
13651367

13661368
1. Run the following steps, but [=abort when=] |abortedDuringDownload| becomes true:
13671369

0 commit comments

Comments
 (0)