зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
38d1ffea4e
Коммит
047fa9319b
|
@ -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]
|
||||
|
|
Загрузка…
Ссылка в новой задаче