diff --git a/appvalidator/constants.py b/appvalidator/constants.py index 2315776..08b18b3 100644 --- a/appvalidator/constants.py +++ b/appvalidator/constants.py @@ -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', diff --git a/tests/test_webapp.py b/tests/test_webapp.py index 6173a67..c9d096b 100644 --- a/tests/test_webapp.py +++ b/tests/test_webapp.py @@ -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()