Bug 1256046 - Hide MozPowerManager from the Web; r=khuey,bzbarsky

navigator.mozPower is already hidden behind the power permission,
so there is no need to be exposing this interface unconditionally.
This commit is contained in:
Ehsan Akhgari 2016-03-12 14:51:18 -05:00
Родитель 38d1ffea4e
Коммит 047fa9319b
2 изменённых файлов: 2 добавлений и 1 удалений

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

@ -826,7 +826,7 @@ var interfaceNamesInGlobalScope =
// IMPORTANT: Do not change this list without review from a DOM peer!
{name: "MozOtaStatusEvent", b2g: true},
// IMPORTANT: Do not change this list without review from a DOM peer!
"MozPowerManager",
{name: "MozPowerManager", b2g: true, permission: "power"},
// IMPORTANT: Do not change this list without review from a DOM peer!
"mozRTCIceCandidate",
// IMPORTANT: Do not change this list without review from a DOM peer!

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

@ -21,6 +21,7 @@ enum FactoryResetReason {
/**
* This interface implements navigator.mozPower
*/
[CheckAnyPermissions="power"]
interface MozPowerManager
{
[Throws]