webext-schema 5.6.0 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5068,6 +5068,10 @@
5068
5068
  "windowId": {
5069
5069
  "type": "integer",
5070
5070
  "optional": true
5071
+ },
5072
+ "cookieStoreId": {
5073
+ "type": "string",
5074
+ "optional": true
5071
5075
  }
5072
5076
  }
5073
5077
  }
@@ -6443,6 +6447,12 @@
6443
6447
  ],
6444
6448
  "description": "The tab's new favicon URL. This property is only present if the extension's manifest includes the <code>\"tabs\"</code> permission."
6445
6449
  },
6450
+ "groupId": {
6451
+ "type": "integer",
6452
+ "optional": true,
6453
+ "minimum": -1,
6454
+ "description": "The tab's new group ID. $(ref:tabGroups.TAB_GROUP_ID_NONE) (-1) if the tab no longer belongs to a tab group."
6455
+ },
6446
6456
  "hidden": {
6447
6457
  "type": "boolean",
6448
6458
  "optional": true,
@@ -8296,6 +8306,24 @@
8296
8306
  "optional": true
8297
8307
  }
8298
8308
  ]
8309
+ },
8310
+ {
8311
+ "name": "onUserSettingsChanged",
8312
+ "type": "function",
8313
+ "description": "Fired when user-specified settings relating to an extension's action change.",
8314
+ "parameters": [
8315
+ {
8316
+ "name": "change",
8317
+ "type": "object",
8318
+ "properties": {
8319
+ "isOnToolbar": {
8320
+ "type": "boolean",
8321
+ "description": "Whether the extension's action icon is visible on browser windows' top-level toolbar (i.e., whether the extension has been 'pinned' by the user).",
8322
+ "optional": true
8323
+ }
8324
+ }
8325
+ }
8326
+ ]
8299
8327
  }
8300
8328
  ]
8301
8329
  },
@@ -8436,6 +8464,10 @@
8436
8464
  "zoomSiteSpecific": {
8437
8465
  "$ref": "types.Setting",
8438
8466
  "description": "This boolean setting controls whether zoom is applied on a per-site basis or to the current tab only. If privacy.resistFingerprinting is true, this setting has no effect and zoom is applied to the current tab only."
8467
+ },
8468
+ "verticalTabs": {
8469
+ "$ref": "types.Setting",
8470
+ "description": "This boolean setting controls whether vertical tabs are enabled."
8439
8471
  }
8440
8472
  }
8441
8473
  },
@@ -9090,6 +9122,11 @@
9090
9122
  "optional": true,
9091
9123
  "description": "The JavaScript world for a script to execute within. Defaults to \"ISOLATED\"."
9092
9124
  },
9125
+ "cssOrigin": {
9126
+ "$ref": "extensionTypes.CSSOrigin",
9127
+ "optional": true,
9128
+ "description": "The css origin of the stylesheet to inject. Defaults to \"author\"."
9129
+ },
9093
9130
  "cookieStoreId": {
9094
9131
  "choices": [
9095
9132
  {
@@ -12538,7 +12575,8 @@
12538
12575
  "user",
12539
12576
  "author"
12540
12577
  ],
12541
- "description": "The origin of the CSS to inject, this affects the cascading order (priority) of the stylesheet."
12578
+ "description": "The origin of the CSS to inject, this affects the cascading order (priority) of the stylesheet.",
12579
+ "preprocess": "stringToLowerCase"
12542
12580
  },
12543
12581
  {
12544
12582
  "id": "InjectDetails",
@@ -12580,6 +12618,7 @@
12580
12618
  "cssOrigin": {
12581
12619
  "$ref": "CSSOrigin",
12582
12620
  "optional": true,
12621
+ "default": "author",
12583
12622
  "description": "The css origin of the stylesheet to inject. Defaults to \"author\"."
12584
12623
  }
12585
12624
  }
@@ -13029,6 +13068,28 @@
13029
13068
  "description": "Message localized for current locale."
13030
13069
  }
13031
13070
  },
