@@ -451,18 +451,12 @@ dictionary FileSystemCreateWritableOptions {
451
451
boolean keepExistingData = false;
452
452
};
453
453
454
- enum AccessHandleMode { "in-place" };
455
-
456
- dictionary FileSystemFileHandleCreateAccessHandleOptions {
457
- required AccessHandleMode mode;
458
- };
459
-
460
454
[Exposed=(Window,Worker), SecureContext, Serializable]
461
455
interface FileSystemFileHandle : FileSystemHandle {
462
456
Promise<File> getFile();
463
457
Promise<FileSystemWritableFileStream> createWritable(optional FileSystemCreateWritableOptions options = {});
464
458
[Exposed=DedicatedWorker]
465
- Promise<FileSystemSyncAccessHandle> createSyncAccessHandle(FileSystemFileHandleCreateAccessHandleOptions options );
459
+ Promise<FileSystemSyncAccessHandle> createSyncAccessHandle();
466
460
};
467
461
</xmp>
468
462
@@ -565,7 +559,7 @@ The <dfn method for=FileSystemFileHandle>createWritable(|options|)</dfn> method,
565
559
### The {{FileSystemFileHandle/createSyncAccessHandle()}} method ### {#api-filesystemfilehandle-createsyncaccesshandle}
566
560
567
561
<div class="note domintro">
568
- : |handle| = await |fileHandle| . {{FileSystemFileHandle/createSyncAccessHandle()|createSyncAccessHandle}} ({ {{FileSystemFileHandleCreateAccessHandleOptions/mode}} : "in-place" } )
562
+ : |handle| = await |fileHandle| . {{FileSystemFileHandle/createSyncAccessHandle()|createSyncAccessHandle}} ()
569
563
:: Returns a {{FileSystemSyncAccessHandle}} that can be used to read/write from/to the file.
570
564
Changes made through |handle| might be immediately reflected in the file represented by |fileHandle|.
571
565
To ensure the changes are reflected in this file, the handle must be flushed or closed.
@@ -580,14 +574,11 @@ The <dfn method for=FileSystemFileHandle>createWritable(|options|)</dfn> method,
580
574
contexts where asynchronous operations come with high overhead, i.e., WebAssembly.
581
575
582
576
For the time being, this method will only succeed when the |fileHandle| belongs to the
583
- [=origin private file system=] . Also temporarily, the {{FileSystemFileHandleCreateAccessHandleOptions/mode}} parameter
584
- must be set to "in-place". This prevents us from setting a default behavior and allows us to bring access handles to
585
- other filesytems in the future.
586
-
577
+ [=origin private file system=] .
587
578
</div>
588
579
589
580
<div algorithm>
590
- The <dfn method for=FileSystemFileHandle>createSyncAccessHandle(|options| )</dfn> method, when invoked, must run these steps:
581
+ The <dfn method for=FileSystemFileHandle>createSyncAccessHandle()</dfn> method, when invoked, must run these steps:
591
582
592
583
1. Let |result| be [=a new promise=] .
593
584
1. Run the following steps [=in parallel=] :
0 commit comments