WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
256712
structuredClone throws for FileSystemHandles (Origin Private File System)
https://bugs.webkit.org/show_bug.cgi?id=256712
Summary
structuredClone throws for FileSystemHandles (Origin Private File System)
Jed Schmidt
Reported
2023-05-12 09:48:00 PDT
Given the following code:
> await navigator.storage.getDirectory().then(structuredClone)
the expected output would be:
> FileSystemDirectoryHandle {kind: 'directory', name: ''}
but instead, Safari throws:
> DataCloneError: The object cannot be cloned.
Among other things, this lack of serializability means that file system handles cannot be passed to workers to enable write operations.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2023-09-01 08:58:47 PDT
<
rdar://problem/114823273
>
Karl Dubost
Comment 2
2024-11-10 22:01:58 PST
***
Bug 282529
has been marked as a duplicate of this bug. ***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug