webext-schema 2.3.4 → 3.0.2

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.
@@ -74,8 +74,7 @@ export const getCloseTabsByDoubleClickValue = async () => {
74
74
  });
75
75
  let userValue;
76
76
  if (isGranted) {
77
- const { browserSettings } = browser;
78
- const { closeTabsByDoubleClick } = browserSettings;
77
+ const { browserSettings: { closeTabsByDoubleClick } } = browser;
79
78
  userValue = await closeTabsByDoubleClick.get({});
80
79
  }
81
80
  return userValue || null;
@@ -92,8 +91,7 @@ export const setContextMenuOnMouseup = async () => {
92
91
  });
93
92
  let res;
94
93
  if (isGranted) {
95
- const { browserSettings } = browser;
96
- const { contextMenuShowEvent } = browserSettings;
94
+ const { browserSettings: { contextMenuShowEvent } } = browser;
97
95
  const { levelOfControl, value } = await contextMenuShowEvent.get({});
98
96
  if (value === 'mouseup') {
99
97
  res = true;
@@ -117,8 +115,7 @@ export const clearContextMenuOnMouseup = async () => {
117
115
  });
118
116
  let res;
119
117
  if (isGranted) {
120
- const { browserSettings } = browser;
121
- const { contextMenuShowEvent } = browserSettings;
118
+ const { browserSettings: { contextMenuShowEvent } } = browser;
122
119
  res = await contextMenuShowEvent.clear({});
123
120
  }
124
121
  return !!res;
@@ -135,8 +132,7 @@ export const getNewTabPositionValue = async () => {
135
132
  });
136
133
  let res;
137
134
  if (isGranted) {
138
- const { browserSettings } = browser;
139
- const { newTabPosition } = browserSettings;
135
+ const { browserSettings: { newTabPosition } } = browser;
140
136
  res = await newTabPosition.get({});
141
137
  }
142
138
  return res || null;
