Bug 923417 - Enabling DataStore for b2g and Desktop (non-release build), r=khuey

This commit is contained in:
Andrea Marchesini 2013-10-05 19:35:19 -04:00
Родитель 571a5beee7
Коммит 40b3730a18
3 изменённых файлов: 11 добавлений и 0 удалений

Просмотреть файл

@ -796,7 +796,11 @@ pref("network.sntp.timeout", 30); // In seconds.
pref("dom.promise.enabled", false);
// Enable dataStore
#ifdef RELEASE_BUILD
pref("dom.datastore.enabled", false);
#else
pref("dom.datastore.enabled", true);
#endif
// DOM Inter-App Communication API.
#ifdef MOZ_WIDGET_GONK

Просмотреть файл

@ -96,6 +96,10 @@ const kEventConstructors = {
return e;
},
},
DataStoreChangeEvent: { create: function (aName, aProps) {
return new DataStoreChangeEvent(aProps);
},
},
DeviceLightEvent: { create: function (aName, aProps) {
return new DeviceLightEvent(aName, aProps);
},

Просмотреть файл

@ -150,6 +150,9 @@ var interfaceNamesInGlobalScope =
"DataChannel",
"DataContainerEvent",
{name: "DataErrorEvent", b2g: true},
{name: "DataStore", b2g: true, release: false},
{name: "DataStoreChangeEvent", b2g: true, release: false},
{name: "DataStoreCursor", b2g: true, release: false},
"DataTransfer",
"DelayNode",
"DesktopNotification",