Skip to content

Make createSyncAccessHandle available in SharedWorkers #472

@solodeveloping

Description

@solodeveloping

Hi,

I hope this is the right place to demand these type of features, it's really unclear to me.

The Mozilla documentation does not have a link for this (as far as I know), and official browser repositories are not appropriate I suppose.

Maybe this would be better? https://github.com/whatwg/fs

Let me know.

Currently, createSyncAccessHandle is only available in "normal" Workers.

I'm not sure if there is a reason for createSyncAccessHandle not to be available in SharedWorkers? It create a lock on a resource, which by default are shared, so it would make more sense if they were locked in a shared context no? Maybe there is technical reason, or maybe it was not in the proposal, or the understanding of the proposal

The original proposal: https://github.com/WICG/file-system-access/blob/main/proposals/AccessHandle.md

My use-case was that I have a note taking extension, and I wanted to allow multiple tabs to be used maybe, I'm using SQLite WASM + OPFS as storage, hence using a SharedWorker, it's my understanding that it would be shared between tabs, and it would allow editing things from multiple tabs.

Thank you in advance,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions