WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
248719
Files written to OPFS through a sync access handle in Safari are read back out with a size of zero bytes
https://bugs.webkit.org/show_bug.cgi?id=248719
Summary
Files written to OPFS through a sync access handle in Safari are read back ou...
Nathan
Reported
2022-12-03 12:55:56 PST
After closing the sync access handle, reading a file from OPFS with `getFile()` always returns a `File` of size zero. I've create a gist with file to reproduce the problem. The example in the gist works in Chrome, the file contents can be read back out after the sync access handle is closed. See
https://gist.github.com/myobie/021fc07f09e013b1e5c137ec09282aeb
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2022-12-10 12:56:15 PST
<
rdar://problem/103216871
>
Nathan
Comment 2
2023-06-22 10:52:09 PDT
I've just re-tested this on Safari 16.5 and the sync OPFS calls work, files can be read back from the fs. Thanks for fixing 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