13071
+ {
13072
+ "name": "getPreferredSystemLanguages",
13073
+ "type": "function",
13074
+ "async": "callback",
13075
+ "description": "Gets the preferred locales of the operating system. This is different from the locales set in the browser; to get those, use $(ref:i18n.getAcceptLanguages).",
13076
+ "parameters": [
13077
+ {
13078
+ "type": "function",
13079
+ "name": "callback",
13080
+ "parameters": [
13081
+ {
13082
+ "name": "languages",
13083
+ "type": "array",
13084
+ "items": {
13085
+ "$ref": "LanguageCode"
13086
+ },
13087
+ "description": "Array of LanguageCode"
13088
+ }
13089
+ ]
13090
+ }
13091
+ ]
13092
+ },
13032
13093
  {
13033
13094
  "name": "getUILanguage",
13034
13095
  "type": "function",
@@ -13455,7 +13516,7 @@
13455
13516
  },
13456
13517
  {
13457
13518
  "id": "ExtensionInstallType",
13458
- "description": "How the extension was installed. One of<br><var>development</var>: The extension was loaded unpacked in developer mode,<br><var>normal</var>: The extension was installed normally via an .xpi file,<br><var>sideload</var>: The extension was installed by other software on the machine,<br><var>admin</var>: The extension was installed by policy,<br><var>other</var>: The extension was installed by other means.",
13519
+ "description": "How the extension was installed.<dl><dt>development</dt><dd>The extension was loaded unpacked in developer mode,</dd><dt>normal</dt><dd>The extension was installed normally via an .xpi file</dd><dt>sideload</dt><dd>The extension was installed by other software on the machine</dd><dt>admin</dt><dd>The extension was installed by policy</dd><dt>other</dt><dd>The extension was installed by other means.</dd></dl>",
13459
13520
  "type": "string",
13460
13521
  "enum": [
13461
13522
  "development",
@@ -14498,6 +14559,11 @@
14498
14559
  },
14499
14560
  "optional": true,
14500
14561
  "default": []
14562
+ },
14563
+ "has_previous_consent": {
14564
+ "type": "boolean",
14565
+ "optional": true,
14566
+ "default": false
14501
14567
  }
14502
14568
  }
14503
14569
  }
@@ -14645,6 +14711,11 @@
14645
14711
  "$ref": "ExtensionURL"
14646
14712
  }
14647
14713
  },
14714
+ "css_origin": {
14715
+ "$ref": "extensionTypes.CSSOrigin",
14716
+ "default": "author",
14717
+ "optional": true
14718
+ },
14648
14719
  "js": {
14649
14720
  "type": "array",
14650
14721
  "optional": true,
@@ -16547,6 +16618,7 @@
16547
16618
  "aarch64",
16548
16619
  "arm",
16549
16620
  "ppc64",
16621
+ "riscv64",
16550
16622
  "s390x",
16551
16623
  "sparc64",
16552
16624
  "x86-32",
@@ -16923,7 +16995,7 @@
16923
16995
  ],
16924
16996
  "returns": {
16925
16997
  "$ref": "Port",
16926
- "description": "Port through which messages can be sent and received. The port's $(ref:runtime.Port onDisconnect) event is fired if the extension/app does not exist. "
16998
+ "description": "Port through which messages can be sent and received. The port's $(ref:runtime.Port.onDisconnect) event is fired if the extension/app does not exist. "
16927
16999
  }
16928
17000
  },
16929
17001
  {
@@ -17579,6 +17651,10 @@
17579
17651
  "items": {
17580
17652
  "$ref": "manifest.ExtensionURL"
17581
17653
  }
17654
+ },
17655
+ "cssOrigin": {
17656
+ "$ref": "extensionTypes.CSSOrigin",
17657
+ "optional": true
17582
17658
  }
17583
17659
  }
17584
17660
  }
@@ -17836,7 +17912,6 @@
17836
17912
  },
17837
17913
  {
17838
17914
  "name": "getBytesInUse",
17839
- "unsupported": true,
17840
17915
  "type": "function",
17841
17916
  "description": "Gets the amount of space (in bytes) being used by one or more items.",
17842
17917
  "async": "callback",
@@ -17872,173 +17947,23 @@
17872
17947
  ]
