Bug 1197420 Part 1 Schema groundwork for optional permissions r=kmag

MozReview-Commit-ID: JIfPYjxjFfM

--HG--
extra : rebase_source : e212c8209c7fb8d52466c1ede94f38006654ac85
extra : source : 4232cbc11710c9c9e9eb8757b54140e87307274f
This commit is contained in:
Andrew Swan 2017-03-24 11:10:26 -07:00
Родитель e7bb229636
Коммит c3f87a3014
9 изменённых файлов: 29 добавлений и 12 удалений

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

@ -7,7 +7,7 @@
"namespace": "manifest",
"types": [
{
"$extend": "Permission",
"$extend": "OptionalPermission",
"choices": [{
"type": "string",
"enum": [

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

@ -7,7 +7,7 @@
"namespace": "manifest",
"types": [
{
"$extend": "Permission",
"$extend": "OptionalPermission",
"choices": [{
"type": "string",
"enum": [

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

@ -7,7 +7,7 @@
"namespace": "manifest",
"types": [
{
"$extend": "Permission",
"$extend": "OptionalPermission",
"choices": [{
"type": "string",
"enum": [

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

@ -7,7 +7,7 @@
"namespace": "manifest",
"types": [
{
"$extend": "Permission",
"$extend": "OptionalPermission",
"choices": [{
"type": "string",
"enum": [

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

@ -7,7 +7,7 @@
"namespace": "manifest",
"types": [
{
"$extend": "Permission",
"$extend": "OptionalPermission",
"choices": [{
"type": "string",
"enum": [

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

@ -179,6 +179,12 @@
"optional": true
},
"optional_permissions": {
"type": "array",
"items": { "$ref": "OptionalPermission" },
"optional": true
},
"web_accessible_resources": {
"type": "array",
"items": { "type": "string" },
@ -207,23 +213,34 @@
"additionalProperties": { "$ref": "UnrecognizedProperty" }
},
{
"id": "Permission",
"id": "OptionalPermission",
"choices": [
{
"type": "string",
"enum": [
"alarms",
"clipboardRead",
"clipboardWrite",
"geolocation",
"idle",
"notifications",
"storage"
"notifications"
]
},
{ "$ref": "MatchPattern" }
]
},
{
"id": "Permission",
"choices": [
{ "$ref": "OptionalPermission" },
{
"type": "string",
"enum": [
"alarms",
"storage"
]
}
]
},
{
"id": "HttpURL",
"type": "string",

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

@ -7,7 +7,7 @@
"namespace": "manifest",
"types": [
{
"$extend": "Permission",
"$extend": "OptionalPermission",
"choices": [{
"type": "string",
"enum": [

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

@ -7,7 +7,7 @@
"namespace": "manifest",
"types": [
{
"$extend": "Permission",
"$extend": "OptionalPermission",
"choices": [{
"type": "string",
"enum": [

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

@ -7,7 +7,7 @@
"namespace": "manifest",
"types": [
{
"$extend": "Permission",
"$extend": "OptionalPermission",
"choices": [{
"type": "string",
"enum": [