tor-browser

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

IDBTransaction.webidl (1478B)


      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 file,
      4 * You can obtain one at http://mozilla.org/MPL/2.0/.
      5 *
      6 * The origin of this IDL file is
      7 * https://w3c.github.io/IndexedDB/#idbtransaction
      8 * https://w3c.github.io/IndexedDB/#enumdef-idbtransactionmode
      9 */
     10 
     11 enum IDBTransactionMode {
     12    "readonly",
     13    "readwrite",
     14    // The "readwriteflush" mode is only available when the
     15    // |dom.indexedDB.experimental| pref returns
     16    // true. This mode is not yet part of the standard.
     17    "readwriteflush",
     18    "cleanup",
     19    "versionchange"
     20 };
     21 
     22 [Exposed=(Window,Worker)]
     23 interface IDBTransaction : EventTarget {
     24    [Throws]
     25    readonly    attribute IDBTransactionMode mode;
     26 
     27    [Throws]
     28    readonly    attribute IDBTransactionDurability durability;
     29 
     30    [SameObject] readonly attribute IDBDatabase db;
     31 
     32    readonly    attribute DOMException?      error;
     33 
     34    [Throws]
     35    IDBObjectStore objectStore (DOMString name);
     36 
     37    [Throws]
     38    undefined      commit();
     39 
     40    [Throws]
     41    undefined      abort();
     42 
     43                attribute EventHandler       onabort;
     44                attribute EventHandler       oncomplete;
     45                attribute EventHandler       onerror;
     46 };
     47 
     48 // This seems to be custom
     49 partial interface IDBTransaction {
     50    readonly    attribute DOMStringList objectStoreNames;
     51 };