devtools-protocol 0.0.1170333 → 0.0.1172767
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.
@@ -22290,7 +22290,7 @@
|
|
22290
22290
|
},
|
22291
22291
|
{
|
22292
22292
|
"name": "getResponseBody",
|
22293
|
-
"description": "Causes the body of the response to be received from the server and\nreturned as a single string. May only be issued for a request that\nis paused in the Response stage and is mutually exclusive with\ntakeResponseBodyForInterceptionAsStream. Calling other methods that\naffect the request or disabling fetch domain before body is received\nresults in an undefined behavior.",
|
22293
|
+
"description": "Causes the body of the response to be received from the server and\nreturned as a single string. May only be issued for a request that\nis paused in the Response stage and is mutually exclusive with\ntakeResponseBodyForInterceptionAsStream. Calling other methods that\naffect the request or disabling fetch domain before body is received\nresults in an undefined behavior.\nNote that the response body is not available for redirects. Requests\npaused in the _redirect received_ state may be differentiated by\n`responseCode` and presence of `location` response header, see\ncomments to `requestPaused` for details.",
|
22294
22294
|
"parameters": [
|
22295
22295
|
{
|
22296
22296
|
"name": "requestId",
|
@@ -22331,7 +22331,7 @@
|
|
22331
22331
|
"events": [
|
22332
22332
|
{
|
22333
22333
|
"name": "requestPaused",
|
22334
|
-
"description": "Issued when the domain is enabled and the request URL matches the\nspecified filter. The request is paused until the client responds\nwith one of continueRequest, failRequest or fulfillRequest.\nThe stage of the request can be determined by presence of responseErrorReason\nand responseStatusCode -- the request is at the response stage if either\nof these fields is present and in the request stage otherwise.",
|
22334
|
+
"description": "Issued when the domain is enabled and the request URL matches the\nspecified filter. The request is paused until the client responds\nwith one of continueRequest, failRequest or fulfillRequest.\nThe stage of the request can be determined by presence of responseErrorReason\nand responseStatusCode -- the request is at the response stage if either\nof these fields is present and in the request stage otherwise.\nRedirect responses and subsequent requests are reported similarly to regular\nresponses and requests. Redirect responses may be distinguished by the value\nof `responseStatusCode` (which is one of 301, 302, 303, 307, 308) along with\npresence of the `location` header. Requests resulting from a redirect will\nhave `redirectedRequestId` field set.",
|
22335
22335
|
"parameters": [
|
22336
22336
|
{
|
22337
22337
|
"name": "requestId",
|
@@ -23746,7 +23746,8 @@
|
|
23746
23746
|
"MemoryPressureAfterTriggered",
|
23747
23747
|
"PrerenderingDisabledByDevTools",
|
23748
23748
|
"ResourceLoadBlockedByClient",
|
23749
|
-
"SpeculationRuleRemoved"
|
23749
|
+
"SpeculationRuleRemoved",
|
23750
|
+
"ActivatedWithAuxiliaryBrowsingContexts"
|
23750
23751
|
]
|
23751
23752
|
},
|
23752
23753
|
{
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -10485,6 +10485,10 @@ domain Fetch
|
|
10485
10485
|
# takeResponseBodyForInterceptionAsStream. Calling other methods that
|
10486
10486
|
# affect the request or disabling fetch domain before body is received
|
10487
10487
|
# results in an undefined behavior.
|
10488
|
+
# Note that the response body is not available for redirects. Requests
|
10489
|
+
# paused in the _redirect received_ state may be differentiated by
|
10490
|
+
# `responseCode` and presence of `location` response header, see
|
10491
|
+
# comments to `requestPaused` for details.
|
10488
10492
|
command getResponseBody
|
10489
10493
|
parameters
|
10490
10494
|
# Identifier for the intercepted request to get body for.
|
@@ -10517,6 +10521,11 @@ domain Fetch
|
|
10517
10521
|
# The stage of the request can be determined by presence of responseErrorReason
|
10518
10522
|
# and responseStatusCode -- the request is at the response stage if either
|
10519
10523
|
# of these fields is present and in the request stage otherwise.
|
10524
|
+
# Redirect responses and subsequent requests are reported similarly to regular
|
10525
|
+
# responses and requests. Redirect responses may be distinguished by the value
|
10526
|
+
# of `responseStatusCode` (which is one of 301, 302, 303, 307, 308) along with
|
10527
|
+
# presence of the `location` header. Requests resulting from a redirect will
|
10528
|
+
# have `redirectedRequestId` field set.
|
10520
10529
|
event requestPaused
|
10521
10530
|
parameters
|
10522
10531
|
# Each request the page makes will have a unique id.
|
@@ -11238,6 +11247,7 @@ experimental domain Preload
|
|
11238
11247
|
PrerenderingDisabledByDevTools
|
11239
11248
|
ResourceLoadBlockedByClient
|
11240
11249
|
SpeculationRuleRemoved
|
11250
|
+
ActivatedWithAuxiliaryBrowsingContexts
|
11241
11251
|
|
11242
11252
|
# Fired when a prerender attempt is completed.
|
11243
11253
|
event prerenderAttemptCompleted
|
@@ -616,6 +616,11 @@ export namespace ProtocolMapping {
|
|
616
616
|
* The stage of the request can be determined by presence of responseErrorReason
|
617
617
|
* and responseStatusCode -- the request is at the response stage if either
|
618
618
|
* of these fields is present and in the request stage otherwise.
|
619
|
+
* Redirect responses and subsequent requests are reported similarly to regular
|
620
|
+
* responses and requests. Redirect responses may be distinguished by the value
|
621
|
+
* of `responseStatusCode` (which is one of 301, 302, 303, 307, 308) along with
|
622
|
+
* presence of the `location` header. Requests resulting from a redirect will
|
623
|
+
* have `redirectedRequestId` field set.
|
619
624
|
*/
|
620
625
|
'Fetch.requestPaused': [Protocol.Fetch.RequestPausedEvent];
|
621
626
|
/**
|
@@ -4567,6 +4572,10 @@ export namespace ProtocolMapping {
|
|
4567
4572
|
* takeResponseBodyForInterceptionAsStream. Calling other methods that
|
4568
4573
|
* affect the request or disabling fetch domain before body is received
|
4569
4574
|
* results in an undefined behavior.
|
4575
|
+
* Note that the response body is not available for redirects. Requests
|
4576
|
+
* paused in the _redirect received_ state may be differentiated by
|
4577
|
+
* `responseCode` and presence of `location` response header, see
|
4578
|
+
* comments to `requestPaused` for details.
|
4570
4579
|
*/
|
4571
4580
|
'Fetch.getResponseBody': {
|
4572
4581
|
paramsType: [Protocol.Fetch.GetResponseBodyRequest];
|
@@ -3748,6 +3748,10 @@ export namespace ProtocolProxyApi {
|
|
3748
3748
|
* takeResponseBodyForInterceptionAsStream. Calling other methods that
|
3749
3749
|
* affect the request or disabling fetch domain before body is received
|
3750
3750
|
* results in an undefined behavior.
|
3751
|
+
* Note that the response body is not available for redirects. Requests
|
3752
|
+
* paused in the _redirect received_ state may be differentiated by
|
3753
|
+
* `responseCode` and presence of `location` response header, see
|
3754
|
+
* comments to `requestPaused` for details.
|
3751
3755
|
*/
|
3752
3756
|
getResponseBody(params: Protocol.Fetch.GetResponseBodyRequest): Promise<Protocol.Fetch.GetResponseBodyResponse>;
|
3753
3757
|
|
@@ -3772,6 +3776,11 @@ export namespace ProtocolProxyApi {
|
|
3772
3776
|
* The stage of the request can be determined by presence of responseErrorReason
|
3773
3777
|
* and responseStatusCode -- the request is at the response stage if either
|
3774
3778
|
* of these fields is present and in the request stage otherwise.
|
3779
|
+
* Redirect responses and subsequent requests are reported similarly to regular
|
3780
|
+
* responses and requests. Redirect responses may be distinguished by the value
|
3781
|
+
* of `responseStatusCode` (which is one of 301, 302, 303, 307, 308) along with
|
3782
|
+
* presence of the `location` header. Requests resulting from a redirect will
|
3783
|
+
* have `redirectedRequestId` field set.
|
3775
3784
|
*/
|
3776
3785
|
on(event: 'requestPaused', listener: (params: Protocol.Fetch.RequestPausedEvent) => void): void;
|
3777
3786
|
|
package/types/protocol.d.ts
CHANGED
@@ -16582,6 +16582,11 @@ export namespace Protocol {
|
|
16582
16582
|
* The stage of the request can be determined by presence of responseErrorReason
|
16583
16583
|
* and responseStatusCode -- the request is at the response stage if either
|
16584
16584
|
* of these fields is present and in the request stage otherwise.
|
16585
|
+
* Redirect responses and subsequent requests are reported similarly to regular
|
16586
|
+
* responses and requests. Redirect responses may be distinguished by the value
|
16587
|
+
* of `responseStatusCode` (which is one of 301, 302, 303, 307, 308) along with
|
16588
|
+
* presence of the `location` header. Requests resulting from a redirect will
|
16589
|
+
* have `redirectedRequestId` field set.
|
16585
16590
|
*/
|
16586
16591
|
export interface RequestPausedEvent {
|
16587
16592
|
/**
|
@@ -17372,7 +17377,7 @@ export namespace Protocol {
|
|
17372
17377
|
/**
|
17373
17378
|
* List of FinalStatus reasons for Prerender2.
|
17374
17379
|
*/
|
17375
|
-
export type PrerenderFinalStatus = ('Activated' | 'Destroyed' | 'LowEndDevice' | 'InvalidSchemeRedirect' | 'InvalidSchemeNavigation' | 'InProgressNavigation' | 'NavigationRequestBlockedByCsp' | 'MainFrameNavigation' | 'MojoBinderPolicy' | 'RendererProcessCrashed' | 'RendererProcessKilled' | 'Download' | 'TriggerDestroyed' | 'NavigationNotCommitted' | 'NavigationBadHttpStatus' | 'ClientCertRequested' | 'NavigationRequestNetworkError' | 'MaxNumOfRunningPrerendersExceeded' | 'CancelAllHostsForTesting' | 'DidFailLoad' | 'Stop' | 'SslCertificateError' | 'LoginAuthRequested' | 'UaChangeRequiresReload' | 'BlockedByClient' | 'AudioOutputDeviceRequested' | 'MixedContent' | 'TriggerBackgrounded' | 'EmbedderTriggeredAndCrossOriginRedirected' | 'MemoryLimitExceeded' | 'FailToGetMemoryUsage' | 'DataSaverEnabled' | 'HasEffectiveUrl' | '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' | 'ResourceLoadBlockedByClient' | 'SpeculationRuleRemoved');
|
17380
|
+
export type PrerenderFinalStatus = ('Activated' | 'Destroyed' | 'LowEndDevice' | 'InvalidSchemeRedirect' | 'InvalidSchemeNavigation' | 'InProgressNavigation' | 'NavigationRequestBlockedByCsp' | 'MainFrameNavigation' | 'MojoBinderPolicy' | 'RendererProcessCrashed' | 'RendererProcessKilled' | 'Download' | 'TriggerDestroyed' | 'NavigationNotCommitted' | 'NavigationBadHttpStatus' | 'ClientCertRequested' | 'NavigationRequestNetworkError' | 'MaxNumOfRunningPrerendersExceeded' | 'CancelAllHostsForTesting' | 'DidFailLoad' | 'Stop' | 'SslCertificateError' | 'LoginAuthRequested' | 'UaChangeRequiresReload' | 'BlockedByClient' | 'AudioOutputDeviceRequested' | 'MixedContent' | 'TriggerBackgrounded' | 'EmbedderTriggeredAndCrossOriginRedirected' | 'MemoryLimitExceeded' | 'FailToGetMemoryUsage' | 'DataSaverEnabled' | 'HasEffectiveUrl' | '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' | 'ResourceLoadBlockedByClient' | 'SpeculationRuleRemoved' | 'ActivatedWithAuxiliaryBrowsingContexts');
|
17376
17381
|
|
17377
17382
|
/**
|
17378
17383
|
* Preloading status values, see also PreloadingTriggeringOutcome. This
|