Skip to content

Commit 39463d6

Browse files
authored
feat: Imported Firefox 139 schema data (#5660)
1 parent 1e48862 commit 39463d6

File tree

5 files changed

+433
-1
lines changed

5 files changed

+433
-1
lines changed

src/schema/imported/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ import search from './search.json';
4848
import sessions from './sessions.json';
4949
import sidebarAction from './sidebar_action.json';
5050
import storage from './storage.json';
51+
import tabGroups from './tabGroups.json';
5152
import tabs from './tabs.json';
5253
import telemetry from './telemetry.json';
5354
import test from './test.json';
@@ -109,6 +110,7 @@ export default [
109110
sessions,
110111
sidebarAction,
111112
storage,
113+
tabGroups,
112114
tabs,
113115
telemetry,
114116
test,

src/schema/imported/manifest.json

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,9 @@
641641
{
642642
"$ref": "search#/definitions/OptionalPermissionNoPrompt"
643643
},
644+
{
645+
"$ref": "tabGroups#/definitions/OptionalPermissionNoPrompt"
646+
},
644647
{
645648
"$ref": "tabs#/definitions/OptionalPermissionNoPrompt"
646649
},
@@ -751,6 +754,51 @@
751754
}
752755
]
753756
},
757+
"CommonDataCollectionPermission": {
758+
"anyOf": [
759+
{
760+
"type": "string",
761+
"enum": [
762+
"authenticationInfo",
763+
"bookmarksInfo",
764+
"browsingHistory",
765+
"financialAndPaymentInfo",
766+
"healthInfo",
767+
"locationInfo",
768+
"personalCommunications",
769+
"personallyIdentifyingInfo",
770+
"websiteActivity",
771+
"websiteContent"
772+
]
773+
}
774+
]
775+
},
776+
"DataCollectionPermission": {
777+
"anyOf": [
778+
{
779+
"$ref": "#/types/CommonDataCollectionPermission"
780+
},
781+
{
782+
"type": "string",
783+
"enum": [
784+
"none"
785+
]
786+
}
787+
]
788+
},
789+
"OptionalDataCollectionPermission": {
790+
"anyOf": [
791+
{
792+
"$ref": "#/types/CommonDataCollectionPermission"
793+
},
794+
{
795+
"type": "string",
796+
"enum": [
797+
"technicalAndInteraction"
798+
]
799+
}
800+
]
801+
},
754802
"PermissionNoPrompt": {
755803
"anyOf": [
756804
{
@@ -878,6 +926,25 @@
878926
},
879927
"admin_install_only": {
880928
"type": "boolean"
929+
},
930+
"data_collection_permissions": {
931+
"type": "object",
932+
"properties": {
933+
"optional": {
934+
"type": "array",
935+
"items": {
936+
"allOf": [
937+
{
938+
"$ref": "#/types/OptionalDataCollectionPermission"
939+
},
940+
{
941+
"onError": "warn"
942+
}
943+
]
944+
},
945+
"default": []
946+
}
947+
}
881948
}
882949
}
883950
},

src/schema/imported/permissions.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,13 @@
171171
"$ref": "manifest#/types/MatchPattern"
172172
},
173173
"default": []
174+
},
175+
"data_collection": {
176+
"type": "array",
177+
"items": {
178+
"$ref": "manifest#/types/OptionalDataCollectionPermission"
179+
},
180+
"default": []
174181
}
175182
}
176183
},
@@ -197,6 +204,13 @@
197204
"$ref": "manifest#/types/MatchPattern"
198205
},
199206
"default": []
207+
},
208+
"data_collection": {
209+
"type": "array",
210+
"items": {
211+
"$ref": "manifest#/types/OptionalDataCollectionPermission"
212+
},
213+
"default": []
200214
}
201215
}
202216
}

0 commit comments

Comments
 (0)