@wxt-dev/browser 0.2.5 → 0.2.6
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.
- package/package.json +2 -2
- package/src/gen/index.d.ts +82 -80
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wxt-dev/browser",
|
|
3
3
|
"description": "Provides a cross-browser API for using extension APIs and types based on @types/chrome",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.6",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.mjs",
|
|
7
7
|
"types": "src/index.d.ts",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"src"
|
|
26
26
|
],
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@types/chrome": "0.2.
|
|
28
|
+
"@types/chrome": "0.2.6",
|
|
29
29
|
"@types/node": "^22",
|
|
30
30
|
"typescript": "^6.0.3",
|
|
31
31
|
"vitest": "^4.1.10"
|
package/src/gen/index.d.ts
CHANGED
|
@@ -170,7 +170,7 @@ export namespace Browser {
|
|
|
170
170
|
interface TitleDetails {
|
|
171
171
|
/** The string the action should display when moused over. */
|
|
172
172
|
title: string;
|
|
173
|
-
/** Limits the change to when a particular tab is selected. Automatically resets when the tab is closed.
|
|
173
|
+
/** Limits the change to when a particular tab is selected. Automatically resets when the tab is closed. */
|
|
174
174
|
tabId?: number | undefined;
|
|
175
175
|
}
|
|
176
176
|
|
|
@@ -203,12 +203,12 @@ export namespace Browser {
|
|
|
203
203
|
|
|
204
204
|
/** @since Chrome 99 */
|
|
205
205
|
interface OpenPopupOptions {
|
|
206
|
-
/** The id of the window to open the action popup in. Defaults to the currently-active window if unspecified.
|
|
206
|
+
/** The id of the window to open the action popup in. Defaults to the currently-active window if unspecified. */
|
|
207
207
|
windowId?: number | undefined;
|
|
208
208
|
}
|
|
209
209
|
|
|
210
210
|
interface TabDetails {
|
|
211
|
-
/** The ID of the tab to query state for. If no tab is specified, the non-tab-specific state is returned.
|
|
211
|
+
/** The ID of the tab to query state for. If no tab is specified, the non-tab-specific state is returned. */
|
|
212
212
|
tabId?: number | undefined;
|
|
213
213
|
}
|
|
214
214
|
|
|
@@ -404,7 +404,7 @@ export namespace Browser {
|
|
|
404
404
|
}
|
|
405
405
|
& (
|
|
406
406
|
| {
|
|
407
|
-
/** Length of time in minutes after which the {@link onAlarm} event should fire.
|
|
407
|
+
/** Length of time in minutes after which the {@link onAlarm} event should fire. */
|
|
408
408
|
delayInMinutes: number;
|
|
409
409
|
/** If set, the onAlarm event should fire every `periodInMinutes` minutes after the initial event specified by `when` or `delayInMinutes`. If not set, the alarm will only fire once. */
|
|
410
410
|
periodInMinutes?: number | undefined;
|
|
@@ -412,7 +412,7 @@ export namespace Browser {
|
|
|
412
412
|
when?: undefined;
|
|
413
413
|
}
|
|
414
414
|
| {
|
|
415
|
-
/** Length of time in minutes after which the {@link onAlarm} event should fire.
|
|
415
|
+
/** Length of time in minutes after which the {@link onAlarm} event should fire. */
|
|
416
416
|
delayInMinutes?: number | undefined;
|
|
417
417
|
/** If set, the onAlarm event should fire every `periodInMinutes` minutes after the initial event specified by `when` or `delayInMinutes`. If not set, the alarm will only fire once. */
|
|
418
418
|
periodInMinutes: number;
|
|
@@ -420,7 +420,7 @@ export namespace Browser {
|
|
|
420
420
|
when?: undefined;
|
|
421
421
|
}
|
|
422
422
|
| {
|
|
423
|
-
/** Length of time in minutes after which the {@link onAlarm} event should fire.
|
|
423
|
+
/** Length of time in minutes after which the {@link onAlarm} event should fire. */
|
|
424
424
|
delayInMinutes?: undefined;
|
|
425
425
|
/** If set, the onAlarm event should fire every `periodInMinutes` minutes after the initial event specified by `when` or `delayInMinutes`. If not set, the alarm will only fire once. */
|
|
426
426
|
periodInMinutes?: number | undefined;
|
|
@@ -835,7 +835,7 @@ export namespace Browser {
|
|
|
835
835
|
function removeTree(id: string, callback: () => void): void;
|
|
836
836
|
|
|
837
837
|
interface SearchQuery {
|
|
838
|
-
/** A string of words and quoted phrases that are matched against bookmark URLs and titles
|
|
838
|
+
/** A string of words and quoted phrases that are matched against bookmark URLs and titles. */
|
|
839
839
|
query?: string;
|
|
840
840
|
/** The URL of the bookmark; matches verbatim. Note that folders have no URL. */
|
|
841
841
|
url?: string;
|
|
@@ -865,7 +865,7 @@ export namespace Browser {
|
|
|
865
865
|
function update(id: string, changes: UpdateChanges): Promise<BookmarkTreeNode>;
|
|
866
866
|
function update(id: string, changes: UpdateChanges, callback: (result: BookmarkTreeNode) => void): void;
|
|
867
867
|
|
|
868
|
-
/** Fired when a bookmark or folder changes. **Note:** Currently, only title and url changes trigger this
|
|
868
|
+
/** Fired when a bookmark or folder changes. **Note:** Currently, only title and url changes trigger this. */
|
|
869
869
|
const onChanged: events.Event<(id: string, changeInfo: { title: string; url?: string }) => void>;
|
|
870
870
|
|
|
871
871
|
/** Fired when the children of a folder have changed their order due to the order being sorted in the UI. This is not called as a result of a move(). */
|
|
@@ -877,7 +877,7 @@ export namespace Browser {
|
|
|
877
877
|
/** Fired when a bookmark import session is begun. Expensive observers should ignore onCreated updates until onImportEnded is fired. Observers should still handle other notifications immediately. */
|
|
878
878
|
const onImportBegan: events.Event<() => void>;
|
|
879
879
|
|
|
880
|
-
/** Fired when a bookmark import session is ended.
|
|
880
|
+
/** Fired when a bookmark import session is ended. */
|
|
881
881
|
const onImportEnded: events.Event<() => void>;
|
|
882
882
|
|
|
883
883
|
/** Fired when a bookmark or folder is moved to a different parent folder. */
|
|
@@ -935,7 +935,7 @@ export namespace Browser {
|
|
|
935
935
|
interface TitleDetails {
|
|
936
936
|
/** The string the browser action should display when moused over. */
|
|
937
937
|
title: string;
|
|
938
|
-
/** Optional. Limits the change to when a particular tab is selected. Automatically resets when the tab is closed.
|
|
938
|
+
/** Optional. Limits the change to when a particular tab is selected. Automatically resets when the tab is closed. */
|
|
939
939
|
tabId?: number | null | undefined;
|
|
940
940
|
}
|
|
941
941
|
|
|
@@ -967,7 +967,7 @@ export namespace Browser {
|
|
|
967
967
|
interface PopupDetails {
|
|
968
968
|
/** Limits the change to when a particular tab is selected. Automatically resets when the tab is closed. */
|
|
969
969
|
tabId?: number | null | undefined;
|
|
970
|
-
/** The relative path to the HTML file to show in a popup. If set to the empty string (`''`), no popup is shown
|
|
970
|
+
/** The relative path to the HTML file to show in a popup. If set to the empty string (`''`), no popup is shown. */
|
|
971
971
|
popup: string;
|
|
972
972
|
}
|
|
973
973
|
|
|
@@ -1331,7 +1331,7 @@ export namespace Browser {
|
|
|
1331
1331
|
GENERAL_ERROR = "GENERAL_ERROR",
|
|
1332
1332
|
}
|
|
1333
1333
|
|
|
1334
|
-
/** @deprecated Replaced by {@link Algorithm}
|
|
1334
|
+
/** @deprecated Replaced by {@link Algorithm}. */
|
|
1335
1335
|
enum Hash {
|
|
1336
1336
|
/** Specifies the MD5 and SHA1 hashing algorithms. */
|
|
1337
1337
|
MD5_SHA1 = "MD5_SHA1",
|
|
@@ -1409,7 +1409,7 @@ export namespace Browser {
|
|
|
1409
1409
|
error?: `${Error}` | undefined;
|
|
1410
1410
|
}
|
|
1411
1411
|
|
|
1412
|
-
/**
|
|
1412
|
+
/** @since Chrome 86 */
|
|
1413
1413
|
interface SignatureRequest {
|
|
1414
1414
|
/** Signature algorithm to be used. */
|
|
1415
1415
|
algorithm: `${Algorithm}`;
|
|
@@ -1424,7 +1424,7 @@ export namespace Browser {
|
|
|
1424
1424
|
interface SignRequest {
|
|
1425
1425
|
/** The DER encoding of a X.509 certificate. The extension must sign `digest` using the associated private key. */
|
|
1426
1426
|
certificate: ArrayBuffer;
|
|
1427
|
-
/**
|
|
1427
|
+
/** The digest that must be signed. */
|
|
1428
1428
|
digest: ArrayBuffer;
|
|
1429
1429
|
/** Refers to the hash algorithm that was used to create `digest`. */
|
|
1430
1430
|
hash: `${Hash}`;
|
|
@@ -1591,7 +1591,7 @@ export namespace Browser {
|
|
|
1591
1591
|
resourceIdentifier?: ResourceIdentifier;
|
|
1592
1592
|
/** Where to set the setting (default: regular). */
|
|
1593
1593
|
scope?: `${Scope}`;
|
|
1594
|
-
/** The pattern for the secondary URL. Defaults to matching all URLs. For details on the format of a pattern, see Content Setting Patterns
|
|
1594
|
+
/** The pattern for the secondary URL. Defaults to matching all URLs. For details on the format of a pattern, see Content Setting Patterns. */
|
|
1595
1595
|
secondaryPattern?: string;
|
|
1596
1596
|
/** The setting applied by this rule. See the description of the individual ContentSetting objects for the possible values. */
|
|
1597
1597
|
setting: T;
|
|
@@ -1702,7 +1702,7 @@ export namespace Browser {
|
|
|
1702
1702
|
|
|
1703
1703
|
/** The only content type using resource identifiers is contentSettings.plugins. For more information, see Resource Identifiers. */
|
|
1704
1704
|
interface ResourceIdentifier {
|
|
1705
|
-
/** A human readable description of the resource.
|
|
1705
|
+
/** A human readable description of the resource. */
|
|
1706
1706
|
description?: string;
|
|
1707
1707
|
/** The resource identifier for the given content type. */
|
|
1708
1708
|
id: string;
|
|
@@ -1941,15 +1941,15 @@ export namespace Browser {
|
|
|
1941
1941
|
checked?: boolean;
|
|
1942
1942
|
/** List of contexts this menu item will appear in. Defaults to `['page']`. */
|
|
1943
1943
|
contexts?: [`${ContextType}`, ...`${ContextType}`[]];
|
|
1944
|
-
/** Restricts the item to apply only to documents or frames whose URL matches one of the given patterns. For details on pattern formats, see Match Patterns.
|
|
1944
|
+
/** Restricts the item to apply only to documents or frames whose URL matches one of the given patterns. For details on pattern formats, see Match Patterns. */
|
|
1945
1945
|
documentUrlPatterns?: string[];
|
|
1946
|
-
/**
|
|
1946
|
+
/** Whether this context menu item is enabled or disabled. Defaults to `true`. */
|
|
1947
1947
|
enabled?: boolean;
|
|
1948
1948
|
/** The unique ID to assign to this item. Mandatory for event pages. Cannot be the same as another ID for this extension. */
|
|
1949
1949
|
id?: string;
|
|
1950
|
-
/**
|
|
1950
|
+
/** The ID of a parent menu item; this makes the item a child of a previously added item. */
|
|
1951
1951
|
parentId?: number | string;
|
|
1952
|
-
/**
|
|
1952
|
+
/** Similar to `documentUrlPatterns`, filters based on the `src` attribute of `img`, `audio`, and `video` tags and the `href` attribute of `a` tags. */
|
|
1953
1953
|
targetUrlPatterns?: string[];
|
|
1954
1954
|
/** The text to display in the item; this is _required_ unless `type` is `separator`. When the context is `selection`, use `%s` within the string to show the selected text. For example, if this parameter's value is "Translate '%s' to Pig Latin" and the user selects the word "cool", the context menu item for the selection is "Translate 'cool' to Pig Latin". */
|
|
1955
1955
|
title?: string;
|
|
@@ -1983,7 +1983,7 @@ export namespace Browser {
|
|
|
1983
1983
|
interface OnClickData {
|
|
1984
1984
|
/** A flag indicating the state of a checkbox or radio item after it is clicked. */
|
|
1985
1985
|
checked?: boolean;
|
|
1986
|
-
/**
|
|
1986
|
+
/** A flag indicating whether the element is editable (text input, textarea, etc.). */
|
|
1987
1987
|
editable: boolean;
|
|
1988
1988
|
/**
|
|
1989
1989
|
* The ID of the frame of the element where the context menu was clicked, if it was in a frame.
|
|
@@ -2000,7 +2000,7 @@ export namespace Browser {
|
|
|
2000
2000
|
menuItemId: number | string;
|
|
2001
2001
|
/** The URL of the page where the menu item was clicked. This property is not set if the click occurred in a context where there is no current page, such as in a launcher context menu. */
|
|
2002
2002
|
pageUrl?: string;
|
|
2003
|
-
/** The parent ID, if any, for the item clicked
|
|
2003
|
+
/** The parent ID, if any, for the item clicked. */
|
|
2004
2004
|
parentMenuItemId?: number | string;
|
|
2005
2005
|
/** The text for the context selection, if any. */
|
|
2006
2006
|
selectionText?: string | undefined;
|
|
@@ -2065,7 +2065,7 @@ export namespace Browser {
|
|
|
2065
2065
|
* Manifest: "host_permissions"
|
|
2066
2066
|
*/
|
|
2067
2067
|
export namespace cookies {
|
|
2068
|
-
/** A cookie's 'SameSite' state (https://tools.ietf.org/html/draft-west-first-party-cookies). 'no_restriction' corresponds to a cookie set with 'SameSite=None', 'lax' to 'SameSite=Lax', and 'strict' to 'SameSite=Strict'. 'unspecified' corresponds to a cookie set without the SameSite attribute.
|
|
2068
|
+
/** A cookie's 'SameSite' state (https://tools.ietf.org/html/draft-west-first-party-cookies). 'no_restriction' corresponds to a cookie set with 'SameSite=None', 'lax' to 'SameSite=Lax', and 'strict' to 'SameSite=Strict'. 'unspecified' corresponds to a cookie set without the SameSite attribute. */
|
|
2069
2069
|
enum SameSiteStatus {
|
|
2070
2070
|
NO_RESTRICTION = "no_restriction",
|
|
2071
2071
|
LAX = "lax",
|
|
@@ -2316,7 +2316,7 @@ export namespace Browser {
|
|
|
2316
2316
|
* @since Chrome 125
|
|
2317
2317
|
*/
|
|
2318
2318
|
interface DebuggerSession {
|
|
2319
|
-
/** The id of the extension which you intend to debug. Attaching to an extension background page is only possible when the `--silent-debugger-extension-api` command-line switch is used
|
|
2319
|
+
/** The id of the extension which you intend to debug. Attaching to an extension background page is only possible when the `--silent-debugger-extension-api` command-line switch is used. */
|
|
2320
2320
|
extensionId?: string;
|
|
2321
2321
|
/** The opaque id of the Chrome DevTools Protocol session. Identifies a child session within the root session identified by tabId, extensionId or targetId. */
|
|
2322
2322
|
sessionId?: string;
|
|
@@ -2351,7 +2351,7 @@ export namespace Browser {
|
|
|
2351
2351
|
title: string;
|
|
2352
2352
|
/** Target URL. */
|
|
2353
2353
|
url: string;
|
|
2354
|
-
/** Target favicon URL.
|
|
2354
|
+
/** Target favicon URL. */
|
|
2355
2355
|
faviconUrl?: string;
|
|
2356
2356
|
}
|
|
2357
2357
|
|
|
@@ -2852,7 +2852,7 @@ export namespace Browser {
|
|
|
2852
2852
|
getContent(): Promise<{
|
|
2853
2853
|
/** Content of the resource (potentially encoded). */
|
|
2854
2854
|
content: string;
|
|
2855
|
-
/** Empty if the content is not encoded, encoding name otherwise. Currently, only base64 is supported
|
|
2855
|
+
/** Empty if the content is not encoded, encoding name otherwise. Currently, only base64 is supported. */
|
|
2856
2856
|
encoding: string;
|
|
2857
2857
|
}>;
|
|
2858
2858
|
getContent(
|
|
@@ -3384,7 +3384,7 @@ export namespace Browser {
|
|
|
3384
3384
|
enum OperationResult {
|
|
3385
3385
|
/** An unknown or generic failure occurred. */
|
|
3386
3386
|
UNKNOWN = "UNKNOWN",
|
|
3387
|
-
/**The operation succeeded. */
|
|
3387
|
+
/** The operation succeeded. */
|
|
3388
3388
|
SUCCESS = "SUCCESS",
|
|
3389
3389
|
/** The operation is not supported. */
|
|
3390
3390
|
UNSUPPORTED = "UNSUPPORTED",
|
|
@@ -3567,7 +3567,7 @@ export namespace Browser {
|
|
|
3567
3567
|
|
|
3568
3568
|
/** @since Chrome 125 */
|
|
3569
3569
|
interface SetOptionResult {
|
|
3570
|
-
/**
|
|
3570
|
+
/** Indicates the name of the option that was set. */
|
|
3571
3571
|
name: string;
|
|
3572
3572
|
/** Indicates the result of setting the option. */
|
|
3573
3573
|
result: `${OperationResult}`;
|
|
@@ -3599,7 +3599,7 @@ export namespace Browser {
|
|
|
3599
3599
|
interface StartScanResponse<T> {
|
|
3600
3600
|
/** If `result` is `SUCCESS`, provides a handle that can be used to read scan data or cancel the job. */
|
|
3601
3601
|
job?: string;
|
|
3602
|
-
/**
|
|
3602
|
+
/** The result of starting a scan. If the value of this is `SUCCESS`, the `job` property will be populated. */
|
|
3603
3603
|
result: `${OperationResult}`;
|
|
3604
3604
|
/** Provides the same scanner handle that was passed to {@link startScan}. */
|
|
3605
3605
|
scannerHandle: T;
|
|
@@ -5167,7 +5167,7 @@ export namespace Browser {
|
|
|
5167
5167
|
requestId: number;
|
|
5168
5168
|
}
|
|
5169
5169
|
|
|
5170
|
-
/** Error codes used by providing extensions in response to requests as well as in case of errors when calling methods of the API. For success, `"OK"` must be used
|
|
5170
|
+
/** Error codes used by providing extensions in response to requests as well as in case of errors when calling methods of the API. For success, `"OK"` must be used. */
|
|
5171
5171
|
enum ProviderError {
|
|
5172
5172
|
OK = "OK",
|
|
5173
5173
|
FAILED = "FAILED",
|
|
@@ -5374,7 +5374,7 @@ export namespace Browser {
|
|
|
5374
5374
|
) => void
|
|
5375
5375
|
>;
|
|
5376
5376
|
|
|
5377
|
-
/** Raised when opening a file previously opened with `openRequestId` is requested to be closed
|
|
5377
|
+
/** Raised when opening a file previously opened with `openRequestId` is requested to be closed. */
|
|
5378
5378
|
const onCloseFileRequested: events.Event<
|
|
5379
5379
|
(
|
|
5380
5380
|
options: CloseFileRequestedOptions,
|
|
@@ -5819,7 +5819,7 @@ export namespace Browser {
|
|
|
5819
5819
|
genericFamily: `${GenericFamily}`;
|
|
5820
5820
|
/** The level of control this extension has over the setting. */
|
|
5821
5821
|
levelOfControl: `${LevelOfControl}`;
|
|
5822
|
-
/** Optional. The script code for which the font setting has changed.
|
|
5822
|
+
/** Optional. The script code for which the font setting has changed. */
|
|
5823
5823
|
script?: `${ScriptCode}`;
|
|
5824
5824
|
/** The font ID. See the description in {@link getFont}. */
|
|
5825
5825
|
fontId: string;
|
|
@@ -6278,7 +6278,8 @@ export namespace Browser {
|
|
|
6278
6278
|
/** Gets the browser UI language of the browser. This is different from {@link i18n.getAcceptLanguages} which returns the preferred user languages. */
|
|
6279
6279
|
function getUILanguage(): string;
|
|
6280
6280
|
|
|
6281
|
-
/**
|
|
6281
|
+
/**
|
|
6282
|
+
* Detects the language of the provided text using CLD.
|
|
6282
6283
|
* @param text User input string to be translated.
|
|
6283
6284
|
*
|
|
6284
6285
|
* Can return its result via Promise in Manifest V3 or later since Chrome 99.
|
|
@@ -6408,7 +6409,7 @@ export namespace Browser {
|
|
|
6408
6409
|
*
|
|
6409
6410
|
* The Identity API caches access tokens in memory, so it's ok to call getAuthToken non-interactively any time a token is required. The token cache automatically handles expiration.
|
|
6410
6411
|
*
|
|
6411
|
-
* For a good user experience it is important interactive token requests are initiated by UI in your app explaining what the authorization is for. Failing to do this will cause your users to get authorization requests, or Chrome sign in screens if they are not signed in, with
|
|
6412
|
+
* For a good user experience it is important interactive token requests are initiated by UI in your app explaining what the authorization is for. Failing to do this will cause your users to get authorization requests, or Chrome sign in screens if they are not signed in, with no context. In particular, do not use getAuthToken interactively when your app is first launched.
|
|
6412
6413
|
* @param details Token options.
|
|
6413
6414
|
*
|
|
6414
6415
|
* Can return its result via Promise since Chrome 105.
|
|
@@ -7031,13 +7032,13 @@ export namespace Browser {
|
|
|
7031
7032
|
/** This event is sent when an IME is deactivated. It signals that the IME will no longer be receiving onKeyPress events. */
|
|
7032
7033
|
const onDeactivated: events.Event<(engineID: string) => void>;
|
|
7033
7034
|
|
|
7034
|
-
/** This event is sent when the properties of the current InputContext change, such as the
|
|
7035
|
+
/** This event is sent when the properties of the current InputContext change, such as the type. It is sent to all extensions that are listening to this event, and enabled by the user. */
|
|
7035
7036
|
const onInputContextUpdate: events.Event<(context: InputContext) => void>;
|
|
7036
7037
|
|
|
7037
7038
|
/** This event is sent when an IME is activated. It signals that the IME will be receiving onKeyPress events. */
|
|
7038
7039
|
const onActivate: events.Event<(engineID: string, screen: `${ScreenType}`) => void>;
|
|
7039
7040
|
|
|
7040
|
-
|
|
7041
|
+
/** This event is sent when focus enters a text box. It is sent to all extensions that are listening to this event, and enabled by the user. */
|
|
7041
7042
|
const onFocus: events.Event<(context: InputContext) => void>;
|
|
7042
7043
|
|
|
7043
7044
|
/** Called when the user selects a menu item */
|
|
@@ -7195,7 +7196,7 @@ export namespace Browser {
|
|
|
7195
7196
|
function getSessionState(): Promise<`${SessionState}`>;
|
|
7196
7197
|
function getSessionState(callback: (sessionState: `${SessionState}`) => void): void;
|
|
7197
7198
|
|
|
7198
|
-
/** Dispatched when the session state changes. `sessionState` is the new session state
|
|
7199
|
+
/** Dispatched when the session state changes. `sessionState` is the new session state. */
|
|
7199
7200
|
const onSessionStateChanged: events.Event<(sessionState: `${SessionState}`) => void>;
|
|
7200
7201
|
}
|
|
7201
7202
|
|
|
@@ -7605,7 +7606,8 @@ export namespace Browser {
|
|
|
7605
7606
|
* **Note:** This value is required for the {@link notifications.create}() method.
|
|
7606
7607
|
*/
|
|
7607
7608
|
title?: string;
|
|
7608
|
-
/**
|
|
7609
|
+
/**
|
|
7610
|
+
* Which type of notification to display.
|
|
7609
7611
|
*
|
|
7610
7612
|
* **Note:** This value is required for the {@link notifications.create}() method.
|
|
7611
7613
|
*/
|
|
@@ -8069,7 +8071,7 @@ export namespace Browser {
|
|
|
8069
8071
|
// Platform Keys
|
|
8070
8072
|
////////////////////
|
|
8071
8073
|
/**
|
|
8072
|
-
* Use the `Browser.platformKeys` API to access client certificates managed by the platform. If the user or policy grants the permission, an extension can use such a
|
|
8074
|
+
* Use the `Browser.platformKeys` API to access client certificates managed by the platform. If the user or policy grants the permission, an extension can use such a certificate in its custom authentication protocol. E.g. this allows usage of platform managed certificates in third party VPNs (see Browser.vpnProvider).
|
|
8073
8075
|
*
|
|
8074
8076
|
* Permissions: "platformKeys"
|
|
8075
8077
|
* @platform ChromeOS only
|
|
@@ -8231,7 +8233,7 @@ export namespace Browser {
|
|
|
8231
8233
|
enum PrintError {
|
|
8232
8234
|
/** Specifies that the operation was completed successfully. */
|
|
8233
8235
|
OK = "OK",
|
|
8234
|
-
/** Specifies that a general failure
|
|
8236
|
+
/** Specifies that a general failure occurred. */
|
|
8235
8237
|
FAILED = "FAILED",
|
|
8236
8238
|
/** Specifies that the print ticket is invalid. For example, the ticket is inconsistent with some capabilities, or the extension is not able to handle all settings from the ticket. */
|
|
8237
8239
|
INVALID_TICKET = "INVALID_TICKET",
|
|
@@ -9032,7 +9034,7 @@ export namespace Browser {
|
|
|
9032
9034
|
*/
|
|
9033
9035
|
export namespace runtime {
|
|
9034
9036
|
interface LastError {
|
|
9035
|
-
/** Details about the error which occurred.
|
|
9037
|
+
/** Details about the error which occurred. */
|
|
9036
9038
|
message?: string;
|
|
9037
9039
|
}
|
|
9038
9040
|
|
|
@@ -9068,19 +9070,19 @@ export namespace Browser {
|
|
|
9068
9070
|
* @since Chrome 44
|
|
9069
9071
|
*/
|
|
9070
9072
|
enum PlatformArch {
|
|
9071
|
-
/** Specifies the
|
|
9073
|
+
/** Specifies the processor architecture as arm. */
|
|
9072
9074
|
ARM = "arm",
|
|
9073
|
-
/** Specifies the
|
|
9075
|
+
/** Specifies the processor architecture as arm64. */
|
|
9074
9076
|
ARM64 = "arm64",
|
|
9075
|
-
/** Specifies the
|
|
9077
|
+
/** Specifies the processor architecture as x86-32. */
|
|
9076
9078
|
X86_32 = "x86-32",
|
|
9077
|
-
/** Specifies the
|
|
9079
|
+
/** Specifies the processor architecture as x86-64. */
|
|
9078
9080
|
X86_64 = "x86-64",
|
|
9079
|
-
/** Specifies the
|
|
9081
|
+
/** Specifies the processor architecture as mips. */
|
|
9080
9082
|
MIPS = "mips",
|
|
9081
|
-
/** Specifies the
|
|
9083
|
+
/** Specifies the processor architecture as mips64. */
|
|
9082
9084
|
MIPS64 = "mips64",
|
|
9083
|
-
/** Specifies the
|
|
9085
|
+
/** Specifies the processor architecture as riscv64. */
|
|
9084
9086
|
RISCV64 = "riscv64",
|
|
9085
9087
|
}
|
|
9086
9088
|
|
|
@@ -9187,7 +9189,7 @@ export namespace Browser {
|
|
|
9187
9189
|
contextId: string;
|
|
9188
9190
|
/** The type of context this corresponds to. */
|
|
9189
9191
|
contextType: `${ContextType}`;
|
|
9190
|
-
/** A UUID for the document associated with this context, or undefined if this context is hosted not in a document
|
|
9192
|
+
/** A UUID for the document associated with this context, or undefined if this context is hosted not in a document. */
|
|
9191
9193
|
documentId?: string;
|
|
9192
9194
|
/** The origin of the document associated with this context, or undefined if the context is not hosted in a document. */
|
|
9193
9195
|
documentOrigin?: string;
|
|
@@ -9469,7 +9471,7 @@ export namespace Browser {
|
|
|
9469
9471
|
// Optional
|
|
9470
9472
|
/** @deprecated As of February 2024, the `author` key is no longer supported by Chrome or the Chrome Web Store. If present, it's silently ignored. */
|
|
9471
9473
|
author?: { email: string } | undefined;
|
|
9472
|
-
/** Defines overrides for selected Chrome settings.
|
|
9474
|
+
/** Defines overrides for selected Chrome settings. */
|
|
9473
9475
|
chrome_settings_overrides?: {
|
|
9474
9476
|
/** The new value for the homepage. */
|
|
9475
9477
|
homepage?: string | undefined;
|
|
@@ -9546,7 +9548,7 @@ export namespace Browser {
|
|
|
9546
9548
|
/** Files app uses above information in order to render related UI elements appropriately. For example, if `configurable` is set to true, then a menu item for configuring volumes will be rendered. Similarly, if `multiple_mounts` is set to true, then Files app will allow to add more than one mount points from the UI. If `watchable` is false, then a refresh button will be rendered. Note, that if possible you should add support for watchers, so changes on the file system can be reflected immediately and automatically. */
|
|
9547
9549
|
source: "file" | "device" | "network";
|
|
9548
9550
|
} | undefined;
|
|
9549
|
-
/**
|
|
9551
|
+
/** string specifying a URL for the extension's homepage. If this is undefined, the homepage defaults to the extension's Chrome Web Store page. This field is particularly useful if you host the extension on your own site. */
|
|
9550
9552
|
homepage_url?: string | undefined;
|
|
9551
9553
|
/** Allows resources to be imported into the extension. */
|
|
9552
9554
|
import?:
|
|
@@ -10669,9 +10671,9 @@ export namespace Browser {
|
|
|
10669
10671
|
}
|
|
10670
10672
|
|
|
10671
10673
|
interface Bounds {
|
|
10672
|
-
/**
|
|
10674
|
+
/** The x-coordinate of the upper-left corner. */
|
|
10673
10675
|
left: number;
|
|
10674
|
-
/**
|
|
10676
|
+
/** The y-coordinate of the upper-left corner. */
|
|
10675
10677
|
top: number;
|
|
10676
10678
|
/** The width of the display in pixels. */
|
|
10677
10679
|
width: number;
|
|
@@ -10901,7 +10903,8 @@ export namespace Browser {
|
|
|
10901
10903
|
dpiX: number;
|
|
10902
10904
|
/** The number of pixels per inch along the y-axis. */
|
|
10903
10905
|
dpiY: number;
|
|
10904
|
-
/**
|
|
10906
|
+
/**
|
|
10907
|
+
* The display's clockwise rotation in degrees relative to the vertical position.
|
|
10905
10908
|
* Currently exposed only on ChromeOS. Will be set to 0 on other platforms.
|
|
10906
10909
|
* A value of -1 will be interpreted as auto-rotate when the device is in a physical tablet state.
|
|
10907
10910
|
* @platform ChromeOS only
|
|
@@ -11166,7 +11169,7 @@ export namespace Browser {
|
|
|
11166
11169
|
|
|
11167
11170
|
/** @since Chrome 71 */
|
|
11168
11171
|
interface GetMediaStreamOptions {
|
|
11169
|
-
/** Optional tab id of the tab which will later invoke `getUserMedia()` to consume the stream. If not specified then the resulting stream can be used only by the calling extension. The stream can only be used by frames in the given tab whose security origin matches the
|
|
11172
|
+
/** Optional tab id of the tab which will later invoke `getUserMedia()` to consume the stream. If not specified then the resulting stream can be used only by the calling extension. The stream can only be used by frames in the given tab whose security origin matches the consumer tab's origin. The tab's origin must be a secure origin, e.g. HTTPS. */
|
|
11170
11173
|
consumerTabId?: number | undefined;
|
|
11171
11174
|
/** Optional tab id of the tab which will be captured. If not specified then the current active tab will be selected. Only tabs for which the extension has been granted the `activeTab` permission can be used as the target tab. */
|
|
11172
11175
|
targetTabId?: number | undefined;
|
|
@@ -11440,7 +11443,7 @@ export namespace Browser {
|
|
|
11440
11443
|
url?: string | undefined;
|
|
11441
11444
|
/** Adds or removes the tab from the current selection. */
|
|
11442
11445
|
highlighted?: boolean | undefined;
|
|
11443
|
-
/** Whether the tab should be active. Does not affect whether the window is focused (see {@link windows.update})
|
|
11446
|
+
/** Whether the tab should be active. Does not affect whether the window is focused (see {@link windows.update}). */
|
|
11444
11447
|
active?: boolean | undefined;
|
|
11445
11448
|
/**
|
|
11446
11449
|
* Whether the tab should be selected.
|
|
@@ -11977,7 +11980,7 @@ export namespace Browser {
|
|
|
11977
11980
|
* Discards a tab from memory. Discarded tabs are still visible on the tab strip and are reloaded when activated.
|
|
11978
11981
|
*
|
|
11979
11982
|
* Can return its result via Promise in Manifest V3 or later since Chrome 88.
|
|
11980
|
-
* @param tabId The ID of the tab to be discarded. If specified, the tab is discarded unless it is active or already discarded. If omitted, the browser discards the least important tab. This can fail if no discardable tabs exist
|
|
11983
|
+
* @param tabId The ID of the tab to be discarded. If specified, the tab is discarded unless it is active or already discarded. If omitted, the browser discards the least important tab. This can fail if no discardable tabs exist.
|
|
11981
11984
|
* @since Chrome 54
|
|
11982
11985
|
*/
|
|
11983
11986
|
function discard(tabId?: number): Promise<Tab | undefined>;
|
|
@@ -12352,7 +12355,7 @@ export namespace Browser {
|
|
|
12352
12355
|
voiceName?: string;
|
|
12353
12356
|
}
|
|
12354
12357
|
|
|
12355
|
-
/** @deprecated since Chrome 70. Gender is deprecated and is ignored
|
|
12358
|
+
/** @deprecated since Chrome 70. Gender is deprecated and is ignored. */
|
|
12356
12359
|
enum VoiceGender {
|
|
12357
12360
|
FEMALE = "female",
|
|
12358
12361
|
MALE = "male",
|
|
@@ -12819,7 +12822,7 @@ export namespace Browser {
|
|
|
12819
12822
|
/** Triggered when a configuration created by the extension is removed by the platform. */
|
|
12820
12823
|
const onConfigRemoved: events.Event<(id: string) => void>;
|
|
12821
12824
|
|
|
12822
|
-
|
|
12825
|
+
/** Triggered when a configuration is created by the platform for the extension. */
|
|
12823
12826
|
const onConfigCreated: events.Event<
|
|
12824
12827
|
(id: string, name: string, data: { [key: string]: unknown }) => void
|
|
12825
12828
|
>;
|
|
@@ -12905,7 +12908,7 @@ export namespace Browser {
|
|
|
12905
12908
|
interface GetRequest {
|
|
12906
12909
|
/** The `PublicKeyCredentialRequestOptions` passed to `navigator.credentials.get()`, serialized as a JSON string. The serialization format is compatible with [`PublicKeyCredential.parseRequestOptionsFromJSON()`](https://w3c.github.io/webauthn/#sctn-parseRequestOptionsFromJSON). */
|
|
12907
12910
|
requestDetailsJson: string;
|
|
12908
|
-
/**
|
|
12911
|
+
/** An opaque identifier for the request. */
|
|
12909
12912
|
requestId: number;
|
|
12910
12913
|
}
|
|
12911
12914
|
|
|
@@ -12937,7 +12940,7 @@ export namespace Browser {
|
|
|
12937
12940
|
*
|
|
12938
12941
|
* The attached extension must call `detach()` once the remote desktop session has ended in order to resume regular WebAuthn request processing. Extensions automatically become detached if they are unloaded.
|
|
12939
12942
|
*
|
|
12940
|
-
* Refer to the `onRemoteSessionStateChange` event for signaling a change of remote session attachment from a native application to
|
|
12943
|
+
* Refer to the `onRemoteSessionStateChange` event for signaling a change of remote session attachment from a native application to the (possibly suspended) extension.
|
|
12941
12944
|
*/
|
|
12942
12945
|
function attach(): Promise<string | undefined>;
|
|
12943
12946
|
function attach(callback: (error?: string | undefined) => void): void;
|
|
@@ -12959,7 +12962,7 @@ export namespace Browser {
|
|
|
12959
12962
|
*
|
|
12960
12963
|
* This method is typically called when the extension detects that a remote desktop session was terminated. Once this method returns, the extension ceases to be the active Web Authentication API request proxy.
|
|
12961
12964
|
*
|
|
12962
|
-
* Refer to the `onRemoteSessionStateChange` event for signaling a change of remote session attachment from a native application to
|
|
12965
|
+
* Refer to the `onRemoteSessionStateChange` event for signaling a change of remote session attachment from a native application to the (possibly suspended) extension.
|
|
12963
12966
|
*/
|
|
12964
12967
|
function detach(): Promise<string | undefined>;
|
|
12965
12968
|
function detach(callback: (error?: string | undefined) => void): void;
|
|
@@ -13056,7 +13059,7 @@ export namespace Browser {
|
|
|
13056
13059
|
);
|
|
13057
13060
|
|
|
13058
13061
|
interface GetFrameResultDetails {
|
|
13059
|
-
/** The URL currently associated with this frame, if the frame identified by the frameId existed at one point in the given tab. The fact that
|
|
13062
|
+
/** The URL currently associated with this frame, if the frame identified by the frameId existed at one point in the given tab. The fact that a URL is associated with a given frameId does not imply that the corresponding frame still exists. */
|
|
13060
13063
|
url: string;
|
|
13061
13064
|
/** A UUID of the document loaded. */
|
|
13062
13065
|
documentId: string;
|
|
@@ -13161,7 +13164,7 @@ export namespace Browser {
|
|
|
13161
13164
|
documentId: string;
|
|
13162
13165
|
/** Cause of the navigation. */
|
|
13163
13166
|
transitionType: `${TransitionType}`;
|
|
13164
|
-
/** A list of transition qualifiers
|
|
13167
|
+
/** A list of transition qualifiers. */
|
|
13165
13168
|
transitionQualifiers: `${TransitionQualifier}`[];
|
|
13166
13169
|
}
|
|
13167
13170
|
|
|
@@ -13212,7 +13215,7 @@ export namespace Browser {
|
|
|
13212
13215
|
/** Fired when a document, including the resources it refers to, is completely loaded and initialized. */
|
|
13213
13216
|
const onCompleted: WebNavigationEvent<(details: WebNavigationFramedCallbackDetails) => void>;
|
|
13214
13217
|
|
|
13215
|
-
|
|
13218
|
+
/** Fired when the frame's history was updated to a new URL. All future events for that frame will use the updated URL. */
|
|
13216
13219
|
const onHistoryStateUpdated: WebNavigationEvent<
|
|
13217
13220
|
(details: WebNavigationTransitionCallbackDetails) => void
|
|
13218
13221
|
>;
|
|
@@ -13222,7 +13225,7 @@ export namespace Browser {
|
|
|
13222
13225
|
(details: WebNavigationSourceCallbackDetails) => void
|
|
13223
13226
|
>;
|
|
13224
13227
|
|
|
13225
|
-
/** Fired when the contents of the tab is replaced by a different (usually previously pre-rendered) tab*/
|
|
13228
|
+
/** Fired when the contents of the tab is replaced by a different (usually previously pre-rendered) tab */
|
|
13226
13229
|
const onTabReplaced: events.Event<(details: WebNavigationReplacementCallbackDetails) => void>;
|
|
13227
13230
|
|
|
13228
13231
|
/** Fired when a navigation is about to occur. */
|
|
@@ -13515,7 +13518,7 @@ export namespace Browser {
|
|
|
13515
13518
|
* @since Chrome 43
|
|
13516
13519
|
*/
|
|
13517
13520
|
statusCode: number;
|
|
13518
|
-
/** HTTP status line of the response or the 'HTTP/0.9 200 OK' string for HTTP/0.9 responses (i.e., responses that lack a status line) or an empty string if there are no headers
|
|
13521
|
+
/** HTTP status line of the response or the 'HTTP/0.9 200 OK' string for HTTP/0.9 responses (i.e., responses that lack a status line) or an empty string if there are no headers. */
|
|
13519
13522
|
statusLine: string;
|
|
13520
13523
|
}
|
|
13521
13524
|
|
|
@@ -13530,7 +13533,7 @@ export namespace Browser {
|
|
|
13530
13533
|
responseHeaders?: HttpHeader[];
|
|
13531
13534
|
/** Standard HTTP status code returned by the server. */
|
|
13532
13535
|
statusCode: number;
|
|
13533
|
-
/** HTTP status line of the response or the 'HTTP/0.9 200 OK' string for HTTP/0.9 responses (i.e., responses that lack a status line) or an empty string if there are no headers
|
|
13536
|
+
/** HTTP status line of the response or the 'HTTP/0.9 200 OK' string for HTTP/0.9 responses (i.e., responses that lack a status line) or an empty string if there are no headers. */
|
|
13534
13537
|
statusLine: string;
|
|
13535
13538
|
}
|
|
13536
13539
|
|
|
@@ -13562,7 +13565,7 @@ export namespace Browser {
|
|
|
13562
13565
|
responseHeaders?: HttpHeader[];
|
|
13563
13566
|
/** Standard HTTP status code returned by the server. */
|
|
13564
13567
|
statusCode: number;
|
|
13565
|
-
/** HTTP status line of the response or the 'HTTP/0.9 200 OK' string for HTTP/0.9 responses (i.e., responses that lack a status line) or an empty string if there are no headers
|
|
13568
|
+
/** HTTP status line of the response or the 'HTTP/0.9 200 OK' string for HTTP/0.9 responses (i.e., responses that lack a status line) or an empty string if there are no headers. */
|
|
13566
13569
|
statusLine: string;
|
|
13567
13570
|
}
|
|
13568
13571
|
|
|
@@ -13585,7 +13588,7 @@ export namespace Browser {
|
|
|
13585
13588
|
securityInfo?: SecurityInfo;
|
|
13586
13589
|
/** Standard HTTP status code returned by the server. */
|
|
13587
13590
|
statusCode: number;
|
|
13588
|
-
/** HTTP status line of the response or the 'HTTP/0.9 200 OK' string for HTTP/0.9 responses (i.e., responses that lack a status line) or an empty string if there are no headers
|
|
13591
|
+
/** HTTP status line of the response or the 'HTTP/0.9 200 OK' string for HTTP/0.9 responses (i.e., responses that lack a status line) or an empty string if there are no headers. */
|
|
13589
13592
|
statusLine: string;
|
|
13590
13593
|
}
|
|
13591
13594
|
|
|
@@ -13616,9 +13619,9 @@ export namespace Browser {
|
|
|
13616
13619
|
|
|
13617
13620
|
const onActionIgnored: events.Event<
|
|
13618
13621
|
(details: {
|
|
13619
|
-
|
|
13622
|
+
/** The proposed action which was ignored. */
|
|
13620
13623
|
action: `${IgnoredActionType}`;
|
|
13621
|
-
|
|
13624
|
+
/** The ID of the request. Request IDs are unique within a browser session. As a result, they could be used to relate different events of the same request. */
|
|
13622
13625
|
requestId: string;
|
|
13623
13626
|
}) => void
|
|
13624
13627
|
>;
|
|
@@ -13663,7 +13666,6 @@ export namespace Browser {
|
|
|
13663
13666
|
) => BlockingResponse | undefined,
|
|
13664
13667
|
`${OnAuthRequiredOptions}`[]
|
|
13665
13668
|
>;
|
|
13666
|
-
// const onAuthRequired: WebAuthenticationChallengeEvent;
|
|
13667
13669
|
|
|
13668
13670
|
/** Fired when the first byte of the response body is received. For HTTP requests, this means that the status line and response headers are available. */
|
|
13669
13671
|
const onResponseStarted: WebRequestEvent<
|
|
@@ -14769,13 +14771,13 @@ export namespace Browser {
|
|
|
14769
14771
|
/** @since Chrome 141 */
|
|
14770
14772
|
type CloseOptions =
|
|
14771
14773
|
| {
|
|
14772
|
-
/** The tab in which to close the side panel. If a tab-specific side panel is open in the specified tab, it will be closed for that tab. At least one of this or `windowId` must be provided.
|
|
14774
|
+
/** The tab in which to close the side panel. If a tab-specific side panel is open in the specified tab, it will be closed for that tab. At least one of this or `windowId` must be provided. */
|
|
14773
14775
|
tabId: number;
|
|
14774
14776
|
/** The window in which to close the side panel. If a global side panel is open in the specified window, it will be closed for all tabs in that window where no tab-specific panel is active. At least one of this or `tabId` must be provided. */
|
|
14775
14777
|
windowId?: number | undefined;
|
|
14776
14778
|
}
|
|
14777
14779
|
| {
|
|
14778
|
-
/** The tab in which to close the side panel. If a tab-specific side panel is open in the specified tab, it will be closed for that tab. At least one of this or `windowId` must be provided.
|
|
14780
|
+
/** The tab in which to close the side panel. If a tab-specific side panel is open in the specified tab, it will be closed for that tab. At least one of this or `windowId` must be provided. */
|
|
14779
14781
|
tabId?: number | undefined;
|
|
14780
14782
|
/** The window in which to close the side panel. If a global side panel is open in the specified window, it will be closed for all tabs in that window where no tab-specific panel is active. At least one of this or `tabId` must be provided. */
|
|
14781
14783
|
windowId: number;
|
|
@@ -14795,7 +14797,7 @@ export namespace Browser {
|
|
|
14795
14797
|
/**
|
|
14796
14798
|
* The tab in which to open the side panel.
|
|
14797
14799
|
* If the corresponding tab has a tab-specific side panel, the panel will only be open for that tab.
|
|
14798
|
-
* If there is not a tab-specific panel, the global panel will be open in the specified tab and any other tabs without a currently-open tab-
|
|
14800
|
+
* If there is not a tab-specific panel, the global panel will be open in the specified tab and any other tabs without a currently-open tab-specific panel.
|
|
14799
14801
|
* This will override any currently-active side panel (global or tab-specific) in the corresponding tab.
|
|
14800
14802
|
* At least one of this and `windowId` must be provided. */
|
|
14801
14803
|
tabId?: number | undefined;
|
|
@@ -14987,7 +14989,7 @@ export namespace Browser {
|
|
|
14987
14989
|
interface WorldProperties {
|
|
14988
14990
|
/** Specifies the world csp. The default is the `ISOLATED` world csp. */
|
|
14989
14991
|
csp?: string | undefined;
|
|
14990
|
-
/** Specifies whether messaging APIs are exposed. The default is `false
|
|
14992
|
+
/** Specifies whether messaging APIs are exposed. The default is `false`. */
|
|
14991
14993
|
messaging?: boolean | undefined;
|
|
14992
14994
|
/**
|
|
14993
14995
|
* Specifies the ID of the specific user script world to update. If not provided, updates the properties of the default user script world. Values with leading underscores (`_`) are reserved.
|
|
@@ -15001,7 +15003,7 @@ export namespace Browser {
|
|
|
15001
15003
|
ids?: string[] | undefined;
|
|
15002
15004
|
}
|
|
15003
15005
|
|
|
15004
|
-
|
|
15006
|
+
/** @since Chrome 135 */
|
|
15005
15007
|
type InjectionTarget =
|
|
15006
15008
|
& {
|
|
15007
15009
|
/** The ID of the tab into which to inject. */
|
|
@@ -15039,13 +15041,13 @@ export namespace Browser {
|
|
|
15039
15041
|
allFrames?: boolean | undefined;
|
|
15040
15042
|
/** Specifies wildcard patterns for pages this user script will NOT be injected into. */
|
|
15041
15043
|
excludeGlobs?: string[] | undefined;
|
|
15042
|
-
/**Excludes pages that this user script would otherwise be injected into. See Match Patterns for more details on the syntax of these strings. */
|
|
15044
|
+
/** Excludes pages that this user script would otherwise be injected into. See Match Patterns for more details on the syntax of these strings. */
|
|
15043
15045
|
excludeMatches?: string[] | undefined;
|
|
15044
15046
|
/** The ID of the user script specified in the API call. This property must not start with a '_' as it's reserved as a prefix for generated script IDs. */
|
|
15045
15047
|
id: string;
|
|
15046
15048
|
/** Specifies wildcard patterns for pages this user script will be injected into. */
|
|
15047
15049
|
includeGlobs?: string[] | undefined;
|
|
15048
|
-
/** The list of ScriptSource objects defining sources of scripts to be injected into matching pages. This property must be specified for {@link register}, and when specified it must be a non-empty array
|
|
15050
|
+
/** The list of ScriptSource objects defining sources of scripts to be injected into matching pages. This property must be specified for {@link register}, and when specified it must be a non-empty array. */
|
|
15049
15051
|
js?: ScriptSource[] | undefined;
|
|
15050
15052
|
/** Specifies which pages this user script will be injected into. See Match Patterns for more details on the syntax of these strings. This property must be specified for {@link register}. */
|
|
15051
15053
|
matches?: string[] | undefined;
|