<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>254726</bug_id>
          
          <creation_ts>2023-03-29 23:53:57 -0700</creation_ts>
          <short_desc>File System Standard: WebKit does not implement `FileSystemFileHandle.createWritable()` and `FileSystemWritableFileStream`</short_desc>
          <delta_ts>2025-05-27 20:46:10 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>283841</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>231706</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Thomas Steiner">tomac</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>03_placid_daft</cc>
    
    <cc>amanisalim</cc>
    
    <cc>benjamin</cc>
    
    <cc>casistaken</cc>
    
    <cc>chrisguttandin</cc>
    
    <cc>daxpedda</cc>
    
    <cc>jozefchutka</cc>
    
    <cc>karlcow</cc>
    
    <cc>mjo2089</cc>
    
    <cc>sihui_liu</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1945259</commentid>
    <comment_count>0</comment_count>
    <who name="Thomas Steiner">tomac</who>
    <bug_when>2023-03-29 23:53:57 -0700</bug_when>
    <thetext>The following test fails in WebKit:

- &apos;createWritable&apos; in FileSystemFileHandle.prototype
- FileSystemWritableFileStream is undefined

Spec:
- https://fs.spec.whatwg.org/#api-filesystemfilehandle-createwritable
- https://fs.spec.whatwg.org/#api-filesystemwritablefilestream

I also want to report a small documentation bug: https://webkit.org/blog/12257/the-file-system-access-api-with-origin-private-file-system/#:~:text=FileSystemHandle%2C%20which%20represents%20an%20entry%20in%20the%20file%20system.%20It%20is%20available%20in%20Worker%20and lacks the word `Window`.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1946961</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-04-05 23:54:17 -0700</bug_when>
    <thetext>&lt;rdar://problem/107697642&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1947147</commentid>
    <comment_count>2</comment_count>
    <who name="Alex Titarenko">03_placid_daft</who>
    <bug_when>2023-04-06 15:25:02 -0700</bug_when>
    <thetext>I&apos;m really interested in this functionality to be implemented in WebKit.

I&apos;m working on a note-taking app for the web. Currently, all user&apos;s data is stored in IndexedDb, which has a lot of limitations. I want to use instead the origin private file system to store users&apos; notes and attachments which later will be synced with Git. For my use case, It&apos;s not really practical to use WebWorker (the only supported solution for now in WebKit) just to save notes and attachments, also it creates some overhead with transferring data between the main thread and WebWorker.

This is already supported in Chromium-based browsers and it would be great to see this in WebKit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1952075</commentid>
    <comment_count>3</comment_count>
    <who name="">amanisalim</who>
    <bug_when>2023-04-30 00:14:49 -0700</bug_when>
    <thetext>I also need this for my own vocabulary PWA. It has many features which I miss on every other App. I have to save serialized Jsons and read them, when I am offline.
I tried it with Chrome (Linux) and it works as expected.

The PWA works great on my iPhone and iPad when I am online, but I need it offline. Now I have to try the other method with the webworker…</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2017146</commentid>
    <comment_count>4</comment_count>
    <who name="halfmatthalfcat">mjo2089</who>
    <bug_when>2024-02-27 04:20:06 -0800</bug_when>
    <thetext>Also would like to throw my support behind this - blocking current work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2017686</commentid>
    <comment_count>5</comment_count>
    <who name="Benjamin Golinvaux">benjamin</who>
    <bug_when>2024-02-28 21:25:27 -0800</bug_when>
    <thetext>This bug makes it really difficult to  write reliable cross-browser apps. I very interested in this fix, too. 
Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2043747</commentid>
    <comment_count>6</comment_count>
    <who name="">casistaken</who>
    <bug_when>2024-06-29 03:31:56 -0700</bug_when>
    <thetext>Jimmy Warting aka Endless managed to polyfill this functionality in his `native-file-system-adapter`, safari implements writes via `fileHandle.createSyncAccessHandle()` but only inside workers, so he exposed that functionality in the main thread with some magic, simply `import &apos;native-file-system-adapter/src/FileSystemFileHandle.js&apos;` and you should be good to go.

More info: https://github.com/jimmywarting/native-file-system-adapter</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2120019</commentid>
    <comment_count>7</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2025-05-27 18:15:12 -0700</bug_when>
    <thetext>See https://github.com/WebKit/WebKit/commit/92cb5665c378bef8d73a61a782ad57291520f77d

* &apos;createWritable&apos; in FileSystemFileHandle.prototype
  Returns true in STP 219.
* FileSystemWritableFileStream is defined. 

Probably can be marked as a duplicate of Bug 283841</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2120054</commentid>
    <comment_count>8</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2025-05-27 20:46:10 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 283841 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>