Bug 1864587 - [angle] Vendor mozilla/angle/firefox-123. r=gfx-reviewers,aosmond
[gecko.git] / dom / webidl / IDBTransaction.webidl
blob1bb52ff448eab40e9abff559ebefdd2c06119674
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;
26     [SameObject] readonly attribute IDBDatabase db;
28     readonly    attribute DOMException?      error;
30     [Throws]
31     IDBObjectStore objectStore (DOMString name);
33     [Throws]
34     undefined      commit();
36     [Throws]
37     undefined      abort();
39                 attribute EventHandler       onabort;
40                 attribute EventHandler       oncomplete;
41                 attribute EventHandler       onerror;
44 // This seems to be custom
45 partial interface IDBTransaction {
46     readonly    attribute DOMStringList objectStoreNames;