[Webkit-unassigned] [Bug 273906] `navigator.storage.getDirectory()` fails in service workers with an `NotSupportedError: The operation is not supported`

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed May 8 16:17:38 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=273906

--- Comment #1 from Jiwen Cai <steve at cloudzeta.com> ---
To reproduce:


1. Go to https://opfs-in-service-worker.glitch.me/ in Chrome or Firefox.
2. Open the Console.
3. Note how calls to `navigator.storage.getDirectory()` succeed in the service worker.

4. Go to https://opfs-in-service-worker.glitch.me/ in Safari.
5. Open the Console.
6. Note how calls to `navigator.storage.getDirectory()` succeed in the main thread, web worker, but fail in a service worker with an `NotSupportedError`.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240508/1f6e7a1e/attachment.htm>


More information about the webkit-unassigned mailing list