webext-schema 5.3.2 → 5.3.3

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.
@@ -9981,6 +9981,20 @@
9981
9981
  }
9982
9982
  }
9983
9983
  }
9984
+ },
9985
+ {
9986
+ "id": "GetRulesFilter",
9987
+ "type": "object",
9988
+ "properties": {
9989
+ "ruleIds": {
9990
+ "type": "array",
9991
+ "optional": true,
9992
+ "description": "If specified, only rules with matching IDs are included.",
9993
+ "items": {
9994
+ "type": "integer"
9995
+ }
9996
+ }
9997
+ }
9984
9998
  }
9985
9999
  ],
9986
10000
  "functions": [
@@ -10136,6 +10150,12 @@
10136
10150
  "description": "Returns the current set of dynamic rules for the extension.",
10137
10151
  "async": "callback",
10138
10152
  "parameters": [
10153
+ {
10154
+ "name": "filter",
10155
+ "$ref": "GetRulesFilter",
10156
+ "optional": true,
10157
+ "description": "An object to filter the set of dynamic rules for the extension."
10158
+ },
10139
10159
  {
10140
10160
  "name": "callback",
10141
10161
  "type": "function",
@@ -10157,6 +10177,12 @@
10157
10177
  "description": "Returns the current set of session scoped rules for the extension.",
10158
10178
  "async": "callback",
10159
10179
  "parameters": [
10180
+ {
10181
+ "name": "filter",
10182
+ "$ref": "GetRulesFilter",
10183
+ "optional": true,
10184
+ "description": "An object to filter the set of session scoped rules for the extension."
10185
+ },
10160
10186
  {
10161
10187
  "name": "callback",
10162
10188
  "type": "function",
@@ -12312,7 +12338,8 @@
12312
12338
  "power",
12313
12339
  "responsiveness",
12314
12340
  "cpufreq",
12315
- "bandwidth"
12341
+ "bandwidth",
12342
+ "memory"
12316
12343
  ]
12317
12344
  },
12318
12345
  {
@@ -12969,12 +12996,13 @@
12969
12996
  },
12970
12997
  {
12971
12998
  "id": "ExtensionInstallType",
12972
- "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>other</var>: The extension was installed by other means.",
12999
+ "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.",
12973
13000
  "type": "string",
12974
13001
  "enum": [
12975
13002
  "development",
12976
13003
  "normal",
12977
13004
  "sideload",
13005
+ "admin",
12978
13006
  "other"
12979
13007
  ]
12980
13008
  },
@@ -13417,10 +13445,13 @@
13417
13445
  },
13418
13446
  "incognito": {
13419
13447
  "type": "string",
13448
+ "description": "The 'split' value is not supported.",
13420
13449
  "enum": [
13421
13450
  "not_allowed",
13422
- "spanning"
13451
+ "spanning",
13452
+ "split"
13423
13453
  ],
13454
+ "postprocess": "incognitoSplitUnsupportedAndFallback",
13424
13455
  "default": "spanning",
13425
13456
  "optional": true
13426
13457
  },
@@ -15725,6 +15756,132 @@
15725
15756
  ],
15726
15757
  "description": "Use the <code>browser.runtime</code> API to retrieve the background page, return details about the manifest, and listen for and respond to events in the app or extension lifecycle. You can also use this API to convert the relative path of URLs to fully-qualified URLs.",
15727
15758
  "types": [
15759
+ {
15760
+ "id": "ContextFilter",
15761
+ "min_manifest_version": 3,
15762
+ "type": "object",
15763
+ "description": "A filter to match against existing extension context. Matching contexts must match all specified filters.",
15764
+ "properties": {
15765
+ "contextIds": {
15766
+ "optional": true,
15767
+ "type": "array",
15768
+ "items": {
15769
+ "type": "string"
15770
+ }
15771
+ },
15772
+ "contextTypes": {
15773
+ "optional": true,
15774
+ "type": "array",
15775
+ "items": {
15776
+ "$ref": "ContextType"
15777
+ }
15778
+ },
15779
+ "documentIds": {
15780
+ "optional": true,
15781
+ "type": "array",
15782
+ "items": {
15783
+ "type": "string"
15784
+ }
15785
+ },
15786
+ "documentOrigins": {
15787
+ "optional": true,
15788
+ "type": "array",
15789
+ "items": {
15790
+ "type": "string"
15791
+ }
15792
+ },
15793
+ "documentUrls": {
15794
+ "optional": true,
15795
+ "type": "array",
15796
+ "items": {
15797
+ "type": "string"
15798
+ }
15799
+ },
15800
+ "frameIds": {
15801
+ "optional": true,
15802
+ "type": "array",
15803
+ "items": {
15804
+ "type": "integer"
15805
+ }
15806
+ },
15807
+ "tabIds": {
15808
+ "optional": true,
15809
+ "type": "array",
15810
+ "items": {
15811
+ "type": "integer"
15812
+ }
15813
+ },
15814
+ "windowIds": {
15815
+ "optional": true,
15816
+ "type": "array",
15817
+ "items": {
15818
+ "type": "integer"
15819
+ }
15820
+ },
15821
+ "incognito": {
15822
+ "optional": true,
15823
+ "type": "boolean"
15824
+ }
15825
+ }
15826
+ },
15827
+ {
15828
+ "id": "ContextType",
15829
+ "type": "string",
15830
+ "enum": [
15831
+ "BACKGROUND",
15832
+ "POPUP",
15833
+ "SIDE_PANEL",
15834
+ "TAB"
15835
+ ],
15836
+ "description": "The type of extension view."
15837
+ },
15838
+ {
15839
+ "id": "ExtensionContext",
15840
+ "type": "object",
15841
+ "description": "A context hosting extension content",
15842
+ "properties": {
15843
+ "contextId": {
15844
+ "type": "string",
15845
+ "description": "An unique identifier associated to this context"
15846
+ },
15847
+ "contextType": {
15848
+ "$ref": "ContextType",
15849
+ "description": "The type of the context"
15850
+ },
15851
+ "documentId": {
15852
+ "type": "string",
15853
+ "unsupported": true,
15854
+ "optional": true,
15855
+ "description": "An UUID for the document associated with this context, or undefined if it is not hosted in a document"
15856
+ },
15857
+ "documentOrigin": {
15858
+ "type": "string",
15859
+ "optional": true,
15860
+ "description": "The origin of the document associated with this context, or undefined if it is not hosted in a document"
15861
+ },
15862
+ "documentUrl": {
15863
+ "type": "string",
15864
+ "optional": true,
15865
+ "description": "The URL of the document associated with this context, or undefined if it is not hosted in a document"
15866
+ },
15867
+ "incognito": {
15868
+ "type": "boolean",
15869
+ "description": "Whether the context is associated with an private browsing context."
15870
+ },
15871
+ "frameId": {
15872
+ "type": "integer",
15873
+ "description": "The frame ID for this context, or -1 if it is not hosted in a frame."
15874
+ },
15875
+ "tabId": {
15876
+ "type": "integer",
15877
+ "description": "The tab ID for this context, or -1 if it is not hosted in a tab."
15878
+ },
15879
+ "windowId": {
15880
+ "type": "integer",
15881
+ "description": "The window ID for this context, or -1 if it is not hosted in a window."
15882
+ }
15883
+ }
15884
+ },
15728
15885
  {
15729
15886
  "id": "Port",
15730
15887
  "type": "object",
@@ -15994,6 +16151,33 @@
15994
16151
  }
15995
16152
  ]
15996
16153
  },
16154
+ {
16155
+ "name": "getContexts",
16156
+ "type": "function",
16157
+ "description": "Fetches information about active contexts associated with this extension",
16158
+ "async": "callback",
16159
+ "parameters": [
16160
+ {
16161
+ "name": "filter",
16162
+ "$ref": "ContextFilter",
16163
+ "description": "A filter to find matching context."
16164
+ },
16165
+ {
16166
+ "type": "function",
16167
+ "name": "callback",
16168
+ "parameters": [
16169
+ {
16170
+ "name": "contexts",
16171
+ "type": "array",
16172
+ "items": {
16173
+ "$ref": "ExtensionContext"
16174
+ },
16175
+ "description": "The matching contexts, if any."
16176
+ }
16177
+ ]
16178
+ }
16179
+ ]
16180
+ },
15997
16181
  {
15998
16182
  "name": "openOptionsPage",
15999
16183
  "type": "function",