Bug 1885602 - Part 5: Implement navigating to the SUMO help topic from the menu heade...
[gecko.git] / dom / webidl / IDBTransaction.webidl
blob83d0edbcbf6db6df335554251f43bbb50608b91f
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  */
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"
22 [Exposed=(Window,Worker)]
23 interface IDBTransaction : EventTarget {
24     [Throws]
25     readonly    attribute IDBTransactionMode mode;
27     [Throws]
28     readonly    attribute IDBTransactionDurability durability;
30     [SameObject] readonly attribute IDBDatabase db;
32     readonly    attribute DOMException?      error;
34     [Throws]
35     IDBObjectStore objectStore (DOMString name);
37     [Throws]
38     undefined      commit();
40     [Throws]
41     undefined      abort();
43                 attribute EventHandler       onabort;
44                 attribute EventHandler       oncomplete;
45                 attribute EventHandler       onerror;
48 // This seems to be custom
49 partial interface IDBTransaction {
50     readonly    attribute DOMStringList objectStoreNames;