From 8ee5c3c5bdc5b9793ad5e5be343c0981fb911610 Mon Sep 17 00:00:00 2001 From: Kyle Huey Date: Mon, 26 Oct 2015 08:54:16 -0700 Subject: [PATCH] Bug 1196841: Update getAll/getAllKeys to match the spec and expose them. r=baku --- dom/webidl/IDBIndex.webidl | 14 ++++++-------- dom/webidl/IDBObjectStore.webidl | 15 ++++++--------- 2 files changed, 12 insertions(+), 17 deletions(-) diff --git a/dom/webidl/IDBIndex.webidl b/dom/webidl/IDBIndex.webidl index df17f278056..74690ef46f4 100644 --- a/dom/webidl/IDBIndex.webidl +++ b/dom/webidl/IDBIndex.webidl @@ -56,16 +56,14 @@ interface IDBIndex { partial interface IDBIndex { [Throws] - IDBRequest mozGetAll (optional any key, optional unsigned long limit); + IDBRequest mozGetAll (optional any key, [EnforceRange] optional unsigned long limit); [Throws] - IDBRequest mozGetAllKeys (optional any key, optional unsigned long limit); + IDBRequest mozGetAllKeys (optional any key, [EnforceRange] optional unsigned long limit); - [Throws, - Func="mozilla::dom::indexedDB::IndexedDatabaseManager::ExperimentalFeaturesEnabled"] - IDBRequest getAll (optional any key, optional unsigned long limit); + [Throws] + IDBRequest getAll (optional any key, [EnforceRange] optional unsigned long limit); - [Throws, - Func="mozilla::dom::indexedDB::IndexedDatabaseManager::ExperimentalFeaturesEnabled"] - IDBRequest getAllKeys (optional any key, optional unsigned long limit); + [Throws] + IDBRequest getAllKeys (optional any key, [EnforceRange] optional unsigned long limit); }; diff --git a/dom/webidl/IDBObjectStore.webidl b/dom/webidl/IDBObjectStore.webidl index a912aa68bce..7d4d87d7c99 100644 --- a/dom/webidl/IDBObjectStore.webidl +++ b/dom/webidl/IDBObjectStore.webidl @@ -63,17 +63,14 @@ interface IDBObjectStore { partial interface IDBObjectStore { // Success fires IDBTransactionEvent, result == array of values for given keys [Throws] - IDBRequest mozGetAll (optional any key, optional unsigned long limit); + IDBRequest mozGetAll (optional any key, [EnforceRange] optional unsigned long limit); - [Throws, - Func="mozilla::dom::indexedDB::IndexedDatabaseManager::ExperimentalFeaturesEnabled"] - IDBRequest getAll (optional any key, optional unsigned long limit); + [Throws] + IDBRequest getAll (optional any key, [EnforceRange] optional unsigned long limit); - [Throws, - Func="mozilla::dom::indexedDB::IndexedDatabaseManager::ExperimentalFeaturesEnabled"] - IDBRequest getAllKeys (optional any key, optional unsigned long limit); + [Throws] + IDBRequest getAllKeys (optional any key, [EnforceRange] optional unsigned long limit); - [Throws, - Func="mozilla::dom::indexedDB::IndexedDatabaseManager::ExperimentalFeaturesEnabled"] + [Throws] IDBRequest openKeyCursor (optional any range, optional IDBCursorDirection direction = "next"); };