17873
17948
  },
17874
17949
  {
17875
- "name": "set",
17876
- "type": "function",
17877
- "description": "Sets multiple items.",
17878
- "async": "callback",
17879
- "parameters": [
17880
- {
17881
- "name": "items",
17882
- "type": "object",
17883
- "additionalProperties": {
17884
- "type": "any"
17885
- },
17886
- "description": "<p>An object which gives each key/value pair to update storage with. Any other key/value pairs in storage will not be affected.</p><p>Primitive values such as numbers will serialize as expected. Values with a <code>typeof</code> <code>\"object\"</code> and <code>\"function\"</code> will typically serialize to <code>{}</code>, with the exception of <code>Array</code> (serializes as expected), <code>Date</code>, and <code>Regex</code> (serialize using their <code>String</code> representation).</p>"
17887
- },
17888
- {
17889
- "name": "callback",
17890
- "type": "function",
17891
- "description": "Callback on success, or on failure (in which case $(ref:runtime.lastError) will be set).",
17892
- "parameters": [],
17893
- "optional": true
17894
- }
17895
- ]
17896
- },
17897
- {
17898
- "name": "remove",
17899
- "type": "function",
17900
- "description": "Removes one or more items from storage.",
17901
- "async": "callback",
17902
- "parameters": [
17903
- {
17904
- "name": "keys",
17905
- "choices": [
17906
- {
17907
- "type": "string"
17908
- },
17909
- {
17910
- "type": "array",
17911
- "items": {
17912
- "type": "string"
17913
- }
17914
- }
17915
- ],
17916
- "description": "A single key or a list of keys for items to remove."
17917
- },
17918
- {
17919
- "name": "callback",
17920
- "type": "function",
17921
- "description": "Callback on success, or on failure (in which case $(ref:runtime.lastError) will be set).",
17922
- "parameters": [],
17923
- "optional": true
17924
- }
17925
- ]
17926
- },
17927
- {
17928
- "name": "clear",
17950
+ "name": "getKeys",
17929
17951
  "type": "function",
17930
- "description": "Removes all items from storage.",
17952
+ "description": "Gets the keys of all items in storage.",
17931
17953
  "async": "callback",
17932
17954
  "parameters": [
17933
17955
  {
17934
17956
  "name": "callback",
17935
17957
  "type": "function",
17936
- "description": "Callback on success, or on failure (in which case $(ref:runtime.lastError) will be set).",
17937
- "parameters": [],
17938
- "optional": true
17939
- }
17940
- ]
17941
- }
17942
- ],
17943
- "events": [
17944
- {
17945
- "name": "onChanged",
17946
- "type": "function",
17947
- "description": "Fired when one or more items change.",
17948
- "parameters": [
17949
- {
17950
- "name": "changes",
17951
- "type": "object",
17952
- "additionalProperties": {
17953
- "$ref": "StorageChange"
17954
- },
17955
- "description": "Object mapping each key that changed to its corresponding $(ref:storage.StorageChange) for that item."
17956
- }
17957
- ]
17958
- }
17959
- ]
17960
- },
17961
- {
17962
- "id": "StorageAreaWithUsage",
17963
- "type": "object",
17964
- "functions": [
17965
- {
17966
- "name": "get",
17967
- "type": "function",
17968
- "description": "Gets one or more items from storage.",
17969
- "async": "callback",
17970
- "parameters": [
17971
- {
17972
- "name": "keys",
17973
- "choices": [
17974
- {
17975
- "type": "string"
17976
- },
17977
- {
17978
- "type": "array",
17979
- "items": {
17980
- "type": "string"
17981
- }
17982
- },
17983
- {
17984
- "type": "object",
17985
- "description": "Storage items to return in the callback, where the values are replaced with those from storage if they exist.",
17986
- "additionalProperties": {
17987
- "type": "any"
17988
- }
17989
- }
17990
- ],
17991
- "description": "A single key to get, list of keys to get, or a dictionary specifying default values (see description of the object). An empty list or object will return an empty result object. Pass in <code>null</code> to get the entire contents of storage.",
17992
- "optional": true
17993
- },
17994
- {
17995
- "name": "callback",
17996
- "type": "function",
17997
- "description": "Callback with storage items, or on failure (in which case $(ref:runtime.lastError) will be set).",
17958
+ "description": "Callback with the keys of all items in storage, or on failure (in which case $(ref:runtime.lastError) will be set).",
17998
17959
  "parameters": [
17999
17960
  {
18000
- "name": "items",
18001
- "type": "object",
18002
- "additionalProperties": {
18003
- "type": "any"
18004
- },
18005
- "description": "Object with items in their key-value mappings."
18006
- }
18007
- ]
18008
- }
18009
- ]
18010
- },
18011
- {
18012
- "name": "getBytesInUse",
18013
- "type": "function",
18014
- "description": "Gets the amount of space (in bytes) being used by one or more items.",
18015
- "async": "callback",
18016
- "parameters": [
18017
- {
18018
- "name": "keys",
18019
- "choices": [
18020
- {
18021
- "type": "string"
18022
- },
18023
- {
17961
+ "name": "keys",
18024
17962
  "type": "array",
18025
17963
  "items": {
18026
17964
  "type": "string"
18027
- }
18028
- }
18029
- ],
18030
- "description": "A single key or list of keys to get the total usage for. An empty list will return 0. Pass in <code>null</code> to get the total usage of all of storage.",
18031
- "optional": true
18032
- },
18033
- {
18034
- "name": "callback",
18035
- "type": "function",
18036
- "description": "Callback with the amount of space being used by storage, or on failure (in which case $(ref:runtime.lastError) will be set).",
18037
- "parameters": [
18038
- {
18039
- "name": "bytesInUse",
18040
- "type": "integer",
18041
- "description": "Amount of space being used in storage, in bytes."
17965
+ },
17966
+ "description": "The keys of all items in storage."
18042
17967
  }
18043
17968
  ]
18044
17969
  }
@@ -18149,14 +18074,14 @@
18149
18074
  {
18150
18075
  "name": "areaName",
18151
18076
  "type": "string",
18152
- "description": "The name of the storage area (<code>\"sync\"</code>, <code>\"local\"</code> or <code>\"managed\"</code>) the changes are for."
18077
+ "description": "The name of the storage area (<code>\"session\"</code>, <code>\"sync\"</code>, <code>\"local\"</code> or <code>\"managed\"</code>) the changes are for."
18153
18078
  }
18154
18079
  ]
18155
18080
  }
18156
18081
  ],
