webext-schema 5.5.0 → 5.5.1

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.
@@ -1352,7 +1352,14 @@
1352
1352
  "permissions": {
1353
1353
  "type": "array",
1354
1354
  "items": {
1355
- "$ref": "manifest.OptionalPermission"
1355
+ "choices": [
1356
+ {
1357
+ "$ref": "manifest.OptionalPermission"
1358
+ },
1359
+ {
1360
+ "$ref": "manifest.OptionalOnlyPermission"
1361
+ }
1362
+ ]
1356
1363
  },
1357
1364
  "optional": true,
1358
1365
  "default": []
@@ -1374,7 +1381,14 @@
1374
1381
  "permissions": {
1375
1382
  "type": "array",
1376
1383
  "items": {
1377
- "$ref": "manifest.Permission"
1384
+ "choices": [
1385
+ {
1386
+ "$ref": "manifest.Permission"
1387
+ },
1388
+ {
1389
+ "$ref": "manifest.OptionalOnlyPermission"
1390
+ }
1391
+ ]
1378
1392
  },
1379
1393
  "optional": true,
1380
1394
  "default": []
@@ -1720,6 +1734,11 @@
1720
1734
  "type": "string",
1721
1735
  "optional": true,
1722
1736
  "description": "The TLS channel ID of the page or frame that opened the connection, if requested by the extension or app, and if available."
1737
+ },
1738
+ "userScriptWorldId": {
1739
+ "type": "string",
1740
+ "optional": true,
1741
+ "description": "The worldId of the USER_SCRIPT world that sent the message. Only present on onUserScriptMessage and onUserScriptConnect (in port.sender) events."
1723
1742
  }
1724
1743
  }
1725
1744
  },
@@ -2388,6 +2407,20 @@
2388
2407
  }
2389
2408
  ]
2390
2409
  },
2410
+ {
2411
+ "name": "onUserScriptConnect",
2412
+ "type": "function",
2413
+ "description": "Fired when a connection is made from a USER_SCRIPT world registered through the userScripts API.",
2414
+ "permissions": [
2415
+ "userScripts"
2416
+ ],
2417
+ "parameters": [
2418
+ {
2419
+ "$ref": "Port",
2420
+ "name": "port"
2421
+ }
2422
+ ]
2423
+ },
2391
2424
  {
2392
2425
  "name": "onConnectExternal",
2393
2426
  "type": "function",
@@ -2457,6 +2490,36 @@
2457
2490
  "description": "Return true from the event listener if you wish to call <code>sendResponse</code> after the event listener returns."
2458
2491
  }
2459
2492
  },
2493
+ {
2494
+ "name": "onUserScriptMessage",
2495
+ "type": "function",
2496
+ "description": "Fired when a message is sent from a USER_SCRIPT world registered through the userScripts API.",
2497
+ "permissions": [
2498
+ "userScripts"
2499
+ ],
2500
+ "parameters": [
2501
+ {
2502
+ "name": "message",
2503
+ "type": "any",
2504
+ "optional": true,
2505
+ "description": "The message sent by the calling script."
2506
+ },
2507
+ {
2508
+ "name": "sender",
2509
+ "$ref": "MessageSender"
2510
+ },
2511
+ {
2512
+ "name": "sendResponse",
2513
+ "type": "function",
2514
+ "description": "Function to call (at most once) when you have a response. The argument should be any JSON-ifiable object. If you have more than one <code>onMessage</code> listener in the same document, then only one may send a response. This function becomes invalid when the event listener returns, unless you return true from the event listener to indicate you wish to send a response asynchronously (this will keep the message channel open to the other end until <code>sendResponse</code> is called)."
2515
+ }
2516
+ ],
2517
+ "returns": {
2518
+ "type": "boolean",
2519
+ "optional": true,
2520
+ "description": "Return true from the event listener if you wish to call <code>sendResponse</code> after the event listener returns."
2521
+ }
2522
+ },
2460
2523
  {
2461
2524
  "name": "onRestartRequired",
2462
2525
  "unsupported": true,
@@ -5623,9 +5686,18 @@
5623
5686
  "preprocess": "localize"
5624
5687
  },
5625
5688
  "favicon_url": {
5626
- "type": "string",
5689
+ "choices": [
5690
+ {
5691
+ "type": "string",
5692
+ "format": "relativeUrl",
5693
+ "max_manifest_version": 2
5694
+ },
5695
+ {
5696
+ "type": "string",
5697
+ "format": "strictRelativeUrl"
5698
+ }
5699
+ ],
5627
5700
  "optional": true,
5628
- "format": "url",
5629
5701
  "preprocess": "localize"
5630
5702
  },
5631
5703
  "suggest_url": {
@@ -12444,7 +12444,8 @@
12444
12444
  "responsiveness",
12445
12445
  "cpufreq",
12446
12446
  "bandwidth",
12447
- "memory"
12447
+ "memory",
12448
+ "tracing"
12448
12449
  ]
12449
12450
  },
12450
12451
  {
@@ -18032,7 +18033,7 @@
18032
18033
  },
18033
18034
  {
18034
18035
  "name": "recordEvent",
18035
- "deprecated": "`recordEvent` has been deprecated since Firefox 132 (see bug 1894533)",
18036
+ "deprecated": "`recordEvent` is a no-op since Firefox 132 (see bug 1894533)",
18036
18037
  "type": "function",
18037
18038
  "description": "Record an event in Telemetry. Throws when trying to record an unknown event.",
18038
18039
  "async": true,
@@ -18092,7 +18093,7 @@
18092
18093
  },
18093
18094
  {
18094
18095
  "name": "registerEvents",
18095
- "deprecated": "`registerEvents` has been deprecated since Firefox 132 (see bug 1894533)",
18096
+ "deprecated": "`registerEvents` is a no-op since Firefox 132 (see bug 1894533)",
18096
18097
  "type": "function",
18097
18098
  "description": "Register new events to record them from addons. See nsITelemetry.idl for more details.",
18098
18099
  "async": true,
@@ -18114,8 +18115,9 @@
18114
18115
  },
18115
18116
  {
18116
18117
  "name": "setEventRecordingEnabled",
18118
+ "deprecated": "`setEventRecordingEnabled` is a no-op since Firefox 133 (see bug 1920562)",
18117
18119
  "type": "function",
18118
- "description": "Enable recording of events in a category. Events default to recording disabled. This allows to toggle recording for all events in the specified category.",
18120
+ "description": "Enable recording of events in a category. Events default to recording enabled. This allows to toggle recording for all events in the specified category.",
18119
18121
  "async": true,
18120
18122
  "parameters": [
18121
18123
  {