From 384e5d96d3fe57d6cb1dd2a23b3f195b630727b2 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Thu, 29 Apr 2021 11:46:50 -0700 Subject: [PATCH] Update protocol.d.ts --- types/protocol.d.ts | 41 ++++++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/types/protocol.d.ts b/types/protocol.d.ts index a2a1593008e519..77c2cd3c5306a7 100644 --- a/types/protocol.d.ts +++ b/types/protocol.d.ts @@ -811,7 +811,7 @@ some CSP errors in the future. export type SharedArrayBufferIssueType = "TransferIssue"|"CreationIssue"; /** * Details for a issue arising from an SAB being instantiated in, or -transfered to a context that is not cross-origin isolated. +transferred to a context that is not cross-origin isolated. */ export interface SharedArrayBufferIssueDetails { sourceCodeLocation: SourceCodeLocation; @@ -858,7 +858,7 @@ CORS RFC1918 enforcement. resourceIPAddressSpace?: Network.IPAddressSpace; clientSecurityState?: Network.ClientSecurityState; } - export type AttributionReportingIssueType = "PermissionPolicyDisabled"|"InvalidAttributionData"; + export type AttributionReportingIssueType = "PermissionPolicyDisabled"|"InvalidAttributionData"|"AttributionSourceUntrustworthyOrigin"; /** * Details for issues around "Attribution Reporting API" usage. Explainer: https://github.com/WICG/conversion-measurement-api @@ -1284,7 +1284,7 @@ their dowmload guids. */ browserContextId?: BrowserContextID; /** - * The default path to save downloaded files to. This is requred if behavior is set to 'allow' + * The default path to save downloaded files to. This is required if behavior is set to 'allow' or 'allowAndName'. */ downloadPath?: string; @@ -3004,11 +3004,11 @@ The property is always undefined now. nodeId: NodeId; } /** - * Called when distrubution is changed. + * Called when distribution is changed. */ export type distributedNodesUpdatedPayload = { /** - * Insertion point where distrubuted nodes were updated. + * Insertion point where distributed nodes were updated. */ insertionPointId: NodeId; /** @@ -4908,14 +4908,14 @@ Missing optional values will be filled in by the target with what it would norma result: boolean; } /** - * Clears the overriden device metrics. + * Clears the overridden device metrics. */ export type clearDeviceMetricsOverrideParameters = { } export type clearDeviceMetricsOverrideReturnValue = { } /** - * Clears the overriden Geolocation Position and Error. + * Clears the overridden Geolocation Position and Error. */ export type clearGeolocationOverrideParameters = { } @@ -5193,7 +5193,7 @@ Note any previous deferred policy change is superseded. */ waitForNavigation?: boolean; /** - * If set, base::Time::Now will be overriden to initially return this value. + * If set, base::Time::Now will be overridden to initially return this value. */ initialVirtualTime?: Network.TimeSinceEpoch; } @@ -5369,7 +5369,7 @@ display. Reported for diagnostic uses, may be removed in the future. */ export module IO { /** - * This is either obtained from another method or specifed as `blob:<uuid>` where + * This is either obtained from another method or specified as `blob:<uuid>` where `<uuid>` is an UUID of a Blob. */ export type StreamHandle = string; @@ -5414,7 +5414,7 @@ following the last read). Some types of streams may only support sequential read */ data: string; /** - * Set if the end-of-file condition occured while reading. + * Set if the end-of-file condition occurred while reading. */ eof: boolean; } @@ -7583,7 +7583,7 @@ backslash. Omitting is equivalent to "*". */ resourceType?: ResourceType; /** - * Stage at wich to begin intercepting requests. Default is Request. + * Stage at which to begin intercepting requests. Default is Request. */ interceptionStage?: InterceptionStage; } @@ -10429,7 +10429,7 @@ iframes, shadow DOM, external resources, and element-inline styles. data: string; } /** - * Clears the overriden device metrics. + * Clears the overridden device metrics. */ export type clearDeviceMetricsOverrideParameters = { } @@ -10443,7 +10443,7 @@ iframes, shadow DOM, external resources, and element-inline styles. export type clearDeviceOrientationOverrideReturnValue = { } /** - * Clears the overriden Geolocation Position and Error. + * Clears the overridden Geolocation Position and Error. */ export type clearGeolocationOverrideParameters = { } @@ -11024,7 +11024,7 @@ available (otherwise deny). */ behavior: "deny"|"allow"|"default"; /** - * The default path to save downloaded files to. This is requred if behavior is set to 'allow' + * The default path to save downloaded files to. This is required if behavior is set to 'allow' */ downloadPath?: string; } @@ -11992,7 +11992,7 @@ Tokens from that issuer. origin: string; /** * The quota size (in bytes) to override the original quota with. -If this is called multiple times, the overriden quota will be equal to +If this is called multiple times, the overridden quota will be equal to the quotaSize provided in the final call. If this is called without specifying a quotaSize, the quota will be reset to the default value for the specified origin. If this is called multiple times with different @@ -12930,7 +12930,7 @@ backslash. Omitting is equivalent to "*". */ resourceType?: Network.ResourceType; /** - * Stage at wich to begin intercepting requests. Default is Request. + * Stage at which to begin intercepting requests. Default is Request. */ requestStage?: RequestStage; } @@ -13264,7 +13264,7 @@ https://webaudio.github.io/web-audio-api/ */ currentTime: number; /** - * The time spent on rendering graph divided by render qunatum duration, + * The time spent on rendering graph divided by render quantum duration, and multiplied by 100. 100 means the audio renderer reached the full capacity and glitch may occur. */ @@ -13721,8 +13721,8 @@ congestion. If batched, events must ALWAYS be in chronological order. errors: PlayerError[]; } /** - * Called whenever a player is created, or when a new agent joins and recieves -a list of active players. If an agent is restored, it will recieve the full + * Called whenever a player is created, or when a new agent joins and receives +a list of active players. If an agent is restored, it will receive the full list of player ids and all events again. */ export type playersCreatedPayload = { @@ -16244,6 +16244,9 @@ Each binding function call produces Runtime.bindingCalled notification. execution context. If omitted and `executionContextName` is not set, the binding is exposed to all execution contexts of the target. This parameter is mutually exclusive with `executionContextName`. +Deprecated in favor of `executionContextName` due to an unclear use case +and bugs in implementation (crbug.com/1169639). `executionContextId` will be +removed in the future. */ executionContextId?: ExecutionContextId; /**