зеркало из https://github.com/mozilla/gecko-dev.git
Bug 905739 - Remove nsIDOMStorageIndexedDB; r=khuey
This commit is contained in:
Родитель
18cd92e9b4
Коммит
609e778c1f
|
@ -1058,26 +1058,22 @@ nsDOMClassInfo::RegisterExternalClasses()
|
|||
}
|
||||
|
||||
#ifdef MOZ_B2G
|
||||
#define DOM_CLASSINFO_WINDOW_MAP_ENTRIES(_support_indexed_db) \
|
||||
#define DOM_CLASSINFO_WINDOW_MAP_ENTRIES \
|
||||
DOM_CLASSINFO_MAP_ENTRY(nsIDOMWindow) \
|
||||
DOM_CLASSINFO_MAP_ENTRY(nsIDOMWindowB2G) \
|
||||
DOM_CLASSINFO_MAP_ENTRY(nsIDOMJSWindow) \
|
||||
DOM_CLASSINFO_MAP_ENTRY(nsIDOMEventTarget) \
|
||||
DOM_CLASSINFO_MAP_ENTRY(nsIInlineEventHandlers) \
|
||||
DOM_CLASSINFO_MAP_ENTRY(nsIDOMWindowPerformance) \
|
||||
DOM_CLASSINFO_MAP_CONDITIONAL_ENTRY(nsIDOMStorageIndexedDB, \
|
||||
_support_indexed_db) \
|
||||
DOM_CLASSINFO_MAP_CONDITIONAL_ENTRY(nsITouchEventReceiver, \
|
||||
nsDOMTouchEvent::PrefEnabled())
|
||||
#else // !MOZ_B2G
|
||||
#define DOM_CLASSINFO_WINDOW_MAP_ENTRIES(_support_indexed_db) \
|
||||
#define DOM_CLASSINFO_WINDOW_MAP_ENTRIES \
|
||||
DOM_CLASSINFO_MAP_ENTRY(nsIDOMWindow) \
|
||||
DOM_CLASSINFO_MAP_ENTRY(nsIDOMJSWindow) \
|
||||
DOM_CLASSINFO_MAP_ENTRY(nsIDOMEventTarget) \
|
||||
DOM_CLASSINFO_MAP_ENTRY(nsIInlineEventHandlers) \
|
||||
DOM_CLASSINFO_MAP_ENTRY(nsIDOMWindowPerformance) \
|
||||
DOM_CLASSINFO_MAP_CONDITIONAL_ENTRY(nsIDOMStorageIndexedDB, \
|
||||
_support_indexed_db) \
|
||||
DOM_CLASSINFO_MAP_CONDITIONAL_ENTRY(nsITouchEventReceiver, \
|
||||
nsDOMTouchEvent::PrefEnabled())
|
||||
#endif // MOZ_B2G
|
||||
|
@ -1112,7 +1108,7 @@ nsDOMClassInfo::Init()
|
|||
AutoSafeJSContext cx;
|
||||
|
||||
DOM_CLASSINFO_MAP_BEGIN(Window, nsIDOMWindow)
|
||||
DOM_CLASSINFO_WINDOW_MAP_ENTRIES(true)
|
||||
DOM_CLASSINFO_WINDOW_MAP_ENTRIES
|
||||
#ifdef MOZ_WEBSPEECH
|
||||
DOM_CLASSINFO_MAP_ENTRY(nsISpeechSynthesisGetter)
|
||||
#endif
|
||||
|
@ -1223,7 +1219,7 @@ nsDOMClassInfo::Init()
|
|||
#endif
|
||||
|
||||
DOM_CLASSINFO_MAP_BEGIN_NO_CLASS_IF(ChromeWindow, nsIDOMWindow)
|
||||
DOM_CLASSINFO_WINDOW_MAP_ENTRIES(true)
|
||||
DOM_CLASSINFO_WINDOW_MAP_ENTRIES
|
||||
DOM_CLASSINFO_MAP_ENTRY(nsIDOMChromeWindow)
|
||||
#ifdef MOZ_WEBSPEECH
|
||||
DOM_CLASSINFO_MAP_ENTRY(nsISpeechSynthesisGetter)
|
||||
|
@ -1307,7 +1303,7 @@ nsDOMClassInfo::Init()
|
|||
DOM_CLASSINFO_MAP_END
|
||||
|
||||
DOM_CLASSINFO_MAP_BEGIN_NO_CLASS_IF(ModalContentWindow, nsIDOMWindow)
|
||||
DOM_CLASSINFO_WINDOW_MAP_ENTRIES(true)
|
||||
DOM_CLASSINFO_WINDOW_MAP_ENTRIES
|
||||
DOM_CLASSINFO_MAP_ENTRY(nsIDOMModalContentWindow)
|
||||
#ifdef MOZ_WEBSPEECH
|
||||
DOM_CLASSINFO_MAP_ENTRY(nsISpeechSynthesisGetter)
|
||||
|
|
|
@ -1546,7 +1546,6 @@ NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(nsGlobalWindow)
|
|||
NS_INTERFACE_MAP_ENTRY(nsIDOMEventTarget)
|
||||
NS_INTERFACE_MAP_ENTRY(mozilla::dom::EventTarget)
|
||||
NS_INTERFACE_MAP_ENTRY(nsPIDOMWindow)
|
||||
NS_INTERFACE_MAP_ENTRY(nsIDOMStorageIndexedDB)
|
||||
NS_INTERFACE_MAP_ENTRY(nsISupportsWeakReference)
|
||||
NS_INTERFACE_MAP_ENTRY(nsIInterfaceRequestor)
|
||||
NS_INTERFACE_MAP_ENTRY(nsIDOMWindowPerformance)
|
||||
|
@ -8963,10 +8962,6 @@ nsGlobalWindow::GetLocalStorage(nsIDOMStorage ** aLocalStorage)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
//*****************************************************************************
|
||||
// nsGlobalWindow::nsIDOMStorageIndexedDB
|
||||
//*****************************************************************************
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsGlobalWindow::GetIndexedDB(nsISupports** _retval)
|
||||
{
|
||||
|
|
|
@ -38,7 +38,6 @@
|
|||
#include "mozFlushType.h"
|
||||
#include "prclist.h"
|
||||
#include "nsIDOMStorageEvent.h"
|
||||
#include "nsIDOMStorageIndexedDB.h"
|
||||
#include "nsFrameMessageManager.h"
|
||||
#include "mozilla/LinkedList.h"
|
||||
#include "mozilla/TimeStamp.h"
|
||||
|
@ -287,7 +286,6 @@ class nsGlobalWindow : public mozilla::dom::EventTarget,
|
|||
public nsPIDOMWindow,
|
||||
public nsIScriptGlobalObject,
|
||||
public nsIDOMJSWindow,
|
||||
public nsIDOMStorageIndexedDB,
|
||||
public nsSupportsWeakReference,
|
||||
public nsIInterfaceRequestor,
|
||||
public PRCListStr,
|
||||
|
@ -442,9 +440,6 @@ public:
|
|||
|
||||
virtual NS_HIDDEN_(void) SetHasGamepadEventListener(bool aHasGamepad = true);
|
||||
|
||||
// nsIDOMStorageIndexedDB
|
||||
NS_DECL_NSIDOMSTORAGEINDEXEDDB
|
||||
|
||||
// nsIInterfaceRequestor
|
||||
NS_DECL_NSIINTERFACEREQUESTOR
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ interface nsIVariant;
|
|||
* @see <http://www.whatwg.org/html/#window>
|
||||
*/
|
||||
|
||||
[scriptable, uuid(e4610a67-ce3c-4dff-a5cf-b0e858452bf5)]
|
||||
[scriptable, uuid(b0ebb526-ed69-43c6-8242-b381a1fe79da)]
|
||||
interface nsIDOMWindow : nsISupports
|
||||
{
|
||||
// the current browsing context
|
||||
|
@ -249,6 +249,13 @@ interface nsIDOMWindow : nsISupports
|
|||
readonly attribute nsIDOMStorage localStorage;
|
||||
|
||||
|
||||
// IndexedDB
|
||||
// https://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#requests
|
||||
// IDBEnvironment
|
||||
readonly attribute nsISupports indexedDB;
|
||||
readonly attribute nsISupports mozIndexedDB;
|
||||
|
||||
|
||||
// DOM Range
|
||||
/**
|
||||
* Method for accessing this window's selection object.
|
||||
|
@ -515,5 +522,5 @@ interface nsIDOMWindowPerformance : nsISupports
|
|||
* Empty interface for compatibility with older versions.
|
||||
* @deprecated Use nsIDOMWindow instead
|
||||
*/
|
||||
[scriptable, uuid(ad5768c7-8668-4cd4-bcac-3d0a400d50be)]
|
||||
[scriptable, uuid(2ec49e81-b2ba-4633-991a-f48f1e1d8800)]
|
||||
interface nsIDOMWindowInternal : nsIDOMWindow {};
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
XPIDL_SOURCES += [
|
||||
'nsIDOMStorage.idl',
|
||||
'nsIDOMStorageEvent.idl',
|
||||
'nsIDOMStorageIndexedDB.idl',
|
||||
'nsIDOMStorageManager.idl',
|
||||
'nsIDOMToString.idl',
|
||||
]
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/* 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 http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "domstubs.idl"
|
||||
|
||||
/**
|
||||
* Interface for a client side storage. See
|
||||
* http://www.whatwg.org/specs/web-apps/current-work/#scs-client-side and
|
||||
* http://www.w3.org/TR/IndexedDB/ for more information.
|
||||
*
|
||||
* Allows access to contextual storage areas.
|
||||
*/
|
||||
|
||||
[scriptable, uuid(f4deeef5-32d3-4048-bb56-883330fd8f35)]
|
||||
interface nsIDOMStorageIndexedDB : nsISupports
|
||||
{
|
||||
/**
|
||||
* Indexed Databases for the current browsing context.
|
||||
*/
|
||||
readonly attribute nsISupports indexedDB;
|
||||
readonly attribute nsISupports mozIndexedDB;
|
||||
};
|
Загрузка…
Ссылка в новой задаче