Summary: The Origin Private File System (hereafter referred to as OPFS)
API allows for file access to an origin-specific set of files. Unlike
other storage APIs, OPFS allows for direct file access from content with
high performance, which enables (among other things) WASM applications
that require performant File IO to work in a browser. OPFS data is
subject to normal storage quota limits, and may be deleted if needed by
the browser.
Unlike other File Access APIs proposed over the years, OPFS restricts
access to data written by the same origin, within a sandbox in the
user's profile. This provides far more security and privacy than
previous proposals. There is no ability to read or write user files
elsewhere in the filesystem.
As of mid-November 2022, we intend to turn OPFS on by default on all
platforms in Nightly, and we expect it to ride the trains to release. It
has been developed behind the dom.fs.enabled preference. Status in other
browsers is shipping in Chrome since 101, and in Safari starting in
MacOS 12.2+ and iOS 15.2+ (i.e. Safari 15.2+).
Tracking bug: Bug 1748667
<https://bugzilla.mozilla.org/show_bug.cgi?id=1748667>
Bug to enable by default: 1785123
<https://bugzilla.mozilla.org/show_bug.cgi?id=1785123>
Standard:OPFS standard <https://github.com/whatwg/fs> -- Note, several
relevant parts of the spec we and all others have implemented are
waiting to merge, especially PRs 21 (syncAccessHandle) and 10 (move)
Platforms: All. Disabled (for now) in Private Browsing mode.
Preference: dom.fs.enabled
Devtools Bug: Bug 1795516
<https://bugzilla.mozilla.org/show_bug.cgi?id=1795516>
Other browsers:
Chrome: shipping by default since 101 (origin trials before that)
Safari: Shipping since Safari 15.2/macOS 12.2. (getFile() support
in 15.4+/12.4)
web-platform-tests: https://github.com/web-platform-tests/wpt/tree/master/fs
--
Randell Jesup, Mozilla
--
You received this message because you are subscribed to the Google Groups
"dev-platform@mozilla.org" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to dev-platform+unsubscr...@mozilla.org.
To view this discussion on the web visit
https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/4dc03b9e-e45f-619e-8b81-5b924368eead%40mozilla.com.