Skip to content

Commit cf6f9e8

Browse files
committed
queue on storage task source
1 parent c47515f commit cf6f9e8

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

index.bs

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ spec:webidl; type:dfn; text:resolve
1414
</pre>
1515

1616
<pre class=anchors>
17+
urlPrefix: https://html.spec.whatwg.org/; spec: html
18+
type: dfn; text: serializable objects; url: serializable-objects
1719
urlPrefix: https://tc39.es/ecma262/; spec: ECMA-262
1820
type: dfn; text: realm; url: realm
1921
urlPrefix: https://storage.spec.whatwg.org/; spec: storage
@@ -266,9 +268,10 @@ The <dfn attribute for=FileSystemHandle>name</dfn> getter steps are to return [=
266268
The <dfn method for=FileSystemHandle>remove(|options|)</dfn> method steps are:
267269

268270
1. Let |result| be [=a new promise=].
269-
1. Run these steps [=in parallel=]:
271+
1. [=Queue a task=] on the [=storage task source=] to run these steps:
270272
1. Let |access| be the result of running [=this=]'s
271-
[=FileSystemHandle/entry=]'s [=entry/request access=] given "`readwrite`".
273+
[=FileSystemHandle/entry=]'s [=file system entry/request access=] given
274+
"`readwrite`".
272275
1. If |access| is not "{{PermissionState/granted}}", reject |result| with a
273276
"{{NotAllowedError}}" {{DOMException}} and abort.
274277

@@ -284,7 +287,8 @@ The <dfn method for=FileSystemHandle>remove(|options|)</dfn> method steps are:
284287
1. If |entry| is a [=directory entry=]:
285288
1. If |entry|'s [=directory entry/children=] [=set/is empty=] and
286289
|options|'s {{FileSystemRemoveOptions/recursive}} is `false`:
287-
1. [=/Reject=] |result| with an "{{InvalidModificationError}}" {{DOMException}} and abort.
290+
1. [=/Reject=] |result| with an "{{InvalidModificationError}}"
291+
{{DOMException}} and abort.
288292
1. If |entry| is the [=root directory of the origin private file system=]:
289293
1. [=set/For each=] |child| of |entry|'s [=directory entry/children=]:
290294
1. Attempt to remove |child| from the underlying file system.
@@ -297,9 +301,9 @@ The <dfn method for=FileSystemHandle>remove(|options|)</dfn> method steps are:
297301
1. If removing |entry| in the underlying file system throws an exception,
298302
[=/reject=] |result| with that exception and abort.
299303

300-
Note: If {{FileSystemRemoveOptions/recursive}} is `true`, the removal can fail
301-
non-atomically. Some files or directories might have been removed while other files
302-
or directories still exist.
304+
Note: If {{FileSystemRemoveOptions/recursive}} is `true`, the removal
305+
can fail non-atomically. Some files or directories might have been
306+
removed while other files or directories still exist.
303307

304308
Issue(68): Better specify what possible exceptions this could throw.
305309
1. [=/Resolve=] |result| with `undefined`.

0 commit comments

Comments
 (0)