Open Bug 1949521 Opened 1 year ago Updated 5 months ago

Implement passing createSyncAccessHandle options all the way to FileSystemDataManager

Categories

(Core :: Storage: Bucket File System, task)

task

Tracking

()

ASSIGNED

People

(Reporter: jari, Assigned: jari)

References

(Depends on 1 open bug, Blocks 2 open bugs)

Details

Attachments

(2 files)

In the spec, the options are defined with

enum FileSystemSyncAccessHandleMode { 
  "readwrite", 
  "read-only",
  "readwrite-unsafe",
};

dictionary FileSystemCreateSyncAccessHandleOptions {
  FileSystemSyncAccessHandleMode mode = "readwrite";
};

interface FileSystemFileHandle : FileSystemHandle {
  ...
  Promise<FileSystemSyncAccessHandle> createSyncAccessHandle(
    optional FileSystemCreateSyncAccessHandleOptions options = {});
};

interface FileSystemSyncAccessHandle {
  ...
  readonly attribute USVString mode; // available via attribute
};

The implementation should be gated behind the related preference.

In the scope of this bug, the options can be passed all the way to FileSystemDataManager where locking is done.

Depends on: 1949524
Blocks: 1949518
Assignee: nobody → jjalkanen
Status: NEW → ASSIGNED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: