Bug 1055477 - Part 3: update MozNFCPeerEvent and tests. r=smaug

This commit is contained in:
Yoshi Huang 2014-08-21 10:55:01 +08:00
Родитель 1dbab1393a
Коммит 2f283a6502
2 изменённых файлов: 2 добавлений и 7 удалений

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

@ -690,12 +690,6 @@ var interfaceNamesInGlobalScope =
"MozNamedAttrMap",
// IMPORTANT: Do not change this list without review from a DOM peer!
{name: "MozNDEFRecord", b2g: true},
// IMPORTANT: Do not change this list without review from a DOM peer!
{name: "MozNFCPeer", b2g: true},
// IMPORTANT: Do not change this list without review from a DOM peer!
{name: "MozNFCPeerEvent", b2g: true, permission: "nfc-write"},
// IMPORTANT: Do not change this list without review from a DOM peer!
{name: "MozNFCTag", b2g: true},
// IMPORTANT: Do not change this list without review from a DOM peer!
{name: "MozOtaStatusEvent", b2g: true, pref: "dom.mobileconnection.enabled"},
// IMPORTANT: Do not change this list without review from a DOM peer!

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

@ -5,7 +5,8 @@
*/
[Constructor(DOMString type, optional MozNFCPeerEventInit eventInitDict),
Func="Navigator::HasNFCSupport"]
Func="Navigator::HasNFCSupport", CheckPermissions="nfc-write",
AvailableIn="CertifiedApps"]
interface MozNFCPeerEvent : Event
{
/**