Add 'permissions' to allowed keys.

SDK 1.14 will add a 'permissions' key to package.json, initially used only for allowing addons to opt-in to running in private browsing windows, with other potential uses in the future. This commit adds support for the key so developers don't get errors when trying to add the key to their addons.(cherry picked from commit 350f400829)
This commit is contained in:
KWierso 2013-03-16 00:01:49 -07:00 коммит произвёл Wes Kocher
Родитель b910b2783c
Коммит 8acf5b3553
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -793,7 +793,7 @@ class PackageRevision(BaseModel):
@staticmethod
def validate_extra_json(extra_json):
allowed_keys = ('contributors', 'homepage', 'icon', 'icon64', 'id',
'preferences', 'license')
'preferences', 'license', 'permissions')
for key in extra_json.keys():
if key not in allowed_keys:
raise KeyNotAllowed(allowed_keys)