@@ -255,9 +251,8 @@ export const getEnabledTheme = async () => {
255
251
  try {
256
252
  const arr = await management.getAll();
257
253
  if (Array.isArray(arr) && arr.length) {
258
- res = arr.filter(info =>
259
- info.type && info.type === 'theme' && info.enabled && info
260
- );
254
+ res =
255
+ arr.filter(info => info?.type === 'theme' && info?.enabled && info);
261
256
  }
262
257
  } catch (e) {
263
258
  logErr(e);
@@ -303,7 +298,7 @@ export const getExternalExtensions = async () => {
303
298
  const arr = await management.getAll();
304
299
  if (Array.isArray(arr) && arr.length) {
305
300
  res =
306
- arr.filter(info => info.type && info.type === 'extension' && info);
301
+ arr.filter(info => info?.type === 'extension' && info);
307
302
  }
308
303
  } catch (e) {
309
304
  logErr(e);
@@ -429,21 +424,27 @@ export const getOs = async () => {
429
424
  /**
430
425
  * make a connection
431
426
  *
432
- * @param {string} [extId] - extension ID
427
+ * @param {number|string} [id] - tab ID / extension ID
433
428
  * @param {object} [info] - info
434
429
  * @returns {object} - runtime.Port
435
430
  */
436
- export const makeConnection = async (extId, info) => {
431
+ export const makeConnection = async (id, info) => {
437
432
  let port;
438
- if (isString(extId)) {
433
+ if (Number.isInteger(id)) {
434
+ if (isObjectNotEmpty(info)) {
435
+ port = await tabs.connect(id, info);
436
+ } else {
437
+ port = await tabs.connect(id);
438
+ }
439
+ } else if (isString(id)) {
439
440
  if (isObjectNotEmpty(info)) {
440
- port = await runtime.connect(extId, info);
441
+ port = await runtime.connect(id, info);
441
442
  } else {
442
- port = await runtime.connect(extId);
443
+ port = await runtime.connect(id);
443
444
  }
444
- } else if (isObjectNotEmpty(extId)) {
445
- port = await runtime.connect(extId);
446
- } else if (!extId && isObjectNotEmpty(info)) {
445
+ } else if (isObjectNotEmpty(id)) {
446
+ port = await runtime.connect(id);
447
+ } else if (!id && isObjectNotEmpty(info)) {
447
448
  port = await runtime.connect(info);
448
449
  } else {
449
450
  port = await runtime.connect();
@@ -733,17 +734,12 @@ export const queryTabs = async opt => {
733
734
  export const execScriptToTab = async (tabId, opt = {}) => {
734
735
  let res;
735
736
  try {
736
- const isGranted = await isPermissionGranted({
737
- permissions: ['activeTab']
738
- });
739
737
  if (Number.isInteger(tabId)) {
740
738
  res = await tabs.executeScript(tabId, opt);
741
- } else if (isGranted) {
742
- if (isObjectNotEmpty(tabId)) {
743
- res = await tabs.executeScript(tabId);
744
- } else {
745
- res = await tabs.executeScript(opt);
746
- }
739
+ } else if (isObjectNotEmpty(tabId)) {
740
+ res = await tabs.executeScript(tabId);
741
+ } else if (isObjectNotEmpty(opt)) {
742
+ res = await tabs.executeScript(opt);
747
743
  } else {
748
744
  res = null;
749
745
  }
package/modules/common.js CHANGED
@@ -66,7 +66,7 @@ export const getType = o =>
66
66
  */
67
67
  export const isObjectNotEmpty = o => {
68
68
  const items = /Object/i.test(getType(o)) && Object.keys(o);
69
- return !!(items && items.length);
69
+ return !!(items?.length);
70
70
  };
71
71
 
72
72
  /**
@@ -3,11 +3,11 @@
3
3
  */
4
4
 
5
5
  /* api */
6
- import { IS_WIN } from './constant.js';
7
6
  import { fileURLToPath } from 'url';
8
7
  import { getType, isString } from './common.js';
9
8
  import fs, { promises as fsPromise } from 'fs';
10
9
  import path from 'path';
10
+ import { IS_WIN } from './constant.js';
11
11
 
12
12
  /* constants */
13
13
  const MASK_BIT = 0o111;
@@ -135,7 +135,7 @@ export const getFileNameFromFilePath = (file, subst = SUBST) => {
135
135
  };
136
136
 
137
137
  /**
138
- * remove the directory and it's files
138
+ * remove the directory and it's files synchronously
139
139
  *
140
140
  * @param {string} dir - directory path
141
141
  * @param {string} baseDir - base directory path
@@ -146,16 +146,10 @@ export const removeDir = (dir, baseDir) => {
146
146
  if (!isSubDir(dir, baseDir)) {
147
147
  throw new Error(`${dir} is not a subdirectory of ${baseDir}.`);
148
148
  }
149
- const files = fs.readdirSync(dir);
150
- files.length && files.forEach(file => {
151
- const cur = path.join(dir, file);
152
- if (fs.lstatSync(cur).isDirectory()) {
153
- removeDir(cur, baseDir);
154
- } else {
155
- fs.unlinkSync(cur);
156
- }
149
+ fs.rmSync(dir, {
150
+ force: true,
151
+ recursive: true
157
152
  });
158
- fs.rmdirSync(dir);
159
153
  }
160
154
  };
161
155
 
@@ -167,7 +161,15 @@ export const removeDir = (dir, baseDir) => {
167
161
  * @returns {void}
168
162
  */
169
163
  export const removeDirectory = async (dir, baseDir) => {
170
- await removeDir(dir, baseDir);
164
+ if (isDir(dir)) {
165
+ if (!isSubDir(dir, baseDir)) {
166
+ throw new Error(`${dir} is not a subdirectory of ${baseDir}.`);
167
+ }
168
+ await fsPromise.rm(dir, {
169
+ force: true,
170
+ recursive: true
171
+ });
172
+ }
171
173
  };
172
174
 
173
175
  /**
package/modules/schema.js CHANGED
@@ -94,8 +94,7 @@ export class Schema {
94
94
  } else if (this._browser[$import]) {
95
95
  importValue = this._browser[$import];
96
96
  } else {
97
- importValue =
98
- this._browser[namespace] && this._browser[namespace][$import];
97
+ importValue = this._browser[namespace]?.[$import];
99
98
  }
100
99
  Object.assign(target, importValue);
101
100
  }
@@ -122,8 +121,7 @@ export class Schema {
122
121
  } else if (this._browser[$ref]) {
123
122
  refValue = this._browser[$ref];
124
123
  } else {
125
- refValue =
126
- this._browser[namespace] && this._browser[namespace][$ref];
124
+ refValue = this._browser[namespace]?.[$ref];
127
125
  }
128
126
  Object.assign(target, refValue);
129
127
  }
@@ -149,7 +147,7 @@ export class Schema {
149
147
  for (const item of events) {
150
148
  const { name, type, unsupported } = item;
151
149
  if (!unsupported && name && type === 'function') {
152
- target[name] = target[name] || {};
150
+ target[name] ??= {};
153
151
  target[name].addListener = this._sandbox.stub();
154
152
  target[name].hasListener = this._sandbox.stub();
155
153
  target[name].removeListener = this._sandbox.stub();
@@ -210,7 +208,7 @@ export class Schema {
210
208
  target[key] = this._sandbox.stub();
211
209
  } else if (type === 'object' || $ref ||
212
210
  Object.prototype.hasOwnProperty.call(item, 'properties')) {
213
- target[key] = target[key] || {};
211
+ target[key] ??= {};
214
212
  properties && this._mockProperties(
215
213
  target[key], properties, `${namespace}.${key}`
216
214
  );
@@ -247,7 +245,7 @@ export class Schema {
247
245
  $import &&
248
246
  this._importMap.set(`${namespace}.${id}`, { $import, namespace });
249
247
  if (type === 'object' || $import || events || functions || properties) {
250
- target[id] = target[id] || {};
248
+ target[id] ??= {};
251
249
  events && this._mockEvents(target[id], events);
252
250
  functions && this._mockFunctions(target[id], functions);
253
251
  properties &&
@@ -287,7 +285,7 @@ export class Schema {
287
285
  if (!isString(name)) {
288
286
  throw new TypeError(`Expected String but got ${getType(name)}.`);
289
287
  }
290
- const schemas = this._schema || this._parseSchemaContent();
288
+ const schemas = this._schema ?? this._parseSchemaContent();
291
289
  const items = Object.entries(schemas);
292
290
  const label = decamelize(name.replace(/\.json$/, ''));
293
291
  let schema;
@@ -306,7 +304,7 @@ export class Schema {
306
304
  * @returns {object} - schemas
307
305
  */
308
306
  getAll() {
309
- const schemas = this._schema || this._parseSchemaContent();
307
+ const schemas = this._schema ?? this._parseSchemaContent();
310
308
  return schemas;
311
309
  }
312
310
 
@@ -316,7 +314,7 @@ export class Schema {
316
314
  * @returns {Array} - file list
317
315
  */
318
316
  list() {
319
- const schemas = this._schema || this._parseSchemaContent();
317
+ const schemas = this._schema ?? this._parseSchemaContent();
320
318
  const items = Object.keys(schemas);
321
319
  const arr = [];
322
320
  for (const item of items) {
@@ -331,7 +329,7 @@ export class Schema {
331
329
  * @returns {object} - stubbed browser api
332
330
  */
333
331
  mock() {
334
- const schemas = this._schema || this._parseSchemaContent();
332
+ const schemas = this._schema ?? this._parseSchemaContent();
335
333
  const schemaItems = Object.entries(schemas);
336
334
  const aliasKeys = ['action', 'menus'];
337
335
  this._browser = {
@@ -354,13 +352,12 @@ export class Schema {
354
352
  let ns;
355
353
  if (namespace.includes('.')) {
356
354
  const [itemNamespace, itemSubNamespace] = namespace.split('.');
357
- this._browser[itemNamespace] = this._browser[itemNamespace] || {};
358
- this._browser[itemNamespace][itemSubNamespace] =
359
- this._browser[itemNamespace][itemSubNamespace] || {};
355
+ this._browser[itemNamespace] ??= {};
356
+ this._browser[itemNamespace][itemSubNamespace] ??= {};
360
357
  mapKey.push(itemNamespace, itemSubNamespace);
361
358
  ns = this._browser[itemNamespace][itemSubNamespace];
362
359
  } else {
363
- this._browser[namespace] = this._browser[namespace] || {};
360
+ this._browser[namespace] ??= {};
364
361
  mapKey.push(namespace);
365
362
  ns = this._browser[namespace];
366
363
  }
package/modules/update.js CHANGED
@@ -168,9 +168,7 @@ export const getMailExtSchemaData = async baseUrl => {
168
168
  ];
169
169
  const func = [];
170
170
  for (const item of items) {
171
- if (!excludeFile.includes(item)) {
172
- func.push(getSchemaData(item, schemaUrl));
173
- }
171
+ !excludeFile.includes(item) && func.push(getSchemaData(item, schemaUrl));
174
172
  }
175
173
  return Promise.all(func);
176
174
  };
package/package.json CHANGED
@@ -33,20 +33,20 @@
33
33
  "decamelize": "^6.0.0",
34
34
  "json5": "^2.2.1",
35
35
  "node-fetch": "^3.2.4",
36
- "sinon": "^13.0.2"
36
+ "sinon": "^14.0.0"
37
37
  },
38
38
  "devDependencies": {
39
- "c8": "^7.11.2",
39
+ "c8": "^7.11.3",
40
40
  "chai": "^4.3.6",
41
- "eslint": "^8.14.0",
41
+ "eslint": "^8.16.0",
42
42
  "eslint-config-standard": "^17.0.0",
43
43
  "eslint-plugin-import": "^2.26.0",
44
- "eslint-plugin-jsdoc": "^39.2.9",
44
+ "eslint-plugin-jsdoc": "^39.3.2",
45
45
  "eslint-plugin-node": "^11.1.0",
46
46
  "eslint-plugin-promise": "^6.0.0",
47
47
  "mocha": "^10.0.0",
48
48
  "nock": "^13.2.4",
49
49
  "npm-run-all": "^4.1.5"
50
50
  },
51
- "version": "2.3.4"
51
+ "version": "3.0.2"
52
52
  }
@@ -3066,7 +3066,7 @@
3066
3066
  "namespace": "manifest",
3067
3067
  "types": [
3068
3068
  {
3069
- "$extend": "PermissionNoPrompt",
3069
+ "$extend": "PermissionPrivileged",
3070
3070
  "choices": [
3071
3071
  {
3072
3072
  "type": "string",
@@ -6430,7 +6430,7 @@
6430
6430
  "namespace": "manifest",
6431
6431
  "types": [
6432
6432
  {
6433
- "$extend": "PermissionNoPrompt",
6433
+ "$extend": "PermissionPrivileged",
6434
6434
  "choices": [
6435
6435
  {
6436
6436
  "type": "string",
@@ -7275,7 +7275,7 @@
7275
7275
  "namespace": "manifest",
7276
7276
  "types": [
7277
7277
  {
7278
- "$extend": "PermissionNoPrompt",
7278
+ "$extend": "PermissionPrivileged",
7279
7279
  "choices": [
7280
7280
  {
7281
7281
  "type": "string",
@@ -10910,7 +10910,8 @@
10910
10910
  "additionalProperties": {
10911
10911
  "$ref": "experiments.ExperimentAPI"
10912
10912
  },
10913
- "optional": true
10913
+ "optional": true,
10914
+ "privileged": true
10914
10915
  }
10915
10916
  }
10916
10917
  }
@@ -11761,7 +11762,8 @@
11761
11762
  "items": {
11762
11763
  "type": "string"
11763
11764
  },
11764
- "optional": true
11765
+ "optional": true,
11766
+ "privileged": true
11765
11767
  }
11766
11768
  }
11767
11769
  }
@@ -13089,17 +13091,30 @@
13089
13091
  }
13090
13092
  ]
13091
13093
  },
13094
+ {
13095
+ "id": "PermissionPrivileged",
13096
+ "choices": [
13097
+ {
13098
+ "type": "string",
13099
+ "enum": [
13100
+ "mozillaAddons"
13101
+ ]
13102
+ }
13103
+ ]
13104
+ },
13092
13105
  {
13093
13106
  "id": "PermissionNoPrompt",
13094
13107
  "choices": [
13095
13108
  {
13096
- "$ref": "OptionalPermission"
13109
+ "$ref": "OptionalPermissionNoPrompt"
13110
+ },
13111
+ {
13112
+ "$ref": "PermissionPrivileged"
13097
13113
  },
13098
13114
  {
13099
13115
  "type": "string",
13100
13116
  "enum": [
13101
13117
  "alarms",
13102
- "mozillaAddons",
13103
13118
  "storage",
13104
13119
  "unlimitedStorage"
13105
13120
  ]
@@ -13443,7 +13458,7 @@
13443
13458
  "namespace": "manifest",
13444
13459
  "types": [
13445
13460
  {
13446
- "$extend": "PermissionNoPrompt",
13461
+ "$extend": "PermissionPrivileged",
13447
13462
  "choices": [
13448
13463
  {
13449
13464
  "type": "string",
@@ -14865,7 +14880,8 @@
14865
14880
  "type": "boolean",
14866
14881
  "optional": true,
14867
14882
  "default": false,
14868
- "description": "Whether to create all cookies as nonPersistent (i.e., session) cookies."
14883
+ "description": "Whether to create all cookies as nonPersistent (i.e., session) cookies.",
14884
+ "deprecated": "This property has no effect anymore and its value is always <code>false<code>."
14869
14885
  }
14870
14886
  }
14871
14887
  }
@@ -15720,8 +15736,7 @@
15720
15736
  "type": "string",
15721
15737
  "enum": [
15722
15738
  "scripting"
15723
- ],
15724
- "min_manifest_version": 3
15739
+ ]
15725
15740
  }
15726
15741
  ]
15727
15742
  }
@@ -15733,7 +15748,6 @@
15733
15748
  "permissions": [
15734
15749
  "scripting"
15735
15750
  ],
15736
- "min_manifest_version": 3,
15737
15751
  "types": [
15738
15752
  {
15739
15753
  "id": "ScriptInjection",
@@ -16635,7 +16649,7 @@
16635
16649
  }
16636
16650
  },
16637
16651
  {
16638
- "$extend": "PermissionNoPrompt",
16652
+ "$extend": "PermissionPrivileged",
16639
16653
  "choices": [
16640
16654
  {
16641
16655
  "type": "string",
@@ -403,7 +403,8 @@
403
403
  "additionalProperties": {
404
404
  "$ref": "experiments.ExperimentAPI"
405
405
  },
406
- "optional": true
406
+ "optional": true,
407
+ "privileged": true
407
408
  }
408
409
  }
409
410
  }
@@ -774,7 +775,8 @@
774
775
  "items": {
775
776
  "type": "string"
776
777
  },
777
- "optional": true
778
+ "optional": true,
779
+ "privileged": true
778
780
  }
779
781
  }
780
782
  }
@@ -2873,7 +2875,7 @@
2873
2875
  {
2874
2876
  "name": "list",
2875
2877
  "type": "function",
2876
- "description": "Returns all mail accounts.",
2878
+ "description": "Returns all mail accounts. They will be returned in the same order as used in Thunderbird's folder pane.",
2877
2879
  "async": "callback",
2878
2880
  "parameters": [
2879
2881
  {
@@ -5359,6 +5361,41 @@
5359
5361
  "$ref": "ComposeRecipientList",
5360
5362
  "optional": true
5361
5363
  },
5364
+ "overrideDefaultFcc": {
5365
+ "type": "boolean",
5366
+ "optional": true,
5367
+ "description": "Indicates whether the default fcc setting (defined by the used identity) is being overridden for this message. Setting ``false`` will clear the override. Setting ``true`` will throw an exception, if ``overrideDefaultFccFolder`` is not set as well."
5368
+ },
5369
+ "overrideDefaultFccFolder": {
5370
+ "choices": [
5371
+ {
5372
+ "$ref": "folders.MailFolder"
5373
+ },
5374
+ {
5375
+ "type": "string",
5376
+ "enum": [
5377
+ ""
5378
+ ]
5379
+ }
5380
+ ],
5381
+ "optional": true,
5382
+ "description": " This value overrides the default fcc setting (defined by the used identity) for this message only. Either a :ref:`folders.MailFolder` specifying the folder for the copy of the sent message, or ``\"\"`` to not save a copy at all."
5383
+ },
5384
+ "additionalFccFolder": {
5385
+ "choices": [
5386
+ {
5387
+ "$ref": "folders.MailFolder"
5388
+ },
5389
+ {
5390
+ "type": "string",
5391
+ "enum": [
5392
+ ""
5393
+ ]
5394
+ }
5395
+ ],
5396
+ "description": "An additional fcc folder which can be selected while composing the message, ``\"\"`` if not used.",
5397
+ "optional": true
5398
+ },
5362
5399
  "replyTo": {
5363
5400
  "$ref": "ComposeRecipientList",
5364
5401
  "optional": true
@@ -5419,14 +5456,52 @@
5419
5456
  "description": "Whether the message is an HTML message or a plain text message.",
5420
5457
  "optional": true
5421
5458
  },
5459
+ "deliveryFormat": {
5460
+ "type": "string",
5461
+ "enum": [
5462
+ "auto",
5463
+ "plaintext",
5464
+ "html",
5465
+ "both"
5466
+ ],
5467
+ "description": "Defines the mime format of the send message (ignored on plain text messages). Defaults to ``auto``, which will send html messages as plain text, if they do not include any formatting, and as ``both`` otherwise (a multipart/mixed message).",
5468
+ "optional": true
5469
+ },
5422
5470
  "customHeaders": {
5423
5471
  "type": "array",
5424
5472
  "items": {
5425
5473
  "$ref": "CustomHeader"
5426
5474
  },
5427
- "description": "Array of custom headers. Headers will be returned in ``Http-Header-Case`` (a.k.a. ``Train-Case``)",
5475
+ "description": "Array of custom headers. Headers will be returned in ``Http-Header-Case`` (a.k.a. ``Train-Case``). Set an empty array to clear all custom headers.",
5428
5476
  "optional": true
5429
5477
  },
5478
+ "priority": {
5479
+ "type": "string",
5480
+ "enum": [
5481
+ "lowest",
5482
+ "low",
5483
+ "normal",
5484
+ "high",
5485
+ "highest"
5486
+ ],
5487
+ "description": "The priority of the message.",
5488
+ "optional": true
5489
+ },
5490
+ "returnReceipt": {
5491
+ "type": "boolean",
5492
+ "optional": true,
5493
+ "description": "Add the ``Disposition-Notification-To`` header to the message to requests the recipients email client to send a reply once the message has been received. Recipient server may strip the header and the recipient might ignore the request."
5494
+ },
5495
+ "deliveryStatusNotification": {
5496
+ "type": "boolean",
5497
+ "optional": true,
5498
+ "description": "Let the sender know when the recipient's server received the message. Not supported by all servers."
5499
+ },
5500
+ "attachVCard": {
5501
+ "type": "boolean",
5502
+ "optional": true,
5503
+ "description": "Wether or not the vCard of the used identity will be attached to the message during send. Note: If the value has not been modified, selecting a different identity will load the default value of the new identity."
5504
+ },
5430
5505
  "attachments": {
5431
5506
  "type": "array",
5432
5507
  "items": {
@@ -5498,6 +5573,14 @@
5498
5573
  "type": "string"
5499
5574
  }
5500
5575
  }
5576
+ },
5577
+ {
5578
+ "id": "ComposeDictionaries",
5579
+ "type": "object",
5580
+ "additionalProperties": {
5581
+ "type": "boolean"
5582
+ },
5583
+ "description": "Object with language identifiers of all installed dictionaries as keys (for example ``en-US``) and a boolean value, indicating whether that dictionary is enabled for spellchecking or not."
5501
5584
  }
5502
5585
  ],
5503
5586
  "events": [
@@ -5603,6 +5686,21 @@
5603
5686
  "$ref": "ComposeState"
5604
5687
  }
5605
5688
  ]
5689
+ },
5690
+ {
5691
+ "name": "onActiveDictionariesChanged",
5692
+ "type": "function",
5693
+ "description": "Fired when one or more dictionaries have been activated or deactivated.",
5694
+ "parameters": [
5695
+ {
5696
+ "name": "tab",
5697
+ "$ref": "tabs.Tab"
5698
+ },
5699
+ {
5700
+ "name": "dictionaries",
5701
+ "$ref": "ComposeDictionaries"
5702
+ }
5703
+ ]
5606
5704
  }
5607
5705
  ],
5608
5706
  "functions": [
@@ -5762,6 +5860,55 @@
5762
5860
  }
5763
5861
  ]
5764
5862
  },
5863
+ {
5864
+ "name": "getActiveDictionaries",
5865
+ "type": "function",
5866
+ "async": "callback",
5867
+ "description": "Returns a :ref:`ComposeDictionaries` object, listing all installed dictionaries, including the information whether they are currently enabled or not.",
5868
+ "permissions": [
5869
+ "compose"
5870
+ ],
5871
+ "parameters": [
5872
+ {
5873
+ "type": "integer",
5874
+ "name": "tabId",
5875
+ "minimum": 0
5876
+ },
5877
+ {
5878
+ "type": "function",
5879
+ "name": "callback",
5880
+ "optional": true,
5881
+ "parameters": [
5882
+ {
5883
+ "$ref": "ComposeDictionaries"
5884
+ }
5885
+ ]
5886
+ }
5887
+ ]
5888
+ },
5889
+ {
5890
+ "name": "setActiveDictionaries",
5891
+ "type": "function",
5892
+ "async": true,
5893
+ "description": "Updates the active dictionaries. Throws if the ``activeDictionaries`` array contains unknown or invalid language identifiers.",
5894
+ "permissions": [
5895
+ "compose"
5896
+ ],
5897
+ "parameters": [
5898
+ {
5899
+ "type": "integer",
5900
+ "name": "tabId",
5901
+ "minimum": 0
5902
+ },
5903
+ {
5904
+ "type": "array",
5905
+ "items": {
5906
+ "type": "string"
5907
+ },
5908
+ "name": "activeDictionaries"
5909
+ }
5910
+ ]
5911
+ },
5765
5912
  {
5766
5913
  "name": "listAttachments",
5767
5914
  "type": "function",
@@ -6715,7 +6862,7 @@
6715
6862
  },
6716
6863
  "subFolders": {
6717
6864
  "type": "array",
6718
- "description": "Subfolders are only included if requested.",
6865
+ "description": "Subfolders are only included if requested. They will be returned in the same order as used in Thunderbird's folder pane.",
6719
6866
  "items": {
6720
6867
  "$ref": "MailFolder"
6721
6868
  },
@@ -8708,6 +8855,62 @@
8708
8855
  ]
8709
8856
  }
8710
8857
  ]
8858
+ },
8859
+ {
8860
+ "name": "open",
8861
+ "type": "function",
8862
+ "description": "Opens a message in a new tab or in a new window.",
8863
+ "async": "callback",
8864
+ "parameters": [
8865
+ {
8866
+ "name": "openProperties",
8867
+ "type": "object",
8868
+ "description": "Settings for opening the message. Exactly one of messageId or headerMessageId must be specified.",
8869
+ "properties": {
8870
+ "messageId": {
8871
+ "type": "integer",
8872
+ "optional": true,
8873
+ "minimum": 1,
8874
+ "description": "The id of a message to be opened. Will throw, if the provided ``messageId`` is unknown or invalid."
8875
+ },
8876
+ "headerMessageId": {
8877
+ "type": "string",
8878
+ "optional": true,
8879
+ "description": "The headerMessageId of a message to be opened. Will throw, if the provided ``headerMessageId`` is unknown or invalid."
8880
+ },
8881
+ "location": {
8882
+ "type": "string",
8883
+ "enum": [
8884
+ "tab",
8885
+ "window"
8886
+ ],
8887
+ "optional": true,
8888
+ "description": "Where to open the message. If not specified, the users preference is honoured."
8889
+ },
8890
+ "active": {
8891
+ "type": "boolean",
8892
+ "optional": true,
8893
+ "description": "Whether the new tab should become the active tab in the window. Only applicable to messages opened in tabs."
8894
+ },
8895
+ "windowId": {
8896
+ "type": "integer",
8897
+ "minimum": -2,
8898
+ "optional": true,
8899
+ "description": "The id of the window, where the new tab should be created. Defaults to the current window. Only applicable to messages opened in tabs."
8900
+ }
8901
+ }
8902
+ },
8903
+ {
8904
+ "type": "function",
8905
+ "name": "callback",
8906
+ "parameters": [
8907
+ {
8908
+ "name": "tab",
8909
+ "$ref": "tabs.Tab"
8910
+ }
8911
+ ]
8912
+ }
8913
+ ]
8711
8914
  }
8712
8915
  ]
8713
8916
  }
@@ -9285,7 +9488,8 @@
9285
9488
  "enum": [
9286
9489
  "messagesMove",
9287
9490
  "messagesRead",
9288
- "messagesDelete"
9491
+ "messagesDelete",
9492
+ "messagesTags"
9289
9493
  ]
9290
9494
  }
9291
9495
  ]
@@ -9334,6 +9538,10 @@
9334
9538
  "type": "string",
9335
9539
  "description": "The message-id header of the message."
9336
9540
  },
9541
+ "headersOnly": {
9542
+ "description": "Some account types (for example POP) allow to download only the headers of the message, but not its body. The body of such messages will not be available.",
9543
+ "type": "boolean"
9544
+ },
9337
9545
  "id": {
9338
9546
  "type": "integer",
9339
9547
  "minimum": 1
@@ -9695,7 +9903,7 @@
9695
9903
  {
9696
9904
  "name": "getFull",
9697
9905
  "type": "function",
9698
- "description": "Returns a specified message, including all headers and MIME parts.",
9906
+ "description": "Returns a specified message, including all headers and MIME parts. Throws if the message could not be read, for example due to network issues.",
9699
9907
  "async": "callback",
9700
9908
  "parameters": [
9701
9909
  {
@@ -9717,7 +9925,7 @@
9717
9925
  {
9718
9926
  "name": "getRaw",
9719
9927
  "type": "function",
9720
- "description": "Returns the unmodified source of a message as a `binary string <https://developer.mozilla.org/en-US/docs/Web/API/DOMString/Binary>`__, which is a simple series of 8-bit values. If the message contains non-ASCII characters, the body parts in the binary string cannot be read directly and must be decoded according to their character sets. Use :ref:`messages.getFull` to get the correctly decoded parts. Manually decoding the raw message is probably too error-prone, especially if the message contains MIME parts with different character set encodings or attachments.\n\nTo get a readable version of the raw message as it appears in Thunderbird's message source view, it may be sufficient to decode the message according to the character set specified in its main ``content-type`` header (example: `text/html; charset=UTF-8`) using the following function (see MDN for `supported input encodings <https://developer.mozilla.org/en-US/docs/Web/API/Encoding_API/Encodings>`__): <literalinclude>includes/messages/decodeBinaryString.js<lang>JavaScript</lang></literalinclude>",
9928
+ "description": "Returns the unmodified source of a message as a `binary string <https://developer.mozilla.org/en-US/docs/Web/API/DOMString/Binary>`__, which is a simple series of 8-bit values. Throws if the message could not be read, for example due to network issues. If the message contains non-ASCII characters, the body parts in the binary string cannot be read directly and must be decoded according to their character sets. Use :ref:`messages.getFull` to get the correctly decoded parts. Manually decoding the raw message is probably too error-prone, especially if the message contains MIME parts with different character set encodings or attachments.\n\nTo get a readable version of the raw message as it appears in Thunderbird's message source view, it may be sufficient to decode the message according to the character set specified in its main ``content-type`` header (example: `text/html; charset=UTF-8`) using the following function (see MDN for `supported input encodings <https://developer.mozilla.org/en-US/docs/Web/API/Encoding_API/Encodings>`__): <literalinclude>includes/messages/decodeBinaryString.js<lang>JavaScript</lang></literalinclude>",
9721
9929
  "async": "callback",
9722
9930
  "parameters": [
9723
9931
  {
@@ -10029,6 +10237,78 @@
10029
10237
  ]
10030
10238
  }
10031
10239
  ]
10240
+ },
10241
+ {
10242
+ "name": "createTag",
10243
+ "type": "function",
10244
+ "description": "Creates a new message tag. Tagging a message will store the tag's key in the user's message.",
10245
+ "async": true,
10246
+ "permissions": [
10247
+ "messagesTags"
10248
+ ],
10249
+ "parameters": [
10250
+ {
10251
+ "type": "string",
10252
+ "name": "key",
10253
+ "pattern": "^[$a-zA-Z0-9]+$"
10254
+ },
10255
+ {
10256
+ "type": "string",
10257
+ "name": "tag"
10258
+ },
10259
+ {
10260
+ "type": "string",
10261
+ "name": "color",
10262
+ "pattern": "^#[0-9a-f]{6}"
10263
+ }
10264
+ ]
10265
+ },
10266
+ {
10267
+ "name": "updateTag",
10268
+ "type": "function",
10269
+ "description": "Updates a message tag.",
10270
+ "async": true,
10271
+ "permissions": [
10272
+ "messagesTags"
10273
+ ],
10274
+ "parameters": [
10275
+ {
10276
+ "type": "string",
10277
+ "name": "key",
10278
+ "pattern": "^[$a-zA-Z0-9]+$"
10279
+ },
10280
+ {
10281
+ "type": "object",
10282
+ "name": "updateProperties",
10283
+ "properties": {
10284
+ "tag": {
10285
+ "type": "string",
10286
+ "optional": "true"
10287
+ },
10288
+ "color": {
10289
+ "type": "string",
10290
+ "pattern": "^#[0-9a-f]{6}",
10291
+ "optional": "true"
10292
+ }
10293
+ }
10294
+ }
10295
+ ]
10296
+ },
10297
+ {
10298
+ "name": "deleteTag",
10299
+ "type": "function",
10300
+ "description": "Deletes a message tag, removing it from the list of known tags. Its key will not be removed from tagged messages, but they will appear untagged. Recreating a deleted tag, will make all former tagged messages appear tagged again.",
10301
+ "async": true,
10302
+ "permissions": [
10303
+ "messagesTags"
10304
+ ],
10305
+ "parameters": [
10306
+ {
10307
+ "type": "string",
10308
+ "name": "key",
10309
+ "pattern": "^[$a-zA-Z0-9]+$"
10310
+ }
10311
+ ]
10032
10312
  }
10033
10313
  ]
10034
10314
  }
@@ -10486,12 +10766,13 @@
10486
10766
  {
10487
10767
  "name": "create",
10488
10768
  "type": "function",
10489
- "description": "Creates a new tab.",
10769
+ "description": "Creates a new content tab. Use the :ref:`messageDisplay_api` to open messages.",
10490
10770
  "async": "callback",
10491
10771
  "parameters": [
10492
10772
  {
10493
10773
  "type": "object",
10494
10774
  "name": "createProperties",
10775
+ "description": "Properties for the new tab. Defaults to an empty tab, if no ``url`` is provided.",
10495
10776
  "properties": {
10496
10777
  "windowId": {
10497
10778
  "type": "integer",
@@ -10508,7 +10789,7 @@
10508
10789
  "url": {
10509
10790
  "type": "string",
10510
10791
  "optional": true,
10511
- "description": "The URL to navigate the tab to initially. Fully-qualified URLs must include a scheme (i.e. 'http://www.google.com', not 'www.google.com'). Relative URLs will be relative to the current page within the extension. Defaults to the New Tab Page."
10792
+ "description": "The URL to navigate the tab to initially. Fully-qualified URLs must include a scheme (i.e. 'http://www.google.com', not 'www.google.com'). Relative URLs will be relative to the current page within the extension."
10512
10793
  },
10513
10794
  "active": {
10514
10795
  "type": "boolean",
@@ -10681,16 +10962,17 @@
10681
10962
  {
10682
10963
  "type": "object",
10683
10964
  "name": "updateProperties",
10965
+ "description": "Properties which should to be updated.",
10684
10966
  "properties": {
10685
10967
  "url": {
10686
10968
  "type": "string",
10687
10969
  "optional": true,
10688
- "description": "A URL to navigate the tab to."
10970
+ "description": "A URL to navigate the tab to. Only applicable for ``content`` tabs and active ``mail`` tabs."
10689
10971
  },
10690
10972
  "active": {
10691
10973
  "type": "boolean",
10692
10974
  "optional": true,
10693
- "description": "Whether the tab should be active. Does not affect whether the window is focused (see :ref:`windows.update`)."
10975
+ "description": "Set this to true, if the tab should be active. Does not affect whether the window is focused (see :ref:`windows.update`). Setting this to false has no effect."
10694
10976
  }
10695
10977
  }
10696
10978
  },
@@ -2611,6 +2611,7 @@
2611
2611
  },
2612
2612
  "onclick": {
2613
2613
  "type": "function",
2614
+ "max_manifest_version": 2,
2614
2615
  "optional": true,
2615
2616
  "description": "A function that will be called back when the menu item is clicked. Event pages cannot use this; instead, they should register a listener for $(ref:contextMenus.onClicked).",
2616
2617
  "parameters": [
@@ -2766,6 +2767,7 @@
2766
2767
  },
2767
2768
  "onclick": {
2768
2769
  "type": "function",
2770
+ "max_manifest_version": 2,
2769
2771
  "optional": "omit-key-if-missing",
2770
2772
  "parameters": [
2771
2773
  {
@@ -4343,12 +4345,6 @@
4343
4345
  "optional": true,
4344
4346
  "description": "The ID of the tab that opened this tab, if any. This property is only present if the opener tab still exists."
4345
4347
  },
4346
- "selected": {
4347
- "type": "boolean",
4348
- "description": "Whether the tab is selected.",
4349
- "deprecated": "Please use $(ref:tabs.Tab.highlighted).",
4350
- "unsupported": true
4351
- },
4352
4348
  "highlighted": {
4353
4349
  "type": "boolean",
4354
4350
  "description": "Whether the tab is highlighted. Works as an alias of active"
@@ -4802,36 +4798,6 @@
4802
4798
  "description": "A port that can be used to communicate with the content scripts running in the specified tab. The port's $(ref:runtime.Port) event is fired if the tab closes or does not exist. "
4803
4799
  }
4804
4800
  },
4805
- {
4806
- "name": "sendRequest",
4807
- "deprecated": "Please use $(ref:runtime.sendMessage).",
4808
- "unsupported": true,
4809
- "type": "function",
4810
- "description": "Sends a single request to the content script(s) in the specified tab, with an optional callback to run when a response is sent back. The $(ref:extension.onRequest) event is fired in each content script running in the specified tab for the current extension.",
4811
- "parameters": [
4812
- {
4813
- "type": "integer",
4814
- "name": "tabId",
4815
- "minimum": 0
4816
- },
4817
- {
4818
- "type": "any",
4819
- "name": "request"
4820
- },
4821
- {
4822
- "type": "function",
4823
- "name": "responseCallback",
4824
- "optional": true,
4825
- "parameters": [
4826
- {
4827
- "name": "response",
4828
- "type": "any",
4829
- "description": "The JSON response object sent by the handler of the request. If an error occurs while connecting to the specified tab, the callback will be called with no arguments and $(ref:runtime.lastError) will be set to the error message."
4830
- }
4831
- ]
4832
- }
4833
- ]
4834
- },
4835
4801
  {
4836
4802
  "name": "sendMessage",
4837
4803
  "type": "function",
@@ -4874,63 +4840,6 @@
4874
4840
  }
4875
4841
  ]
4876
4842
  },
4877
- {
4878
- "name": "getSelected",
4879
- "deprecated": "Please use $(ref:tabs.query) <code>{active: true}</code>.",
4880
- "unsupported": true,
4881
- "type": "function",
4882
- "description": "Gets the tab that is selected in the specified window.",
4883
- "async": "callback",
4884
- "parameters": [
4885
- {
4886
- "type": "integer",
4887
- "name": "windowId",
4888
- "minimum": -2,
4889
- "optional": true,
4890
- "description": "Defaults to the $(topic:current-window)[current window]."
4891
- },
4892
- {
4893
- "type": "function",
4894
- "name": "callback",
4895
- "parameters": [
4896
- {
4897
- "name": "tab",
4898
- "$ref": "Tab"
4899
- }
4900
- ]
4901
- }
4902
- ]
4903
- },
4904
- {
4905
- "name": "getAllInWindow",
4906
- "deprecated": "Please use $(ref:tabs.query) <code>{windowId: windowId}</code>.",
4907
- "unsupported": true,
4908
- "type": "function",
4909
- "description": "Gets details about all tabs in the specified window.",
4910
- "async": "callback",
4911
- "parameters": [
4912
- {
4913
- "type": "integer",
4914
- "name": "windowId",
4915
- "minimum": -2,
4916
- "optional": true,
4917
- "description": "Defaults to the $(topic:current-window)[current window]."
4918
- },
4919
- {
4920
- "type": "function",
4921
- "name": "callback",
4922
- "parameters": [
4923
- {
4924
- "name": "tabs",
4925
- "type": "array",
4926
- "items": {
4927
- "$ref": "Tab"
4928
- }
4929
- }
4930
- ]
4931
- }
4932
- ]
4933
- },
4934
4843
  {
4935
4844
  "name": "create",
4936
4845
  "type": "function",
@@ -4963,13 +4872,6 @@
4963
4872
  "optional": true,
4964
4873
  "description": "Whether the tab should become the active tab in the window. Does not affect whether the window is focused (see $(ref:windows.update)). Defaults to <var>true</var>."
4965
4874
  },
4966
- "selected": {
4967
- "deprecated": "Please use <em>active</em>.",
4968
- "unsupported": true,
4969
- "type": "boolean",
4970
- "optional": true,
4971
- "description": "Whether the tab should become the selected tab in the window. Defaults to <var>true</var>"
4972
- },
4973
4875
  "pinned": {
4974
4876
  "type": "boolean",
4975
4877
  "optional": true,
@@ -5319,13 +5221,6 @@
5319
5221
  "optional": true,
5320
5222
  "description": "Adds or removes the tab from the current selection."
5321
5223
  },
5322
- "selected": {
5323
- "unsupported": true,
5324
- "deprecated": "Please use <em>highlighted</em>.",
5325
- "type": "boolean",
5326
- "optional": true,
5327
- "description": "Whether the tab should be selected."
5328
- },
5329
5224
  "pinned": {
5330
5225
  "type": "boolean",
5331
5226
  "optional": true,
@@ -5639,6 +5534,7 @@
5639
5534
  {
5640
5535
  "name": "executeScript",
5641
5536
  "type": "function",
5537
+ "max_manifest_version": 2,
5642
5538
  "description": "Injects JavaScript code into a page. For details, see the $(topic:content_scripts)[programmatic injection] section of the content scripts doc.",
5643
5539
  "async": "callback",
5644
5540
  "parameters": [
@@ -5676,6 +5572,7 @@
5676
5572
  {
5677
5573
  "name": "insertCSS",
5678
5574
  "type": "function",
5575
+ "max_manifest_version": 2,
5679
5576
  "description": "Injects CSS into a page. For details, see the $(topic:content_scripts)[programmatic injection] section of the content scripts doc.",
5680
5577
  "async": "callback",
5681
5578
  "parameters": [
@@ -5703,6 +5600,7 @@
5703
5600
  {
5704
5601
  "name": "removeCSS",
5705
5602
  "type": "function",
5603
+ "max_manifest_version": 2,
5706
5604
  "description": "Removes injected CSS from a page. For details, see the $(topic:content_scripts)[programmatic injection] section of the content scripts doc.",
5707
5605
  "async": "callback",
5708
5606
  "parameters": [
@@ -6170,58 +6068,6 @@
6170
6068
  }
6171
6069
  ]
6172
6070
  },
6173
- {
6174
- "name": "onSelectionChanged",
6175
- "deprecated": "Please use $(ref:tabs.onActivated).",
6176
- "unsupported": true,
6177
- "type": "function",
6178
- "description": "Fires when the selected tab in a window changes.",
6179
- "parameters": [
6180
- {
6181
- "type": "integer",
6182
- "name": "tabId",
6183
- "minimum": 0,
6184
- "description": "The ID of the tab that has become active."
6185
- },
6186
- {
6187
- "type": "object",
6188
- "name": "selectInfo",
6189
- "properties": {
6190
- "windowId": {
6191
- "type": "integer",
6192
- "minimum": 0,
6193
- "description": "The ID of the window the selected tab changed inside of."
6194
- }
6195
- }
6196
- }
6197
- ]
6198
- },
6199
- {
6200
- "name": "onActiveChanged",
6201
- "deprecated": "Please use $(ref:tabs.onActivated).",
6202
- "unsupported": true,
6203
- "type": "function",
6204
- "description": "Fires when the selected tab in a window changes. Note that the tab's URL may not be set at the time this event fired, but you can listen to $(ref:tabs.onUpdated) events to be notified when a URL is set.",
6205
- "parameters": [
6206
- {
6207
- "type": "integer",
6208
- "name": "tabId",
6209
- "minimum": 0,
6210
- "description": "The ID of the tab that has become active."
6211
- },
6212
- {
6213
- "type": "object",
6214
- "name": "selectInfo",
6215
- "properties": {
6216
- "windowId": {
6217
- "type": "integer",
6218
- "minimum": 0,
6219
- "description": "The ID of the window the selected tab changed inside of."
6220
- }
6221
- }
6222
- }
6223
- ]
6224
- },
6225
6071
  {
6226
6072
  "name": "onActivated",
6227
6073
  "type": "function",
@@ -6251,34 +6097,6 @@
6251
6097
  }
6252
6098
  ]
6253
6099
  },
6254
- {
6255
- "name": "onHighlightChanged",
6256
- "deprecated": "Please use $(ref:tabs.onHighlighted).",
6257
- "unsupported": true,
6258
- "type": "function",
6259
- "description": "Fired when the highlighted or selected tabs in a window changes.",
6260
- "parameters": [
6261
- {
6262
- "type": "object",
6263
- "name": "selectInfo",
6264
- "properties": {
6265
- "windowId": {
6266
- "type": "integer",
6267
- "minimum": 0,
6268
- "description": "The window whose tabs changed."
6269
- },
6270
- "tabIds": {
6271
- "type": "array",
6272
- "items": {
6273
- "type": "integer",
6274
- "minimum": 0
6275
- },
6276
- "description": "All highlighted tabs in the window."
6277
- }
6278
- }
6279
- }
6280
- ]
6281
- },
6282
6100
  {
6283
6101
  "name": "onHighlighted",
6284
6102
  "type": "function",
@@ -8982,6 +8800,7 @@
8982
8800
  "content_scripts.json": [
8983
8801
  {
8984
8802
  "namespace": "contentScripts",
8803
+ "max_manifest_version": 2,
8985
8804
  "types": [
8986
8805
  {
8987
8806
  "id": "RegisteredContentScriptOptions",
@@ -11331,7 +11150,6 @@
11331
11150
  {
11332
11151
  "name": "getBackgroundPage",
11333
11152
  "type": "function",
11334
- "max_manifest_version": 2,
11335
11153
  "description": "Returns the JavaScript 'window' object for the background page running inside the current extension. Returns null if the extension has no background page.",
11336
11154
  "parameters": [],
11337
11155
  "returns": {
@@ -15951,6 +15769,11 @@
15951
15769
  "world": {
15952
15770
  "$ref": "ExecutionWorld",
15953
15771
  "optional": true
15772
+ },
15773
+ "injectImmediately": {
15774
+ "type": "boolean",
15775
+ "optional": true,
15776
+ "description": "Whether the injection should be triggered in the target as soon as possible (but not necessarily prior to page load)."
15954
15777
  }
15955
15778
  }
15956
15779
  },
@@ -16479,6 +16302,23 @@
16479
16302
  }
16480
16303
  ]
16481
16304
  }
16305
+ ],
16306
+ "events": [
16307
+ {
16308
+ "name": "onChanged",
16309
+ "type": "function",
16310
+ "description": "Fired when one or more items change.",
16311
+ "parameters": [
16312
+ {
16313
+ "name": "changes",
16314
+ "type": "object",
16315
+ "additionalProperties": {
16316
+ "$ref": "StorageChange"
16317
+ },
16318
+ "description": "Object mapping each key that changed to its corresponding $(ref:storage.StorageChange) for that item."
16319
+ }
16320
+ ]
16321
+ }
16482
16322
  ]
16483
16323
  },
16484
16324
  {
@@ -16635,6 +16475,23 @@
16635
16475
  }
16636
16476
  ]
16637
16477
  }
16478
+ ],
16479
+ "events": [
16480
+ {
16481
+ "name": "onChanged",
16482
+ "type": "function",
16483
+ "description": "Fired when one or more items change.",
16484
+ "parameters": [
16485
+ {
16486
+ "name": "changes",
16487
+ "type": "object",
16488
+ "additionalProperties": {
16489
+ "$ref": "StorageChange"
16490
+ },
16491
+ "description": "Object mapping each key that changed to its corresponding $(ref:storage.StorageChange) for that item."
16492
+ }
16493
+ ]
16494
+ }
16638
16495
  ]
16639
16496
  }
16640
16497
  ],
@@ -18210,6 +18067,7 @@
18210
18067
  "properties": {
18211
18068
  "user_scripts": {
18212
18069
  "type": "object",
18070
+ "max_manifest_version": 2,
18213
18071
  "optional": true,
18214
18072
  "properties": {
18215
18073
  "api_script": {
@@ -18227,6 +18085,7 @@
18227
18085
  },
18228
18086
  {
18229
18087
  "namespace": "userScripts",
18088
+ "max_manifest_version": 2,
18230
18089
  "permissions": [
18231
18090
  "manifest:user_scripts"
18232
18091
  ],
@@ -18350,6 +18209,7 @@
18350
18209
  "user_scripts_content.json": [
18351
18210
  {
18352
18211
  "namespace": "userScripts",
18212
+ "max_manifest_version": 2,
18353
18213
  "permissions": [
18354
18214
  "manifest:user_scripts"
18355
18215
  ],