Bug 971732. Hide the DeviceStorage interface object in cases when the corresponding navigator APIs are hidden. r=sicking

This commit is contained in:
Boris Zbarsky 2015-01-12 11:52:20 -05:00
Родитель eb67e9d016
Коммит 9856695998
3 изменённых файлов: 5 добавлений и 3 удалений

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

@ -340,9 +340,9 @@ var interfaceNamesInGlobalScope =
// IMPORTANT: Do not change this list without review from a DOM peer! // IMPORTANT: Do not change this list without review from a DOM peer!
"DeviceProximityEvent", "DeviceProximityEvent",
// IMPORTANT: Do not change this list without review from a DOM peer! // IMPORTANT: Do not change this list without review from a DOM peer!
"DeviceStorage", { name: "DeviceStorage", pref: "device.storage.enabled" },
// IMPORTANT: Do not change this list without review from a DOM peer! // IMPORTANT: Do not change this list without review from a DOM peer!
"DeviceStorageChangeEvent", { name: "DeviceStorageChangeEvent", pref: "device.storage.enabled" },
// IMPORTANT: Do not change this list without review from a DOM peer! // IMPORTANT: Do not change this list without review from a DOM peer!
"Document", "Document",
// IMPORTANT: Do not change this list without review from a DOM peer! // IMPORTANT: Do not change this list without review from a DOM peer!

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

@ -7,6 +7,7 @@ dictionary DeviceStorageEnumerationParameters {
Date since; Date since;
}; };
[Pref="device.storage.enabled"]
interface DeviceStorage : EventTarget { interface DeviceStorage : EventTarget {
attribute EventHandler onchange; attribute EventHandler onchange;

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

@ -4,7 +4,8 @@
* You can obtain one at http://mozilla.org/MPL/2.0/. * You can obtain one at http://mozilla.org/MPL/2.0/.
*/ */
[Constructor(DOMString type, optional DeviceStorageChangeEventInit eventInitDict)] [Constructor(DOMString type, optional DeviceStorageChangeEventInit eventInitDict),
Pref="device.storage.enabled"]
interface DeviceStorageChangeEvent : Event interface DeviceStorageChangeEvent : Event
{ {
readonly attribute DOMString? path; readonly attribute DOMString? path;