@@ -14,8 +14,6 @@ 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
19
17
urlPrefix: https://tc39.es/ecma262/; spec: ECMA-262
20
18
type: dfn; text: realm; url: realm
21
19
urlPrefix: https://storage.spec.whatwg.org/; spec: storage
@@ -268,7 +266,7 @@ The <dfn attribute for=FileSystemHandle>name</dfn> getter steps are to return [=
268
266
The <dfn method for=FileSystemHandle>remove(|options|)</dfn> method steps are:
269
267
270
268
1. Let |result| be [=a new promise=] .
271
- 1. [=Queue a task=] on the [=storage task source=] to run these steps :
269
+ 1. Run these steps [=in parallel=] :
272
270
1. Let |access| be the result of running [=this=] 's
273
271
[=FileSystemHandle/entry=] 's [=file system entry/request access=] given
274
272
"`readwrite`".
@@ -281,32 +279,33 @@ The <dfn method for=FileSystemHandle>remove(|options|)</dfn> method steps are:
281
279
1. If |lockResult| is false, [=reject=] |result| with a
282
280
"{{NoModificationAllowedError}} " {{DOMException}} and abort.
283
281
284
- 1. If |entry| does not exist in the underlying file system,
285
- [=/reject=] |result| with a {{NotFoundError}} and abort.
286
-
287
- 1. If |entry| is a [=directory entry=] :
288
- 1. If |entry|'s [=directory entry/children=] [=set/is empty=] and
289
- |options|'s {{FileSystemRemoveOptions/recursive}} is `false`:
290
- 1. [=/Reject=] |result| with an "{{InvalidModificationError}} "
291
- {{DOMException}} and abort.
292
- 1. If |entry| is the [=root directory of the origin private file system=] :
293
- 1. [=set/For each=] |child| of |entry|'s [=directory entry/children=] :
294
- 1. Attempt to remove |child| from the underlying file system.
295
- 1. If removing |child| in the underlying file system throws an
296
- exception, [=/reject=] |result| with that exception and abort.
297
- 1. Set |entry|'s [=directory entry/children=] to an empty [=/set=] .
298
- 1. [=/Resolve=] |result| with `undefined`.
299
-
300
- 1. Attempt to remove |entry| from the underlying file system.
301
- 1. If removing |entry| in the underlying file system throws an exception,
302
- [=/reject=] |result| with that exception and abort.
282
+ 1. [=Queue a task=] on the [=storage task source=] to run these steps:
283
+ 1. If |entry| does not exist in the underlying file system, [=/reject=]
284
+ |result| with a "{{NotFoundError}} " {{DOMException}} and abort.
285
+
286
+ 1. If |entry| is a [=directory entry=] :
287
+ 1. If |entry|'s [=directory entry/children=] [=set/is empty=] and
288
+ |options|'s {{FileSystemRemoveOptions/recursive}} is `false`:
289
+ 1. [=/Reject=] |result| with an "{{InvalidModificationError}} "
290
+ {{DOMException}} and abort.
291
+ 1. If |entry| is the [=root directory of an origin private file system=] :
292
+ 1. [=set/For each=] |child| of |entry|'s [=directory entry/children=] :
293
+ 1. Attempt to remove |child| from the underlying file system.
294
+ 1. If removing |child| in the underlying file system throws an
295
+ exception, [=/reject=] |result| with that exception and abort.
296
+ 1. Set |entry|'s [=directory entry/children=] to an empty [=/set=] .
297
+ 1. [=/Resolve=] |result| with `undefined`.
298
+
299
+ 1. Attempt to remove |entry| from the underlying file system.
300
+ 1. If removing |entry| in the underlying file system throws an exception,
301
+ [=/reject=] |result| with that exception and abort.
303
302
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
+ Note: If {{FileSystemRemoveOptions/recursive}} is `true`, the removal
304
+ can fail non-atomically. Some files or directories might have been
305
+ removed while other files or directories still exist.
307
306
308
- Issue(68): Better specify what possible exceptions this could throw.
309
- 1. [=/Resolve=] |result| with `undefined`.
307
+ Issue(68): Better specify what possible exceptions this could throw.
308
+ 1. [=/Resolve=] |result| with `undefined`.
310
309
311
310
1. Return |result|.
312
311
@@ -1354,7 +1353,7 @@ partial interface StorageManager {
1354
1353
1355
1354
<div class="note domintro">
1356
1355
: |directoryHandle| = await navigator . storage . {{StorageManager/getDirectory()}}
1357
- :: Returns the <dfn for="directory entry">root directory of the origin private file system</dfn> .
1356
+ :: Returns the <dfn for="directory entry">root directory of an origin private file system</dfn> .
1358
1357
</div>
1359
1358
1360
1359
<div algorithm>
0 commit comments