| Index: modules/indexeddb/IDBDatabase.idl
|
| diff --git a/modules/indexeddb/IDBDatabase.idl b/modules/indexeddb/IDBDatabase.idl
|
| index 41e8ff059f22c49b22d5334be1168039c1eacd96..bb9c0384ab9be1d4826b83e531584717ba33010a 100644
|
| --- a/modules/indexeddb/IDBDatabase.idl
|
| +++ b/modules/indexeddb/IDBDatabase.idl
|
| @@ -26,6 +26,13 @@
|
|
|
| // https://dvcs.w3.org/hg/IndexedDB/raw-file/default/Overview.html#idl-def-IDBDatabase
|
|
|
| +// FIXME: de-duplicate this when crbug.com/390758 is fixed.
|
| +enum IDBTransactionMode {
|
| + "readonly",
|
| + "readwrite",
|
| + "versionchange"
|
| +};
|
| +
|
| [
|
| ActiveDOMObject,
|
| GarbageCollected,
|
| @@ -36,9 +43,9 @@
|
| [RaisesException] IDBObjectStore createObjectStore(DOMString name, optional Dictionary options);
|
| [RaisesException] void deleteObjectStore(DOMString name);
|
| // FIXME: should be union type http://crbug.com/240176
|
| - [CallWith=ExecutionContext, RaisesException] IDBTransaction transaction(DOMString storeName, optional DOMString mode = null);
|
| - [CallWith=ExecutionContext, RaisesException] IDBTransaction transaction(sequence<DOMString> storeNames, optional DOMString mode = null);
|
| - [CallWith=ExecutionContext, RaisesException] IDBTransaction transaction(DOMStringList storeNames, optional DOMString mode = null);
|
| + [CallWith=ExecutionContext, RaisesException] IDBTransaction transaction(DOMString storeName, optional IDBTransactionMode mode = "readonly");
|
| + [CallWith=ExecutionContext, RaisesException] IDBTransaction transaction(sequence<DOMString> storeNames, optional IDBTransactionMode mode = "readonly");
|
| + [CallWith=ExecutionContext, RaisesException] IDBTransaction transaction(DOMStringList storeNames, optional IDBTransactionMode mode = "readonly");
|
| void close();
|
| attribute EventHandler onabort;
|
| attribute EventHandler onclose;
|
|
|