You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.bs
+10-8Lines changed: 10 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1756,6 +1756,14 @@ Every [=interface=] [=interface/including=] the {{DestroyableModel}} interface m
1756
1756
1757
1757
1. If |document| is not [=allowed to use=] |permissionsPolicyFeature|, then return [=a promise rejected with=] a "{{NotAllowedError}}" {{DOMException}}.
1758
1758
1759
+
1. Let |abortedDuringDownload| be false.
1760
+
1761
+
<p class="note">This variable will be written to from the [=event loop=], but read from [=in parallel=].
1762
+
1763
+
1. If |options|["`signal`"][=map/exists=], then [=AbortSignal/add|add the following abort steps=] to |options|["`signal`"]:
1764
+
1765
+
1. Set |abortedDuringDownload| to true.
1766
+
1759
1767
1. Let |fireProgressEvent| be an algorithm taking one argument that does nothing.
1760
1768
1761
1769
1. If |options|["`monitor`"][=map/exists=], then:
@@ -1772,15 +1780,9 @@ Every [=interface=] [=interface/including=] the {{DestroyableModel}} interface m
1772
1780
1773
1781
1. [=Queue a global task=] on the [=AI task source=] given |realm|'s [=realm/global object=] to perform the following steps:
1774
1782
1775
-
1. [=Fire an event=] named {{CreateMonitor/downloadprogress}} at |monitor|, using {{ProgressEvent}}, with the {{ProgressEvent/loaded}} attribute initialized to |loaded|, the {{ProgressEvent/total}} attribute initialized to 1, and the {{ProgressEvent/lengthComputable}} attribute initialized to true.
1783
+
1. If |abortedDuringDownload| is true, then abort these steps.
1776
1784
1777
-
1. Let |abortedDuringDownload| be false.
1778
-
1779
-
<p class="note">This variable will be written to from the [=event loop=], but read from [=in parallel=].
1780
-
1781
-
1. If |options|["`signal`"][=map/exists=], then [=AbortSignal/add|add the following abort steps=] to |options|["`signal`"]:
1782
-
1783
-
1. Set |abortedDuringDownload| to true.
1785
+
1. [=Fire an event=] named {{CreateMonitor/downloadprogress}} at |monitor|, using {{ProgressEvent}}, with the {{ProgressEvent/loaded}} attribute initialized to |loaded|, the {{ProgressEvent/total}} attribute initialized to 1, and the {{ProgressEvent/lengthComputable}} attribute initialized to true.
1784
1786
1785
1787
1. Let |promise| be [=a new promise=] created in |realm|.
0 commit comments