devtools-protocol 0.0.1754134 → 0.0.1756183
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/json/browser_protocol.json +11 -3
- package/package.json +1 -1
- package/pdl/domains/Browser.pdl +7 -1
- package/pdl/domains/Network.pdl +3 -0
- package/pdl/domains/Preload.pdl +1 -0
- package/types/protocol-mapping.d.ts +4 -1
- package/types/protocol-proxy-api.d.ts +4 -1
- package/types/protocol-tests-proxy-api.d.ts +4 -1
- package/types/protocol.d.ts +10 -1
|
@@ -4117,12 +4117,12 @@
|
|
|
4117
4117
|
},
|
|
4118
4118
|
{
|
|
4119
4119
|
"name": "addMockCamera",
|
|
4120
|
-
"description": "Adds
|
|
4120
|
+
"description": "Adds a mock camera in the shared video capture device list for\ntest automation. The mock camera is not scoped to a particular page or\nframe and is removed when the DevTools session that created it disconnects.\nReturns success after the video capture service confirms registration.\nDoes not wait for device-list updates or devicechange events in pages.\nRegistration failures are reported as errors.",
|
|
4121
4121
|
"experimental": true,
|
|
4122
4122
|
"parameters": [
|
|
4123
4123
|
{
|
|
4124
4124
|
"name": "deviceId",
|
|
4125
|
-
"description": "Required non-empty identifier for the mock camera within the current\nDevTools session. Different sessions can use the same identifier\nwithout replacing each other's cameras. This is not the\nMediaDeviceInfo.deviceId exposed to the page.",
|
|
4125
|
+
"description": "Required non-empty identifier for the mock camera within the current\nDevTools session. Different sessions can use the same identifier\nwithout replacing each other's cameras. This is not the\nMediaDeviceInfo.deviceId exposed to the page.\nAn identifier that is already registered or being registered in this\nsession is rejected. The existing camera or registration attempt is\nleft unchanged, including any active streams.",
|
|
4126
4126
|
"type": "string"
|
|
4127
4127
|
}
|
|
4128
4128
|
]
|
|
@@ -16335,6 +16335,13 @@
|
|
|
16335
16335
|
"experimental": true,
|
|
16336
16336
|
"optional": true,
|
|
16337
16337
|
"type": "boolean"
|
|
16338
|
+
},
|
|
16339
|
+
{
|
|
16340
|
+
"name": "adProvenance",
|
|
16341
|
+
"description": "The provenance of an ad resource request, if it is ad-related and\nprovenance is available.",
|
|
16342
|
+
"experimental": true,
|
|
16343
|
+
"optional": true,
|
|
16344
|
+
"$ref": "AdProvenance"
|
|
16338
16345
|
}
|
|
16339
16346
|
]
|
|
16340
16347
|
},
|
|
@@ -26166,7 +26173,8 @@
|
|
|
26166
26173
|
"FormSubmitWhenPrerendering",
|
|
26167
26174
|
"CrossDocumentRestart",
|
|
26168
26175
|
"PrefetchFailedCrossOriginSubframe",
|
|
26169
|
-
"UnexpectedMainFrameNavigation"
|
|
26176
|
+
"UnexpectedMainFrameNavigation",
|
|
26177
|
+
"AudioOutput"
|
|
26170
26178
|
]
|
|
26171
26179
|
},
|
|
26172
26180
|
{
|
package/package.json
CHANGED
package/pdl/domains/Browser.pdl
CHANGED
|
@@ -224,15 +224,21 @@ domain Browser
|
|
|
224
224
|
# Commandline parameters
|
|
225
225
|
array of string arguments
|
|
226
226
|
|
|
227
|
-
# Adds
|
|
227
|
+
# Adds a mock camera in the shared video capture device list for
|
|
228
228
|
# test automation. The mock camera is not scoped to a particular page or
|
|
229
229
|
# frame and is removed when the DevTools session that created it disconnects.
|
|
230
|
+
# Returns success after the video capture service confirms registration.
|
|
231
|
+
# Does not wait for device-list updates or devicechange events in pages.
|
|
232
|
+
# Registration failures are reported as errors.
|
|
230
233
|
experimental command addMockCamera
|
|
231
234
|
parameters
|
|
232
235
|
# Required non-empty identifier for the mock camera within the current
|
|
233
236
|
# DevTools session. Different sessions can use the same identifier
|
|
234
237
|
# without replacing each other's cameras. This is not the
|
|
235
238
|
# MediaDeviceInfo.deviceId exposed to the page.
|
|
239
|
+
# An identifier that is already registered or being registered in this
|
|
240
|
+
# session is rejected. The existing camera or registration attempt is
|
|
241
|
+
# left unchanged, including any active streams.
|
|
236
242
|
string deviceId
|
|
237
243
|
|
|
238
244
|
# Chrome histogram bucket.
|
package/pdl/domains/Network.pdl
CHANGED
|
@@ -220,6 +220,9 @@ domain Network
|
|
|
220
220
|
experimental optional boolean isSameSite
|
|
221
221
|
# True when the resource request is ad-related.
|
|
222
222
|
experimental optional boolean isAdRelated
|
|
223
|
+
# The provenance of an ad resource request, if it is ad-related and
|
|
224
|
+
# provenance is available.
|
|
225
|
+
experimental optional AdProvenance adProvenance
|
|
223
226
|
|
|
224
227
|
# Details of a signed certificate timestamp (SCT).
|
|
225
228
|
type SignedCertificateTimestamp extends object
|
package/pdl/domains/Preload.pdl
CHANGED
|
@@ -2139,9 +2139,12 @@ export namespace ProtocolMapping {
|
|
|
2139
2139
|
returnType: Protocol.Browser.GetBrowserCommandLineResponse;
|
|
2140
2140
|
};
|
|
2141
2141
|
/**
|
|
2142
|
-
* Adds
|
|
2142
|
+
* Adds a mock camera in the shared video capture device list for
|
|
2143
2143
|
* test automation. The mock camera is not scoped to a particular page or
|
|
2144
2144
|
* frame and is removed when the DevTools session that created it disconnects.
|
|
2145
|
+
* Returns success after the video capture service confirms registration.
|
|
2146
|
+
* Does not wait for device-list updates or devicechange events in pages.
|
|
2147
|
+
* Registration failures are reported as errors.
|
|
2145
2148
|
* @experimental
|
|
2146
2149
|
*/
|
|
2147
2150
|
'Browser.addMockCamera': {
|
|
@@ -1127,9 +1127,12 @@ export namespace ProtocolProxyApi {
|
|
|
1127
1127
|
getBrowserCommandLine(): Promise<Protocol.Browser.GetBrowserCommandLineResponse>;
|
|
1128
1128
|
|
|
1129
1129
|
/**
|
|
1130
|
-
* Adds
|
|
1130
|
+
* Adds a mock camera in the shared video capture device list for
|
|
1131
1131
|
* test automation. The mock camera is not scoped to a particular page or
|
|
1132
1132
|
* frame and is removed when the DevTools session that created it disconnects.
|
|
1133
|
+
* Returns success after the video capture service confirms registration.
|
|
1134
|
+
* Does not wait for device-list updates or devicechange events in pages.
|
|
1135
|
+
* Registration failures are reported as errors.
|
|
1133
1136
|
* @experimental
|
|
1134
1137
|
*/
|
|
1135
1138
|
addMockCamera(params: Protocol.Browser.AddMockCameraRequest): Promise<void>;
|
|
@@ -1197,9 +1197,12 @@ export namespace ProtocolTestsProxyApi {
|
|
|
1197
1197
|
getBrowserCommandLine(): Promise<{id: number, result: Protocol.Browser.GetBrowserCommandLineResponse, sessionId: string}>;
|
|
1198
1198
|
|
|
1199
1199
|
/**
|
|
1200
|
-
* Adds
|
|
1200
|
+
* Adds a mock camera in the shared video capture device list for
|
|
1201
1201
|
* test automation. The mock camera is not scoped to a particular page or
|
|
1202
1202
|
* frame and is removed when the DevTools session that created it disconnects.
|
|
1203
|
+
* Returns success after the video capture service confirms registration.
|
|
1204
|
+
* Does not wait for device-list updates or devicechange events in pages.
|
|
1205
|
+
* Registration failures are reported as errors.
|
|
1203
1206
|
* @experimental
|
|
1204
1207
|
*/
|
|
1205
1208
|
addMockCamera(params: Protocol.Browser.AddMockCameraRequest): Promise<{id: number, result: void, sessionId: string}>;
|
package/types/protocol.d.ts
CHANGED
|
@@ -4986,6 +4986,9 @@ export namespace Protocol {
|
|
|
4986
4986
|
* DevTools session. Different sessions can use the same identifier
|
|
4987
4987
|
* without replacing each other's cameras. This is not the
|
|
4988
4988
|
* MediaDeviceInfo.deviceId exposed to the page.
|
|
4989
|
+
* An identifier that is already registered or being registered in this
|
|
4990
|
+
* session is rejected. The existing camera or registration attempt is
|
|
4991
|
+
* left unchanged, including any active streams.
|
|
4989
4992
|
*/
|
|
4990
4993
|
deviceId: string;
|
|
4991
4994
|
}
|
|
@@ -13009,6 +13012,12 @@ export namespace Protocol {
|
|
|
13009
13012
|
* @experimental
|
|
13010
13013
|
*/
|
|
13011
13014
|
isAdRelated?: boolean;
|
|
13015
|
+
/**
|
|
13016
|
+
* The provenance of an ad resource request, if it is ad-related and
|
|
13017
|
+
* provenance is available.
|
|
13018
|
+
* @experimental
|
|
13019
|
+
*/
|
|
13020
|
+
adProvenance?: AdProvenance;
|
|
13012
13021
|
}
|
|
13013
13022
|
|
|
13014
13023
|
/**
|
|
@@ -19403,7 +19412,7 @@ export namespace Protocol {
|
|
|
19403
19412
|
/**
|
|
19404
19413
|
* List of FinalStatus reasons for Prerender2.
|
|
19405
19414
|
*/
|
|
19406
|
-
export type PrerenderFinalStatus = ('Activated' | 'Destroyed' | 'LowEndDevice' | 'InvalidSchemeRedirect' | 'InvalidSchemeNavigation' | 'NavigationRequestBlockedByCsp' | 'MojoBinderPolicy' | 'RendererProcessCrashed' | 'RendererProcessKilled' | 'Download' | 'TriggerDestroyed' | 'NavigationNotCommitted' | 'NavigationBadHttpStatus' | 'ClientCertRequested' | 'NavigationRequestNetworkError' | 'CancelAllHostsForTesting' | 'DidFailLoad' | 'Stop' | 'SslCertificateError' | 'LoginAuthRequested' | 'UaChangeRequiresReload' | 'BlockedByClient' | 'AudioOutputDeviceRequested' | 'MixedContent' | 'TriggerBackgrounded' | 'MemoryLimitExceeded' | 'DataSaverEnabled' | 'TriggerUrlHasEffectiveUrl' | 'ActivatedBeforeStarted' | 'InactivePageRestriction' | 'StartFailed' | 'TimeoutBackgrounded' | 'CrossSiteRedirectInInitialNavigation' | 'CrossSiteNavigationInInitialNavigation' | 'SameSiteCrossOriginRedirectNotOptInInInitialNavigation' | 'SameSiteCrossOriginNavigationNotOptInInInitialNavigation' | 'ActivationNavigationParameterMismatch' | 'ActivatedInBackground' | 'EmbedderHostDisallowed' | 'ActivationNavigationDestroyedBeforeSuccess' | 'TabClosedByUserGesture' | 'TabClosedWithoutUserGesture' | 'PrimaryMainFrameRendererProcessCrashed' | 'PrimaryMainFrameRendererProcessKilled' | 'ActivationFramePolicyNotCompatible' | 'PreloadingDisabled' | 'BatterySaverEnabled' | 'ActivatedDuringMainFrameNavigation' | 'PreloadingUnsupportedByWebContents' | 'CrossSiteRedirectInMainFrameNavigation' | 'CrossSiteNavigationInMainFrameNavigation' | 'SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation' | 'SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation' | 'MemoryPressureOnTrigger' | 'MemoryPressureAfterTriggered' | 'PrerenderingDisabledByDevTools' | 'SpeculationRuleRemoved' | 'ActivatedWithAuxiliaryBrowsingContexts' | 'MaxNumOfRunningEagerPrerendersExceeded' | 'MaxNumOfRunningNonEagerPrerendersExceeded' | 'MaxNumOfRunningEmbedderPrerendersExceeded' | 'PrerenderingUrlHasEffectiveUrl' | 'RedirectedPrerenderingUrlHasEffectiveUrl' | 'ActivationUrlHasEffectiveUrl' | 'JavaScriptInterfaceAdded' | 'JavaScriptInterfaceRemoved' | 'AllPrerenderingCanceled' | 'WindowClosed' | 'SlowNetwork' | 'OtherPrerenderedPageActivated' | 'V8OptimizerDisabled' | 'PrerenderFailedDuringPrefetch' | 'BrowsingDataRemoved' | 'PrerenderHostReused' | 'FormSubmitWhenPrerendering' | 'CrossDocumentRestart' | 'PrefetchFailedCrossOriginSubframe' | 'UnexpectedMainFrameNavigation');
|
|
19415
|
+
export type PrerenderFinalStatus = ('Activated' | 'Destroyed' | 'LowEndDevice' | 'InvalidSchemeRedirect' | 'InvalidSchemeNavigation' | 'NavigationRequestBlockedByCsp' | 'MojoBinderPolicy' | 'RendererProcessCrashed' | 'RendererProcessKilled' | 'Download' | 'TriggerDestroyed' | 'NavigationNotCommitted' | 'NavigationBadHttpStatus' | 'ClientCertRequested' | 'NavigationRequestNetworkError' | 'CancelAllHostsForTesting' | 'DidFailLoad' | 'Stop' | 'SslCertificateError' | 'LoginAuthRequested' | 'UaChangeRequiresReload' | 'BlockedByClient' | 'AudioOutputDeviceRequested' | 'MixedContent' | 'TriggerBackgrounded' | 'MemoryLimitExceeded' | 'DataSaverEnabled' | 'TriggerUrlHasEffectiveUrl' | 'ActivatedBeforeStarted' | 'InactivePageRestriction' | 'StartFailed' | 'TimeoutBackgrounded' | 'CrossSiteRedirectInInitialNavigation' | 'CrossSiteNavigationInInitialNavigation' | 'SameSiteCrossOriginRedirectNotOptInInInitialNavigation' | 'SameSiteCrossOriginNavigationNotOptInInInitialNavigation' | 'ActivationNavigationParameterMismatch' | 'ActivatedInBackground' | 'EmbedderHostDisallowed' | 'ActivationNavigationDestroyedBeforeSuccess' | 'TabClosedByUserGesture' | 'TabClosedWithoutUserGesture' | 'PrimaryMainFrameRendererProcessCrashed' | 'PrimaryMainFrameRendererProcessKilled' | 'ActivationFramePolicyNotCompatible' | 'PreloadingDisabled' | 'BatterySaverEnabled' | 'ActivatedDuringMainFrameNavigation' | 'PreloadingUnsupportedByWebContents' | 'CrossSiteRedirectInMainFrameNavigation' | 'CrossSiteNavigationInMainFrameNavigation' | 'SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation' | 'SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation' | 'MemoryPressureOnTrigger' | 'MemoryPressureAfterTriggered' | 'PrerenderingDisabledByDevTools' | 'SpeculationRuleRemoved' | 'ActivatedWithAuxiliaryBrowsingContexts' | 'MaxNumOfRunningEagerPrerendersExceeded' | 'MaxNumOfRunningNonEagerPrerendersExceeded' | 'MaxNumOfRunningEmbedderPrerendersExceeded' | 'PrerenderingUrlHasEffectiveUrl' | 'RedirectedPrerenderingUrlHasEffectiveUrl' | 'ActivationUrlHasEffectiveUrl' | 'JavaScriptInterfaceAdded' | 'JavaScriptInterfaceRemoved' | 'AllPrerenderingCanceled' | 'WindowClosed' | 'SlowNetwork' | 'OtherPrerenderedPageActivated' | 'V8OptimizerDisabled' | 'PrerenderFailedDuringPrefetch' | 'BrowsingDataRemoved' | 'PrerenderHostReused' | 'FormSubmitWhenPrerendering' | 'CrossDocumentRestart' | 'PrefetchFailedCrossOriginSubframe' | 'UnexpectedMainFrameNavigation' | 'AudioOutput');
|
|
19407
19416
|
|
|
19408
19417
|
/**
|
|
19409
19418
|
* Preloading status values, see also PreloadingTriggeringOutcome. This
|