18157
18082
  "properties": {
18158
18083
  "sync": {
18159
- "$ref": "StorageAreaWithUsage",
18084
+ "$ref": "StorageArea",
18160
18085
  "description": "Items in the <code>sync</code> storage area are synced by the browser.",
18161
18086
  "properties": {
18162
18087
  "QUOTA_BYTES": {
@@ -18210,7 +18135,7 @@
18210
18135
  "allowedContexts": [
18211
18136
  "devtools"
18212
18137
  ],
18213
- "$ref": "StorageAreaWithUsage",
18138
+ "$ref": "StorageArea",
18214
18139
  "description": "Items in the <code>session</code> storage area are kept in memory, and only until the either browser or extension is closed or reloaded.",
18215
18140
  "properties": {
18216
18141
  "QUOTA_BYTES": {
@@ -21343,7 +21268,6 @@
21343
21268
  "cryptomining_content",
21344
21269
  "emailtracking",
21345
21270
  "emailtracking_content",
21346
- "consentmanager",
21347
21271
  "tracking",
21348
21272
  "tracking_ad",
21349
21273
  "tracking_analytics",
@@ -21351,7 +21275,9 @@
21351
21275
  "tracking_content",
21352
21276
  "any_basic_tracking",
21353
21277
  "any_strict_tracking",
21354
- "any_social_tracking"
21278
+ "any_social_tracking",
21279
+ "consentmanager",
21280
+ "antifraud"
21355
21281
  ],
21356
21282
  "description": "Tracking flags that match our internal tracking classification"
21357
21283
  },