Skip to content

Commit 0675773

Browse files
authored
🤖 Merge PR DefinitelyTyped#74652 [chrome] update typos by @erwanjugand
1 parent e486933 commit 0675773

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

types/chrome/index.d.ts

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4074,14 +4074,17 @@ declare namespace chrome {
40744074
id: string;
40754075
/**
40764076
* Implements the WebCrypto's SubtleCrypto interface. The cryptographic operations, including key generation, are hardware-backed.
4077-
* Only non-extractable keys can be generated. The supported key types are RSASSA-PKCS1-V1_5 and RSA-OAEP (on Chrome versions 134+) with `modulusLength` up to 2048 and ECDSA with `namedCurve` P-256. Each RSASSA-PKCS1-V1_5 and ECDSA key can be used for signing data at most once, unless the extension is allowlisted through the KeyPermissions policy, in which case the key can be used indefinitely. RSA-OAEP keys are supported since Chrome version 134 and can be used by extensions allowlisted through that same policy to unwrap other keys.
4077+
*
4078+
* Only non-extractable keys can be generated. The supported key types are RSASSA-PKCS1-V1_5 with `modulusLength` up to 2048 and ECDSA with `namedCurve` P-256. Each key can be used for signing data at most once, unless the extension is allowlisted by the KeyPermissions policy, in which case the key can be used indefinitely.
4079+
*
40784080
* Keys generated on a specific `Token` cannot be used with any other Tokens, nor can they be used with `window.crypto.subtle`. Equally, `Key` objects created with `window.crypto.subtle` cannot be used with this interface.
40794081
*/
40804082
subtleCrypto: SubtleCrypto;
40814083
/**
4082-
* Implements the WebCrypto's SubtleCrypto interface. The cryptographic operations, including key generation, are software-backed.
4083-
* Protection of the keys, and thus implementation of the non-extractable property, is done in software, so the keys are less protected than hardware-backed keys.
4084-
* Only non-extractable keys can be generated. The supported key types are RSASSA-PKCS1-V1_5 and RSA-OAEP (on Chrome versions 134+) with `modulusLength` up to 2048. Each RSASSA-PKCS1-V1_5 key can be used for signing data at most once, unless the extension is allowlisted through the KeyPermissions policy, in which case the key can be used indefinitely. RSA-OAEP keys are supported since Chrome version 134 and can be used by extensions allowlisted through that same policy to unwrap other keys.
4084+
* Implements the WebCrypto's SubtleCrypto interface. The cryptographic operations, including key generation, are software-backed. Protection of the keys, and thus implementation of the non-extractable property, is done in software, so the keys are less protected than hardware-backed keys.
4085+
*
4086+
* Only non-extractable keys can be generated. The only supported key type is RSASSA-PKCS1-V1_5 with `modulusLength` up to 2048. up to 2048. Each key can be used for signing data at most once, unless the extension is allowlisted through the KeyPermissions policy, in which case the key can be used indefinitely.
4087+
*
40854088
* Keys generated on a specific `Token` cannot be used with any other Tokens, nor can they be used with `window.crypto.subtle`. Equally, `Key` objects created with `window.crypto.subtle` cannot be used with this interface.
40864089
* @since Chrome 97
40874090
*/
@@ -9690,7 +9693,7 @@ declare namespace chrome {
96909693
/** Sent after onSuspend to indicate that the app won't be unloaded after all. */
96919694
export const onSuspendCanceled: events.Event<() => void>;
96929695

9693-
/** Fired when a message is sent from either an extension process (by {@link runtime.sendMessage}) or a content script (by {@link tabs.sendMessage}). */
9696+
/** Fired when a message is sent from either {@link runtime.sendMessage} or {@link tabs.sendMessage}. */
96949697
export const onMessage: events.Event<
96959698
(message: any, sender: MessageSender, sendResponse: (response?: any) => void) => void
96969699
>;
@@ -11056,7 +11059,7 @@ declare namespace chrome {
1105611059
sessionId?: string | undefined;
1105711060
/**
1105811061
* The ID of the Split View that the tab belongs to.
11059-
* @since Chrome 145
11062+
* @since Chrome 140
1106011063
*/
1106111064
splitViewId?: number | undefined;
1106211065
/**
@@ -11132,7 +11135,7 @@ declare namespace chrome {
1113211135

1113311136
/**
1113411137
* An ID that represents the absence of a split tab.
11135-
* @since Chrome 145
11138+
* @since Chrome 140
1113611139
*/
1113711140
export const SPLIT_VIEW_ID_NONE: -1;
1113811141

@@ -11579,7 +11582,7 @@ declare namespace chrome {
1157911582
export function duplicate(tabId: number, callback: (tab?: Tab) => void): void;
1158011583

1158111584
/**
11582-
* Sends a single message to the content script(s) in the specified tab, with an optional callback to run when a response is sent back. The {@link runtime.onMessage} event is fired in each content script running in the specified tab for the current extension.
11585+
* Sends a single message to the content script(s) in the specified tab. The {@link runtime.onMessage} event is fired in each content script running in the specified tab for the current extension.
1158311586
*
1158411587
* Can return its result via Promise in Manifest V3 or later since Chrome 99.
1158511588
*/

0 commit comments

Comments
 (0)