mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Implements `IDBFactory.cmp`, most of the work was done by #38123. Testing: Covered by WPT (lots of flaky results: the appropriate tests are in tests/wpt/meta/IndexedDB/idlharness.any.js.ini) Fixes: None --------- Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
31 lines
1.1 KiB
Text
31 lines
1.1 KiB
Text
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
|
/*
|
|
* The origin of this IDL file is
|
|
* https://w3c.github.io/IndexedDB/#idbfactory
|
|
*
|
|
*/
|
|
|
|
// https://w3c.github.io/IndexedDB/#idbfactory
|
|
partial interface mixin WindowOrWorkerGlobalScope {
|
|
[Pref="dom_indexeddb_enabled", SameObject] readonly attribute IDBFactory indexedDB;
|
|
};
|
|
|
|
// https://w3c.github.io/IndexedDB/#idbfactory
|
|
[Pref="dom_indexeddb_enabled", Exposed=(Window,Worker)]
|
|
interface IDBFactory {
|
|
[NewObject, Throws] IDBOpenDBRequest open(DOMString name,
|
|
optional [EnforceRange] unsigned long long version);
|
|
[NewObject, Throws] IDBOpenDBRequest deleteDatabase(DOMString name);
|
|
|
|
// Promise<sequence<IDBDatabaseInfo>> databases();
|
|
|
|
[Throws] short cmp(any first, any second);
|
|
};
|
|
|
|
// https://w3c.github.io/IndexedDB/#dictdef-idbdatabaseinfo
|
|
dictionary IDBDatabaseInfo {
|
|
DOMString name;
|
|
unsigned long long version;
|
|
};
|