Bug 1465416 [wpt PR 9754] - Update the IndexedDB IDL file, a=testonly
authorLuke Bjerring <lukebjerring@users.noreply.github.com>
Wed, 06 Jun 2018 16:06:06 +0000
changeset 478906 18e83041b407b85a4bf61d45d8053dc16a9a4410
parent 478905 76cd527a4a01c479c3e857444e30219393f1cd9b
child 478907 c306dbf882a7da3a1678ca4c2673e66631f39cec
push id1757
push userffxbld-merge
push dateFri, 24 Aug 2018 17:02:43 +0000
treeherdermozilla-release@736023aebdb1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1465416
milestone62.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1465416 [wpt PR 9754] - Update the IndexedDB IDL file, a=testonly Automatic update from web-platform-testsUpdate the IndexedDB IDL file (#9754) -- wpt-commits: e6b7defce60818e815f4955e2df3edd0299fb74d wpt-pr: 9754
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/interfaces/IndexedDB.idl
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -580777,17 +580777,17 @@
    "4324fb1908608583b898ae01ad44d9f8e1da89ac",
    "support"
   ],
   "interfaces/FileAPI.idl": [
    "3fb06078e603a6010c2eb0fb45715c8cbda35678",
    "support"
   ],
   "interfaces/IndexedDB.idl": [
-   "3df484f3207920891c278bd99ec22e4029aa039f",
+   "149cca0098cf37769391b4caa0650a7182ed8212",
    "support"
   ],
   "interfaces/OWNERS": [
    "389275a34cb76282af66797b3cd06b72a3b9ddbe",
    "support"
   ],
   "interfaces/ServiceWorker.idl": [
    "7884feabcb4c9d0a447cccfa2359e3c45eef5455",
--- a/testing/web-platform/tests/interfaces/IndexedDB.idl
+++ b/testing/web-platform/tests/interfaces/IndexedDB.idl
@@ -1,15 +1,19 @@
+// GENERATED CONTENT - DO NOT EDIT
+// Content of this file was automatically extracted from the Indexed Database API spec.
+// See https://w3c.github.io/IndexedDB/
+
 [Exposed=(Window,Worker)]
 interface IDBRequest : EventTarget {
-  readonly attribute any                                        result;
-  readonly attribute DOMException?                              error;
+  readonly attribute any result;
+  readonly attribute DOMException? error;
   readonly attribute (IDBObjectStore or IDBIndex or IDBCursor)? source;
-  readonly attribute IDBTransaction?                            transaction;
-  readonly attribute IDBRequestReadyState                       readyState;
+  readonly attribute IDBTransaction? transaction;
+  readonly attribute IDBRequestReadyState readyState;
 
   // Event handlers:
   attribute EventHandler onsuccess;
   attribute EventHandler onerror;
 };
 
 enum IDBRequestReadyState {
   "pending",
@@ -21,179 +25,179 @@ interface IDBOpenDBRequest : IDBRequest 
   // Event handlers:
   attribute EventHandler onblocked;
   attribute EventHandler onupgradeneeded;
 };
 
 [Exposed=(Window,Worker),
  Constructor(DOMString type, optional IDBVersionChangeEventInit eventInitDict)]
 interface IDBVersionChangeEvent : Event {
-  readonly attribute unsigned long long  oldVersion;
+  readonly attribute unsigned long long oldVersion;
   readonly attribute unsigned long long? newVersion;
 };
 
 dictionary IDBVersionChangeEventInit : EventInit {
-  unsigned long long  oldVersion = 0;
+  unsigned long long oldVersion = 0;
   unsigned long long? newVersion = null;
 };
 
 partial interface WindowOrWorkerGlobalScope {
   [SameObject] readonly attribute IDBFactory indexedDB;
 };
 
 [Exposed=(Window,Worker)]
 interface IDBFactory {
-  IDBOpenDBRequest open(DOMString name,
-                        optional [EnforceRange] unsigned long long version);
-  IDBOpenDBRequest deleteDatabase(DOMString name);
+  [NewObject] IDBOpenDBRequest open(DOMString name,
+                                    optional [EnforceRange] unsigned long long version);
+  [NewObject] IDBOpenDBRequest deleteDatabase(DOMString name);
 
   short cmp(any first, any second);
 };
 
 [Exposed=(Window,Worker)]
 interface IDBDatabase : EventTarget {
-  readonly attribute DOMString          name;
+  readonly attribute DOMString name;
   readonly attribute unsigned long long version;
-  readonly attribute DOMStringList      objectStoreNames;
+  readonly attribute DOMStringList objectStoreNames;
 
-  IDBTransaction transaction((DOMString or sequence<DOMString>) storeNames,
-                             optional IDBTransactionMode mode = "readonly");
-  void           close();
+  [NewObject] IDBTransaction transaction((DOMString or sequence<DOMString>) storeNames,
+                                         optional IDBTransactionMode mode = "readonly");
+  void close();
 
-  IDBObjectStore createObjectStore(DOMString name,
-                                   optional IDBObjectStoreParameters options);
-  void           deleteObjectStore(DOMString name);
+  [NewObject] IDBObjectStore createObjectStore(DOMString name,
+                                               optional IDBObjectStoreParameters options);
+  void deleteObjectStore(DOMString name);
 
   // Event handlers:
   attribute EventHandler onabort;
   attribute EventHandler onclose;
   attribute EventHandler onerror;
   attribute EventHandler onversionchange;
 };
 
 dictionary IDBObjectStoreParameters {
   (DOMString or sequence<DOMString>)? keyPath = null;
-  boolean                             autoIncrement = false;
+  boolean autoIncrement = false;
 };
 
 [Exposed=(Window,Worker)]
 interface IDBObjectStore {
-           attribute DOMString      name;
-  readonly attribute any            keyPath;
-  readonly attribute DOMStringList  indexNames;
-  readonly attribute IDBTransaction transaction;
-  readonly attribute boolean        autoIncrement;
+  attribute DOMString name;
+  readonly attribute any keyPath;
+  readonly attribute DOMStringList indexNames;
+  [SameObject] readonly attribute IDBTransaction transaction;
+  readonly attribute boolean autoIncrement;
 
-  IDBRequest put(any value, optional any key);
-  IDBRequest add(any value, optional any key);
-  IDBRequest delete(any query);
-  IDBRequest clear();
-  IDBRequest get(any query);
-  IDBRequest getKey(any query);
-  IDBRequest getAll(optional any query,
-                    [EnforceRange] optional unsigned long count);
-  IDBRequest getAllKeys(optional any query,
-                        [EnforceRange] optional unsigned long count);
-  IDBRequest count(optional any query);
+  [NewObject] IDBRequest put(any value, optional any key);
+  [NewObject] IDBRequest add(any value, optional any key);
+  [NewObject] IDBRequest delete(any query);
+  [NewObject] IDBRequest clear();
+  [NewObject] IDBRequest get(any query);
+  [NewObject] IDBRequest getKey(any query);
+  [NewObject] IDBRequest getAll(optional any query,
+                                optional [EnforceRange] unsigned long count);
+  [NewObject] IDBRequest getAllKeys(optional any query,
+                                    optional [EnforceRange] unsigned long count);
+  [NewObject] IDBRequest count(optional any query);
 
-  IDBRequest openCursor(optional any query,
-                        optional IDBCursorDirection direction = "next");
-  IDBRequest openKeyCursor(optional any query,
-                           optional IDBCursorDirection direction = "next");
+  [NewObject] IDBRequest openCursor(optional any query,
+                                    optional IDBCursorDirection direction = "next");
+  [NewObject] IDBRequest openKeyCursor(optional any query,
+                                       optional IDBCursorDirection direction = "next");
 
-  IDBIndex   index(DOMString name);
+  IDBIndex index(DOMString name);
 
-  IDBIndex   createIndex(DOMString name,
-                         (DOMString or sequence<DOMString>) keyPath,
-                         optional IDBIndexParameters options);
-  void       deleteIndex(DOMString indexName);
+  [NewObject] IDBIndex createIndex(DOMString name,
+                                   (DOMString or sequence<DOMString>) keyPath,
+                                   optional IDBIndexParameters options);
+  void deleteIndex(DOMString name);
 };
 
 dictionary IDBIndexParameters {
   boolean unique = false;
   boolean multiEntry = false;
 };
 
 [Exposed=(Window,Worker)]
 interface IDBIndex {
-           attribute DOMString      name;
-  readonly attribute IDBObjectStore objectStore;
-  readonly attribute any            keyPath;
-  readonly attribute boolean        multiEntry;
-  readonly attribute boolean        unique;
+  attribute DOMString name;
+  [SameObject] readonly attribute IDBObjectStore objectStore;
+  readonly attribute any keyPath;
+  readonly attribute boolean multiEntry;
+  readonly attribute boolean unique;
 
-  IDBRequest get(any query);
-  IDBRequest getKey(any query);
-  IDBRequest getAll(optional any query,
-                    [EnforceRange] optional unsigned long count);
-  IDBRequest getAllKeys(optional any query,
-                        [EnforceRange] optional unsigned long count);
-  IDBRequest count(optional any query);
+  [NewObject] IDBRequest get(any query);
+  [NewObject] IDBRequest getKey(any query);
+  [NewObject] IDBRequest getAll(optional any query,
+                                optional [EnforceRange] unsigned long count);
+  [NewObject] IDBRequest getAllKeys(optional any query,
+                                    optional [EnforceRange] unsigned long count);
+  [NewObject] IDBRequest count(optional any query);
 
-  IDBRequest openCursor(optional any query,
-                        optional IDBCursorDirection direction = "next");
-  IDBRequest openKeyCursor(optional any query,
-                           optional IDBCursorDirection direction = "next");
+  [NewObject] IDBRequest openCursor(optional any query,
+                                    optional IDBCursorDirection direction = "next");
+  [NewObject] IDBRequest openKeyCursor(optional any query,
+                                       optional IDBCursorDirection direction = "next");
 };
 
 [Exposed=(Window,Worker)]
 interface IDBKeyRange {
-  readonly attribute any     lower;
-  readonly attribute any     upper;
+  readonly attribute any lower;
+  readonly attribute any upper;
   readonly attribute boolean lowerOpen;
   readonly attribute boolean upperOpen;
 
   // Static construction methods:
-  static IDBKeyRange only(any value);
-  static IDBKeyRange lowerBound(any lower, optional boolean open = false);
-  static IDBKeyRange upperBound(any upper, optional boolean open = false);
-  static IDBKeyRange bound(any lower,
-                           any upper,
-                           optional boolean lowerOpen = false,
-                           optional boolean upperOpen = false);
+  [NewObject] static IDBKeyRange only(any value);
+  [NewObject] static IDBKeyRange lowerBound(any lower, optional boolean open = false);
+  [NewObject] static IDBKeyRange upperBound(any upper, optional boolean open = false);
+  [NewObject] static IDBKeyRange bound(any lower,
+                                       any upper,
+                                       optional boolean lowerOpen = false,
+                                       optional boolean upperOpen = false);
 
-  boolean includes(any key);
+  boolean _includes(any key);
 };
 
 [Exposed=(Window,Worker)]
 interface IDBCursor {
   readonly attribute (IDBObjectStore or IDBIndex) source;
-  readonly attribute IDBCursorDirection           direction;
-  readonly attribute any                          key;
-  readonly attribute any                          primaryKey;
+  readonly attribute IDBCursorDirection direction;
+  readonly attribute any key;
+  readonly attribute any primaryKey;
 
   void advance([EnforceRange] unsigned long count);
   void continue(optional any key);
   void continuePrimaryKey(any key, any primaryKey);
 
-  IDBRequest update(any value);
-  IDBRequest delete();
+  [NewObject] IDBRequest update(any value);
+  [NewObject] IDBRequest delete();
 };
 
 enum IDBCursorDirection {
   "next",
   "nextunique",
   "prev",
   "prevunique"
 };
 
 [Exposed=(Window,Worker)]
 interface IDBCursorWithValue : IDBCursor {
   readonly attribute any value;
 };
 
 [Exposed=(Window,Worker)]
 interface IDBTransaction : EventTarget {
-  readonly attribute DOMStringList      objectStoreNames;
+  readonly attribute DOMStringList objectStoreNames;
   readonly attribute IDBTransactionMode mode;
-  readonly attribute IDBDatabase        db;
-  readonly attribute DOMException       error;
+  [SameObject] readonly attribute IDBDatabase db;
+  readonly attribute DOMException error;
 
   IDBObjectStore objectStore(DOMString name);
-  void           abort();
+  void abort();
 
   // Event handlers:
   attribute EventHandler onabort;
   attribute EventHandler oncomplete;
   attribute EventHandler onerror;
 };
 
 enum IDBTransactionMode {