Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>No, Firefox <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=557540" rel="nofollow noreferrer">does not support FileWriter</a>, and the standardization of this API was abandoned (<a href="https://groups.google.com/a/chromium.org/d/msg/chromium-apps/k39Lb1VYWEI/b8TeUMY4p6wJ" rel="nofollow noreferrer">1</a>, <a href="https://lists.w3.org/Archives/Public/public-webapps/2014AprJun/0013.html" rel="nofollow noreferrer">2</a>). <a href="http://www.w3.org/TR/file-writer-api/" rel="nofollow noreferrer">http://www.w3.org/TR/file-writer-api/</a> now states:</p> <blockquote> <p>Work on this document has been discontinued and it should not be referenced or used as a basis for implementation.</p> </blockquote> <p>It seems that that API <a href="https://developer.mozilla.org/en-US/docs/Web/API/File_System_API/Introduction#virtual" rel="nofollow noreferrer">didn't even provide the feature you seem to be looking for</a>:</p> <blockquote> <p>The API doesn't give you access to the local file system, nor is the sandbox really a section of the file system. Instead, it is a virtualized file system that looks like a full-fledged file system to the web app. It does not necessarily have a relationship to the local file system outside the browser. </p> <p>What this means is that a web app and a desktop app cannot share the same file at the same time. The API does not let your web app reach outside the browser to files that desktop apps can also work on.</p> </blockquote> <p>You could use <a href="https://developer.mozilla.org/en/docs/Web/API/Window/localStorage" rel="nofollow noreferrer">localStorage</a> or <a href="https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API" rel="nofollow noreferrer">IndexedDB</a> to store the data client-side, albeit not in an arbitrary file the user can select via filepicker.</p> <p>You could write an extension that provides the necessary API to content JS. As of 2015, <a href="https://blog.mozilla.org/addons/2015/08/21/the-future-of-developing-firefox-add-ons/" rel="nofollow noreferrer">it's unclear which technology you should use for that</a>.</p> <p><a href="https://github.com/dcneiner/Downloadify" rel="nofollow noreferrer">Downloadify</a> (Adobe Flash initiating a download) is also often mentioned when discussing this. This thread <a href="https://stackoverflow.com/questions/6464828/cross-browser-save-as-txt">mentions an alternative based on data: URIs</a>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload