Support mobileid permission (bug 1082053)

Permission is privileged according to
http://dxr.mozilla.org/mozilla-central/source/dom/apps/PermissionsTable.jsm#448.
This commit is contained in:
Mark Striemer 2014-10-14 08:39:35 -05:00
Родитель 2995f73f3e
Коммит e6dcdc7b15
2 изменённых файлов: 8 добавлений и 1 удалений

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

@ -39,7 +39,8 @@ PERMISSIONS = {
'camera', 'contacts', 'device-storage:pictures',
'device-storage:videos', 'device-storage:music',
'device-storage:sdcard', 'feature-detection',
'input', 'mobilenetwork', 'speaker-control', 'systemXHR', 'tcp-socket'
'input', 'mobileid', 'mobilenetwork', 'speaker-control', 'systemXHR',
'tcp-socket'
]),
'certified': set([
'attention', 'audio-channel-ringer', 'audio-channel-telephony',

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

@ -828,6 +828,12 @@ class TestWebapps(WebappBaseTestCase):
self.analyze()
self.assert_failed(with_errors=True)
def test_permissions_mobileid(self):
self.set_permissions()
self.data["permissions"]["mobileid"] = {"description": "cause"}
self.analyze()
self.assert_silent()
def test_csp(self):
self.data['csp'] = 'this is the csp policy. it can be a string.'
self.analyze()