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
parent eb67e9d016
commit 9856695998
3 changed files with 5 additions and 3 deletions

View File

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

View File

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

View File

@ -4,7 +4,8 @@
* 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
{
readonly attribute DOMString? path;