tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

FileSystemFileHandle.webidl (775B)


      1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* This Source Code Form is subject to the terms of the Mozilla Public
      3 * License, v. 2.0. If a copy of the MPL was not distributed with this
      4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      5 
      6 dictionary FileSystemCreateWritableOptions {
      7  boolean keepExistingData = false;
      8 };
      9 
     10 [Exposed=(Window,Worker), SecureContext, Serializable, Pref="dom.fs.enabled"]
     11 interface FileSystemFileHandle : FileSystemHandle {
     12  [NewObject]
     13  Promise<File> getFile();
     14 
     15  [NewObject]
     16  Promise<FileSystemWritableFileStream> createWritable(optional FileSystemCreateWritableOptions options = {});
     17 
     18  [Exposed=DedicatedWorker, NewObject]
     19  Promise<FileSystemSyncAccessHandle> createSyncAccessHandle();
     20 };