From 859692a0422de1da3df0a9a18420eb3655fd612d Mon Sep 17 00:00:00 2001 From: Kyle Huey Date: Tue, 13 Aug 2013 08:49:11 -0400 Subject: [PATCH] Bug 890304 - Remove the indexeddb.feature.enabled pref. r=sicking --- b2g/app/b2g.js | 1 - dom/base/nsDOMClassInfo.cpp | 4 ++-- dom/base/nsGlobalWindow.cpp | 7 ------- dom/base/nsGlobalWindow.h | 2 -- mobile/android/app/mobile.js | 1 - 5 files changed, 2 insertions(+), 13 deletions(-) diff --git a/b2g/app/b2g.js b/b2g/app/b2g.js index 66d5dc3a58db..491ec7b39b04 100644 --- a/b2g/app/b2g.js +++ b/b2g/app/b2g.js @@ -257,7 +257,6 @@ pref("layers.async-pan-zoom.enabled", true); pref("notification.feature.enabled", true); // IndexedDB -pref("indexedDB.feature.enabled", true); pref("dom.indexedDB.warningQuota", 5); // prevent video elements from preloading too much data diff --git a/dom/base/nsDOMClassInfo.cpp b/dom/base/nsDOMClassInfo.cpp index 71f36f6007c8..e7a963c8dad8 100644 --- a/dom/base/nsDOMClassInfo.cpp +++ b/dom/base/nsDOMClassInfo.cpp @@ -1195,7 +1195,7 @@ nsDOMClassInfo::Init() AutoSafeJSContext cx; DOM_CLASSINFO_MAP_BEGIN(Window, nsIDOMWindow) - DOM_CLASSINFO_WINDOW_MAP_ENTRIES(nsGlobalWindow::HasIndexedDBSupport()) + DOM_CLASSINFO_WINDOW_MAP_ENTRIES(true) #ifdef MOZ_WEBSPEECH DOM_CLASSINFO_MAP_ENTRY(nsISpeechSynthesisGetter) #endif @@ -1390,7 +1390,7 @@ nsDOMClassInfo::Init() DOM_CLASSINFO_MAP_END DOM_CLASSINFO_MAP_BEGIN_NO_CLASS_IF(ModalContentWindow, nsIDOMWindow) - DOM_CLASSINFO_WINDOW_MAP_ENTRIES(nsGlobalWindow::HasIndexedDBSupport()) + DOM_CLASSINFO_WINDOW_MAP_ENTRIES(true) DOM_CLASSINFO_MAP_ENTRY(nsIDOMModalContentWindow) #ifdef MOZ_WEBSPEECH DOM_CLASSINFO_MAP_ENTRY(nsISpeechSynthesisGetter) diff --git a/dom/base/nsGlobalWindow.cpp b/dom/base/nsGlobalWindow.cpp index 21bf37c17695..28addc12f5f4 100644 --- a/dom/base/nsGlobalWindow.cpp +++ b/dom/base/nsGlobalWindow.cpp @@ -11436,13 +11436,6 @@ nsGlobalWindow::DisableTimeChangeNotifications() nsSystemTimeChangeObserver::RemoveWindowListener(this); } -// static -bool -nsGlobalWindow::HasIndexedDBSupport() -{ - return Preferences::GetBool("indexedDB.feature.enabled", true); -} - static size_t SizeOfEventTargetObjectsEntryExcludingThisFun( nsPtrHashKey *aEntry, diff --git a/dom/base/nsGlobalWindow.h b/dom/base/nsGlobalWindow.h index 107db9c36aa8..1bd4aef832b4 100644 --- a/dom/base/nsGlobalWindow.h +++ b/dom/base/nsGlobalWindow.h @@ -668,8 +668,6 @@ public: return innerWindow && innerWindow->IsInnerWindow() ? innerWindow : nullptr; } - static bool HasIndexedDBSupport(); - static WindowByIdTable* GetWindowsTable() { return sWindowsById; } diff --git a/mobile/android/app/mobile.js b/mobile/android/app/mobile.js index 3c8b2b52a810..2662b81a599d 100644 --- a/mobile/android/app/mobile.js +++ b/mobile/android/app/mobile.js @@ -560,7 +560,6 @@ pref("dom.webnotifications.enabled", true); // prevent tooltips from showing up pref("browser.chrome.toolbar_tips", false); -pref("indexedDB.feature.enabled", true); pref("dom.indexedDB.warningQuota", 5); // prevent video elements from preloading too much data