From 43fa7e0dc6eb02bd2a9386ae271800428d628bf9 Mon Sep 17 00:00:00 2001 From: Shawn Wilsher Date: Thu, 10 Jun 2010 15:50:59 -0700 Subject: [PATCH] s/mozIndexedDB/moz_indexedDB/ per discussions with devrel --- dom/indexedDB/test/test_add_twice_failure.html | 2 +- dom/indexedDB/test/test_create_index.html | 2 +- dom/indexedDB/test/test_create_objectStore.html | 4 ++-- dom/indexedDB/test/test_cursors.html | 4 ++-- dom/indexedDB/test/test_event_source.html | 4 ++-- dom/indexedDB/test/test_global_data.html | 4 ++-- dom/indexedDB/test/test_indexes.html | 2 +- dom/indexedDB/test/test_key_requirements.html | 2 +- dom/indexedDB/test/test_null_keys.html | 2 +- ...t_objectStore_inline_autoincrement_key_added_on_put.html | 2 +- dom/indexedDB/test/test_objectStore_remove_values.html | 2 +- dom/indexedDB/test/test_open_empty_db.html | 6 +++--- dom/indexedDB/test/test_open_objectStore.html | 2 +- dom/indexedDB/test/test_overlapping_transactions.html | 2 +- dom/indexedDB/test/test_put_get_values.html | 2 +- dom/indexedDB/test/test_put_get_values_autoIncrement.html | 2 +- dom/indexedDB/test/test_readonly_transactions.html | 2 +- dom/indexedDB/test/test_remove_index.html | 2 +- dom/indexedDB/test/test_remove_objectStore.html | 2 +- dom/indexedDB/test/test_request_readyState.html | 2 +- dom/indexedDB/test/test_setVersion.html | 2 +- dom/indexedDB/test/test_transaction_abort.html | 2 +- dom/indexedDB/test/test_writer_starvation.html | 2 +- dom/interfaces/storage/nsIDOMStorageWindow.idl | 2 +- 24 files changed, 30 insertions(+), 30 deletions(-) diff --git a/dom/indexedDB/test/test_add_twice_failure.html b/dom/indexedDB/test/test_add_twice_failure.html index 355666d0782..b9f2f285405 100644 --- a/dom/indexedDB/test/test_add_twice_failure.html +++ b/dom/indexedDB/test/test_add_twice_failure.html @@ -19,7 +19,7 @@ const name = window.location.pathname; const description = "My Test Database"; - let request = mozIndexedDB.open(name, description); + let request = moz_indexedDB.open(name, description); request.onerror = errorHandler; request.onsuccess = grabEventAndContinueHandler; let event = yield; diff --git a/dom/indexedDB/test/test_create_index.html b/dom/indexedDB/test/test_create_index.html index 573eb941c5d..a6747b8c4c6 100644 --- a/dom/indexedDB/test/test_create_index.html +++ b/dom/indexedDB/test/test_create_index.html @@ -28,7 +28,7 @@ { name: "3", keyPath: "value" }, ]; - let request = mozIndexedDB.open(name, description); + let request = moz_indexedDB.open(name, description); request.onerror = errorHandler; request.onsuccess = grabEventAndContinueHandler; let event = yield; diff --git a/dom/indexedDB/test/test_create_objectStore.html b/dom/indexedDB/test/test_create_objectStore.html index dd6822b7ce5..485d8f59032 100644 --- a/dom/indexedDB/test/test_create_objectStore.html +++ b/dom/indexedDB/test/test_create_objectStore.html @@ -27,12 +27,12 @@ { name: "6", keyPath: "foo" } ]; - let request = mozIndexedDB.open(name, description); + let request = moz_indexedDB.open(name, description); request.onerror = errorHandler; request.onsuccess = grabEventAndContinueHandler; let event = yield; - ok(event.source === mozIndexedDB, "event.source is correct"); + ok(event.source === moz_indexedDB, "event.source is correct"); let db = event.result; let count = db.objectStoreNames.length; diff --git a/dom/indexedDB/test/test_cursors.html b/dom/indexedDB/test/test_cursors.html index da2cef980ca..a9fac8d1459 100644 --- a/dom/indexedDB/test/test_cursors.html +++ b/dom/indexedDB/test/test_cursors.html @@ -23,7 +23,7 @@ is(keys.length, sortedKeys.length, "Good key setup"); - let request = mozIndexedDB.open(name, description); + let request = moz_indexedDB.open(name, description); request.onerror = errorHandler; request.onsuccess = grabEventAndContinueHandler; let event = yield; @@ -78,7 +78,7 @@ keyIndex = 4; - let range = mozIndexedDB.makeBoundKeyRange(2000, "q"); + let range = moz_indexedDB.makeBoundKeyRange(2000, "q"); request = objectStore.openCursor(range); request.onerror = errorHandler; request.onsuccess = function (event) { diff --git a/dom/indexedDB/test/test_event_source.html b/dom/indexedDB/test/test_event_source.html index 1a33b5d0821..d7182ffd280 100644 --- a/dom/indexedDB/test/test_event_source.html +++ b/dom/indexedDB/test/test_event_source.html @@ -17,12 +17,12 @@ const description = "My Test Database"; const objectStoreName = "Objects"; - var request = mozIndexedDB.open(name, description); + var request = moz_indexedDB.open(name, description); request.onerror = errorHandler; request.onsuccess = grabEventAndContinueHandler; var event = yield; - ok(event.source === mozIndexedDB, "correct event.source"); + ok(event.source === moz_indexedDB, "correct event.source"); var db = event.result; request = db.createObjectStore(objectStoreName, null, true); diff --git a/dom/indexedDB/test/test_global_data.html b/dom/indexedDB/test/test_global_data.html index 7a0e9ad805c..753c1630af1 100644 --- a/dom/indexedDB/test/test_global_data.html +++ b/dom/indexedDB/test/test_global_data.html @@ -17,14 +17,14 @@ const description = "My Test Database"; const objectStore = { name: "Objects", keyPath: "id", autoIncr: true }; - let request = mozIndexedDB.open(name, description); + let request = moz_indexedDB.open(name, description); request.onerror = errorHandler; request.onsuccess = grabEventAndContinueHandler; let event = yield; let db1 = event.result; - request = mozIndexedDB.open(name, description); + request = moz_indexedDB.open(name, description); request.onerror = errorHandler; request.onsuccess = grabEventAndContinueHandler; event = yield; diff --git a/dom/indexedDB/test/test_indexes.html b/dom/indexedDB/test/test_indexes.html index b7d2ce6658e..4c9ab865205 100644 --- a/dom/indexedDB/test/test_indexes.html +++ b/dom/indexedDB/test/test_indexes.html @@ -54,7 +54,7 @@ { key: "237-23-7734", value: { name: "Ron", height: 73, weight: 180 } } ]; - let request = mozIndexedDB.open(name, description); + let request = moz_indexedDB.open(name, description); request.onerror = errorHandler; request.onsuccess = grabEventAndContinueHandler; let event = yield; diff --git a/dom/indexedDB/test/test_key_requirements.html b/dom/indexedDB/test/test_key_requirements.html index 0983c951a2e..652e0db516c 100644 --- a/dom/indexedDB/test/test_key_requirements.html +++ b/dom/indexedDB/test/test_key_requirements.html @@ -16,7 +16,7 @@ const name = window.location.pathname; const description = "My Test Database"; - let request = mozIndexedDB.open(name, description); + let request = moz_indexedDB.open(name, description); request.onerror = errorHandler; request.onsuccess = grabEventAndContinueHandler; let event = yield; diff --git a/dom/indexedDB/test/test_null_keys.html b/dom/indexedDB/test/test_null_keys.html index 9e22622c4e5..5fe90733d13 100644 --- a/dom/indexedDB/test/test_null_keys.html +++ b/dom/indexedDB/test/test_null_keys.html @@ -16,7 +16,7 @@ const name = window.location.pathname; const description = "My Test Database"; - let request = mozIndexedDB.open(name, description); + let request = moz_indexedDB.open(name, description); request.onerror = errorHandler; request.onsuccess = grabEventAndContinueHandler; let event = yield; diff --git a/dom/indexedDB/test/test_objectStore_inline_autoincrement_key_added_on_put.html b/dom/indexedDB/test/test_objectStore_inline_autoincrement_key_added_on_put.html index 6161b8ce59d..e1a3478f7b9 100644 --- a/dom/indexedDB/test/test_objectStore_inline_autoincrement_key_added_on_put.html +++ b/dom/indexedDB/test/test_objectStore_inline_autoincrement_key_added_on_put.html @@ -19,7 +19,7 @@ function testSteps() const name = window.location.pathname; const description = "My Test Database"; - var request = mozIndexedDB.open(name, description); + var request = moz_indexedDB.open(name, description); request.onerror = errorHandler; request.onsuccess = grabEventAndContinueHandler; var event = yield; diff --git a/dom/indexedDB/test/test_objectStore_remove_values.html b/dom/indexedDB/test/test_objectStore_remove_values.html index c8beb304b1d..f19c8130ddc 100644 --- a/dom/indexedDB/test/test_objectStore_remove_values.html +++ b/dom/indexedDB/test/test_objectStore_remove_values.html @@ -19,7 +19,7 @@ function testSteps() const name = window.location.pathname; const description = "My Test Database"; - var request = mozIndexedDB.open(name, description); + var request = moz_indexedDB.open(name, description); request.onerror = errorHandler; request.onsuccess = grabEventAndContinueHandler; var event = yield; diff --git a/dom/indexedDB/test/test_open_empty_db.html b/dom/indexedDB/test/test_open_empty_db.html index 5e9b549f153..b45b19c7d2d 100644 --- a/dom/indexedDB/test/test_open_empty_db.html +++ b/dom/indexedDB/test/test_open_empty_db.html @@ -19,7 +19,7 @@ let request; try { - request = mozIndexedDB.open("", ""); + request = moz_indexedDB.open("", ""); ok(false, "Open with empty name should have thrown!"); } catch(e) { @@ -27,14 +27,14 @@ } try { - request = mozIndexedDB.open(null, ""); + request = moz_indexedDB.open(null, ""); ok(false, "Open with null name should have thrown!"); } catch(e) { is(request, undefined, "Shouldn't be set to anything"); } - request = mozIndexedDB.open(name, description); + request = moz_indexedDB.open(name, description); request.onerror = errorHandler; request.onsuccess = grabEventAndContinueHandler; let event = yield; diff --git a/dom/indexedDB/test/test_open_objectStore.html b/dom/indexedDB/test/test_open_objectStore.html index a2032a904bb..c2487e7f4f3 100644 --- a/dom/indexedDB/test/test_open_objectStore.html +++ b/dom/indexedDB/test/test_open_objectStore.html @@ -18,7 +18,7 @@ const description = "My Test Database"; const objectStoreName = "Objects"; - let request = mozIndexedDB.open(name, description); + let request = moz_indexedDB.open(name, description); request.onerror = errorHandler; request.onsuccess = grabEventAndContinueHandler; let event = yield; diff --git a/dom/indexedDB/test/test_overlapping_transactions.html b/dom/indexedDB/test/test_overlapping_transactions.html index 09bd0862a70..417787a94dc 100644 --- a/dom/indexedDB/test/test_overlapping_transactions.html +++ b/dom/indexedDB/test/test_overlapping_transactions.html @@ -19,7 +19,7 @@ const description = "My Test Database"; const objectStores = [ "foo", "bar" ]; - let request = mozIndexedDB.open(name, description); + let request = moz_indexedDB.open(name, description); request.onerror = errorHandler; request.onsuccess = grabEventAndContinueHandler; let event = yield; diff --git a/dom/indexedDB/test/test_put_get_values.html b/dom/indexedDB/test/test_put_get_values.html index 8a18ce77fa8..451665ded7c 100644 --- a/dom/indexedDB/test/test_put_get_values.html +++ b/dom/indexedDB/test/test_put_get_values.html @@ -20,7 +20,7 @@ let testString = { key: 0, value: "testString" }; let testInt = { key: 1, value: 1002 }; - let request = mozIndexedDB.open(name, description); + let request = moz_indexedDB.open(name, description); request.onerror = errorHandler; request.onsuccess = grabEventAndContinueHandler; let event = yield; diff --git a/dom/indexedDB/test/test_put_get_values_autoIncrement.html b/dom/indexedDB/test/test_put_get_values_autoIncrement.html index 2a9be7ddcb6..93425d3d2ff 100644 --- a/dom/indexedDB/test/test_put_get_values_autoIncrement.html +++ b/dom/indexedDB/test/test_put_get_values_autoIncrement.html @@ -20,7 +20,7 @@ let testString = { value: "testString" }; let testInt = { value: 1002 }; - let request = mozIndexedDB.open(name, description); + let request = moz_indexedDB.open(name, description); request.onerror = errorHandler; request.onsuccess = grabEventAndContinueHandler; let event = yield; diff --git a/dom/indexedDB/test/test_readonly_transactions.html b/dom/indexedDB/test/test_readonly_transactions.html index 104e831b121..118d22af830 100644 --- a/dom/indexedDB/test/test_readonly_transactions.html +++ b/dom/indexedDB/test/test_readonly_transactions.html @@ -20,7 +20,7 @@ const description = "My Test Database"; const osName = "foo"; - let request = mozIndexedDB.open(name, description); + let request = moz_indexedDB.open(name, description); request.onerror = errorHandler; request.onsuccess = grabEventAndContinueHandler; let event = yield; diff --git a/dom/indexedDB/test/test_remove_index.html b/dom/indexedDB/test/test_remove_index.html index 402d88ba610..386073f0d7c 100644 --- a/dom/indexedDB/test/test_remove_index.html +++ b/dom/indexedDB/test/test_remove_index.html @@ -19,7 +19,7 @@ const description = "My Test Database"; const indexName = "My Test Index"; - let request = mozIndexedDB.open(name, description); + let request = moz_indexedDB.open(name, description); request.onerror = errorHandler; request.onsuccess = grabEventAndContinueHandler; let event = yield; diff --git a/dom/indexedDB/test/test_remove_objectStore.html b/dom/indexedDB/test/test_remove_objectStore.html index 63c496ccad8..950b681c9dd 100644 --- a/dom/indexedDB/test/test_remove_objectStore.html +++ b/dom/indexedDB/test/test_remove_objectStore.html @@ -19,7 +19,7 @@ const description = "My Test Database"; const objectStoreName = "Objects"; - let request = mozIndexedDB.open(name, description); + let request = moz_indexedDB.open(name, description); request.onerror = errorHandler; request.onsuccess = grabEventAndContinueHandler; let event = yield; diff --git a/dom/indexedDB/test/test_request_readyState.html b/dom/indexedDB/test/test_request_readyState.html index b1b03711f35..20a0dad9892 100644 --- a/dom/indexedDB/test/test_request_readyState.html +++ b/dom/indexedDB/test/test_request_readyState.html @@ -19,7 +19,7 @@ const LOADING = Components.interfaces.nsIIDBRequest.LOADING; const DONE = Components.interfaces.nsIIDBRequest.DONE; - let request = mozIndexedDB.open(name, description); + let request = moz_indexedDB.open(name, description); is(request.readyState, LOADING, "Correct readyState"); request.onerror = errorHandler; diff --git a/dom/indexedDB/test/test_setVersion.html b/dom/indexedDB/test/test_setVersion.html index c673fae5a8e..6c3f0cdf50f 100644 --- a/dom/indexedDB/test/test_setVersion.html +++ b/dom/indexedDB/test/test_setVersion.html @@ -17,7 +17,7 @@ function testSteps() const name = window.location.pathname; const description = "My Test Database"; - var request = mozIndexedDB.open(name, description); + var request = moz_indexedDB.open(name, description); request.onerror = errorHandler; request.onsuccess = grabEventAndContinueHandler; var event = yield; diff --git a/dom/indexedDB/test/test_transaction_abort.html b/dom/indexedDB/test/test_transaction_abort.html index 87c1ec6029f..64520015c30 100644 --- a/dom/indexedDB/test/test_transaction_abort.html +++ b/dom/indexedDB/test/test_transaction_abort.html @@ -26,7 +26,7 @@ const description = "My Test Database"; - let request = mozIndexedDB.open(name, description); + let request = moz_indexedDB.open(name, description); request.onerror = errorHandler; request.onsuccess = grabEventAndContinueHandler; let event = yield; diff --git a/dom/indexedDB/test/test_writer_starvation.html b/dom/indexedDB/test/test_writer_starvation.html index f69b2e9f5d9..dafc9240a2c 100644 --- a/dom/indexedDB/test/test_writer_starvation.html +++ b/dom/indexedDB/test/test_writer_starvation.html @@ -19,7 +19,7 @@ const name = window.location.pathname; const description = "My Test Database"; - let request = mozIndexedDB.open(name, description); + let request = moz_indexedDB.open(name, description); request.onerror = errorHandler; request.onsuccess = grabEventAndContinueHandler; let event = yield; diff --git a/dom/interfaces/storage/nsIDOMStorageWindow.idl b/dom/interfaces/storage/nsIDOMStorageWindow.idl index d2f525a8901..798adb42093 100644 --- a/dom/interfaces/storage/nsIDOMStorageWindow.idl +++ b/dom/interfaces/storage/nsIDOMStorageWindow.idl @@ -71,5 +71,5 @@ interface nsIDOMStorageWindow : nsISupports /** * Indexed Databases for the current browsing context. */ - readonly attribute nsIIndexedDatabaseRequest mozIndexedDB; + readonly attribute nsIIndexedDatabaseRequest moz_indexedDB; };