devtools-protocol 0.0.1169739 → 0.0.1170846

Sign up to get free protection for your applications and to get access to all the features.
@@ -13785,12 +13785,6 @@
13785
13785
  "name": "encodedDataLength",
13786
13786
  "description": "Total number of bytes received for this request.",
13787
13787
  "type": "number"
13788
- },
13789
- {
13790
- "name": "shouldReportCorbBlocking",
13791
- "description": "Set when 1) response was blocked by Cross-Origin Read Blocking and also\n2) this needs to be reported to the DevTools console.",
13792
- "optional": true,
13793
- "type": "boolean"
13794
13788
  }
13795
13789
  ]
13796
13790
  },
@@ -22296,7 +22290,7 @@
22296
22290
  },
22297
22291
  {
22298
22292
  "name": "getResponseBody",
22299
- "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.",
22300
22294
  "parameters": [
22301
22295
  {
22302
22296
  "name": "requestId",
@@ -22337,7 +22331,7 @@
22337
22331
  "events": [
22338
22332
  {
22339
22333
  "name": "requestPaused",
22340
- "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.",
22341
22335
  "parameters": [
22342
22336
  {
22343
22337
  "name": "requestId",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1169739",
3
+ "version": "0.0.1170846",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -6268,9 +6268,6 @@ domain Network
6268
6268
  MonotonicTime timestamp
6269
6269
  # Total number of bytes received for this request.
6270
6270
  number encodedDataLength
6271
- # Set when 1) response was blocked by Cross-Origin Read Blocking and also
6272
- # 2) this needs to be reported to the DevTools console.
6273
- optional boolean shouldReportCorbBlocking
6274
6271
 
6275
6272
  # Details of an intercepted HTTP request, which must be either allowed, blocked, modified or
6276
6273
  # mocked.
@@ -10488,6 +10485,10 @@ domain Fetch
10488
10485
  # takeResponseBodyForInterceptionAsStream. Calling other methods that
10489
10486
  # affect the request or disabling fetch domain before body is received
10490
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.
10491
10492
  command getResponseBody
10492
10493
  parameters
10493
10494
  # Identifier for the intercepted request to get body for.
@@ -10520,6 +10521,11 @@ domain Fetch
10520
10521
  # The stage of the request can be determined by presence of responseErrorReason
10521
10522
  # and responseStatusCode -- the request is at the response stage if either
10522
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.
10523
10529
  event requestPaused
10524
10530
  parameters
10525
10531
  # Each request the page makes will have a unique id.
@@ -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
 
@@ -11283,11 +11283,6 @@ export namespace Protocol {
11283
11283
  * Total number of bytes received for this request.
11284
11284
  */
11285
11285
  encodedDataLength: number;
11286
- /**
11287
- * Set when 1) response was blocked by Cross-Origin Read Blocking and also
11288
- * 2) this needs to be reported to the DevTools console.
11289
- */
11290
- shouldReportCorbBlocking?: boolean;
11291
11286
  }
11292
11287
 
11293
11288
  /**
@@ -16587,6 +16582,11 @@ export namespace Protocol {
16587
16582
  * The stage of the request can be determined by presence of responseErrorReason
16588
16583
  * and responseStatusCode -- the request is at the response stage if either
16589
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.
16590
16590
  */
16591
16591
  export interface RequestPausedEvent {
16592
16592
  /**