@@ -14,6 +14,8 @@ spec:webidl; type:dfn; text:resolve
14
14
</pre>
15
15
16
16
<pre class=anchors>
17
+ urlPrefix: https://html.spec.whatwg.org/; spec: html
18
+ type: dfn; text: serializable objects; url: serializable-objects
17
19
urlPrefix: https://tc39.es/ecma262/; spec: ECMA-262
18
20
type: dfn; text: realm; url: realm
19
21
urlPrefix: https://storage.spec.whatwg.org/; spec: storage
@@ -266,9 +268,10 @@ The <dfn attribute for=FileSystemHandle>name</dfn> getter steps are to return [=
266
268
The <dfn method for=FileSystemHandle>remove(|options|)</dfn> method steps are:
267
269
268
270
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 :
270
272
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`".
272
275
1. If |access| is not "{{PermissionState/granted}} ", reject |result| with a
273
276
"{{NotAllowedError}} " {{DOMException}} and abort.
274
277
@@ -284,7 +287,8 @@ The <dfn method for=FileSystemHandle>remove(|options|)</dfn> method steps are:
284
287
1. If |entry| is a [=directory entry=] :
285
288
1. If |entry|'s [=directory entry/children=] [=set/is empty=] and
286
289
|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.
288
292
1. If |entry| is the [=root directory of the origin private file system=] :
289
293
1. [=set/For each=] |child| of |entry|'s [=directory entry/children=] :
290
294
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:
297
301
1. If removing |entry| in the underlying file system throws an exception,
298
302
[=/reject=] |result| with that exception and abort.
299
303
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.
303
307
304
308
Issue(68): Better specify what possible exceptions this could throw.
305
309
1. [=/Resolve=] |result| with `undefined`.
0 commit comments