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:
Родитель
2995f73f3e
Коммит
e6dcdc7b15
|
@ -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()
|
||||
|
|
Загрузка…
Ссылка в новой задаче