devtools-protocol 0.0.1572739 → 0.0.1574117

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.
@@ -5664,7 +5664,7 @@
5664
5664
  },
5665
5665
  {
5666
5666
  "name": "resolveValues",
5667
- "description": "Resolve the specified values in the context of the provided element.\nFor example, a value of '1em' is evaluated according to the computed\n'font-size' of the element and a value 'calc(1px + 2px)' will be\nresolved to '3px'.\nIf the `propertyName` was specified the `values` are resolved as if\nthey were property's declaration. If a value cannot be parsed according\nto the provided property syntax, the value is parsed using combined\nsyntax as if null `propertyName` was provided. If the value cannot be\nresolved even then, return the provided value without any changes.",
5667
+ "description": "Resolve the specified values in the context of the provided element.\nFor example, a value of '1em' is evaluated according to the computed\n'font-size' of the element and a value 'calc(1px + 2px)' will be\nresolved to '3px'.\nIf the `propertyName` was specified the `values` are resolved as if\nthey were property's declaration. If a value cannot be parsed according\nto the provided property syntax, the value is parsed using combined\nsyntax as if null `propertyName` was provided. If the value cannot be\nresolved even then, return the provided value without any changes.\nNote: this function currently does not resolve CSS random() function,\nit returns unmodified random() function parts.`",
5668
5668
  "experimental": true,
5669
5669
  "parameters": [
5670
5670
  {
@@ -17149,6 +17149,32 @@
17149
17149
  }
17150
17150
  ]
17151
17151
  },
17152
+ {
17153
+ "id": "DeviceBoundSessionWithUsage",
17154
+ "description": "How a device bound session was used during a request.",
17155
+ "experimental": true,
17156
+ "type": "object",
17157
+ "properties": [
17158
+ {
17159
+ "name": "sessionKey",
17160
+ "description": "The key for the session.",
17161
+ "$ref": "DeviceBoundSessionKey"
17162
+ },
17163
+ {
17164
+ "name": "usage",
17165
+ "description": "How the session was used (or not used).",
17166
+ "type": "string",
17167
+ "enum": [
17168
+ "NotInScope",
17169
+ "InScopeRefreshNotYetNeeded",
17170
+ "InScopeRefreshNotAllowed",
17171
+ "ProactiveRefreshNotPossible",
17172
+ "ProactiveRefreshAttempted",
17173
+ "Deferred"
17174
+ ]
17175
+ }
17176
+ ]
17177
+ },
17152
17178
  {
17153
17179
  "id": "DeviceBoundSessionCookieCraving",
17154
17180
  "description": "A device bound session's cookie craving.",
@@ -19338,6 +19364,15 @@
19338
19364
  "experimental": true,
19339
19365
  "$ref": "ConnectTiming"
19340
19366
  },
19367
+ {
19368
+ "name": "deviceBoundSessionUsages",
19369
+ "description": "How the request site's device bound sessions were used during this request.",
19370
+ "optional": true,
19371
+ "type": "array",
19372
+ "items": {
19373
+ "$ref": "DeviceBoundSessionWithUsage"
19374
+ }
19375
+ },
19341
19376
  {
19342
19377
  "name": "clientSecurityState",
19343
19378
  "description": "The client security state set for the request.",
@@ -28587,6 +28622,13 @@
28587
28622
  "experimental": true,
28588
28623
  "optional": true,
28589
28624
  "type": "boolean"
28625
+ },
28626
+ {
28627
+ "name": "focus",
28628
+ "description": "If specified, the option is used to determine if the new target should\nbe focused or not. By default, the focus behavior depends on the\nvalue of the background field. For example, background=false and focus=false\nwill result in the target tab being opened but the browser window remain\nunchanged (if it was in the background, it will remain in the background)\nand background=false with focus=undefined will result in the window being focused.\nUsing background: true and focus: true is not supported and will result in an error.",
28629
+ "experimental": true,
28630
+ "optional": true,
28631
+ "type": "boolean"
28590
28632
  }
28591
28633
  ],
28592
28634
  "returns": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1572739",
3
+ "version": "0.0.1574117",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -708,6 +708,8 @@ experimental domain CSS
708
708
  # to the provided property syntax, the value is parsed using combined
709
709
  # syntax as if null `propertyName` was provided. If the value cannot be
710
710
  # resolved even then, return the provided value without any changes.
711
+ # Note: this function currently does not resolve CSS random() function,
712
+ # it returns unmodified random() function parts.`
711
713
  experimental command resolveValues
712
714
  parameters
713
715
  # Cascade-dependent keywords (revert/revert-layer) do not work.
@@ -1812,6 +1812,8 @@ domain Network
1812
1812
  Headers headers
1813
1813
  # Connection timing information for the request.
1814
1814
  experimental ConnectTiming connectTiming
1815
+ # How the request site's device bound sessions were used during this request.
1816
+ optional array of DeviceBoundSessionWithUsage deviceBoundSessionUsages
1815
1817
  # The client security state set for the request.
1816
1818
  optional ClientSecurityState clientSecurityState
1817
1819
  # Whether the site has partitioned cookies stored in a partition different than the current one.
@@ -2033,6 +2035,20 @@ domain Network
2033
2035
  # The id of the session.
2034
2036
  string id
2035
2037
 
2038
+ # How a device bound session was used during a request.
2039
+ experimental type DeviceBoundSessionWithUsage extends object
2040
+ properties
2041
+ # The key for the session.
2042
+ DeviceBoundSessionKey sessionKey
2043
+ # How the session was used (or not used).
2044
+ enum usage
2045
+ NotInScope
2046
+ InScopeRefreshNotYetNeeded
2047
+ InScopeRefreshNotAllowed
2048
+ ProactiveRefreshNotPossible
2049
+ ProactiveRefreshAttempted
2050
+ Deferred
2051
+
2036
2052
  # A device bound session's cookie craving.
2037
2053
  experimental type DeviceBoundSessionCookieCraving extends object
2038
2054
  properties
@@ -167,6 +167,14 @@ domain Target
167
167
  # present in the tab UI strip. Cannot be created with `forTab: true`, `newWindow: true` or
168
168
  # `background: false`. The life-time of the tab is limited to the life-time of the session.
169
169
  experimental optional boolean hidden
170
+ # If specified, the option is used to determine if the new target should
171
+ # be focused or not. By default, the focus behavior depends on the
172
+ # value of the background field. For example, background=false and focus=false
173
+ # will result in the target tab being opened but the browser window remain
174
+ # unchanged (if it was in the background, it will remain in the background)
175
+ # and background=false with focus=undefined will result in the window being focused.
176
+ # Using background: true and focus: true is not supported and will result in an error.
177
+ experimental optional boolean focus
170
178
  returns
171
179
  # The id of the page opened.
172
180
  TargetID targetId
@@ -2168,6 +2168,8 @@ export namespace ProtocolMapping {
2168
2168
  * to the provided property syntax, the value is parsed using combined
2169
2169
  * syntax as if null `propertyName` was provided. If the value cannot be
2170
2170
  * resolved even then, return the provided value without any changes.
2171
+ * Note: this function currently does not resolve CSS random() function,
2172
+ * it returns unmodified random() function parts.`
2171
2173
  * @experimental
2172
2174
  */
2173
2175
  'CSS.resolveValues': {
@@ -1226,6 +1226,8 @@ export namespace ProtocolProxyApi {
1226
1226
  * to the provided property syntax, the value is parsed using combined
1227
1227
  * syntax as if null `propertyName` was provided. If the value cannot be
1228
1228
  * resolved even then, return the provided value without any changes.
1229
+ * Note: this function currently does not resolve CSS random() function,
1230
+ * it returns unmodified random() function parts.`
1229
1231
  * @experimental
1230
1232
  */
1231
1233
  resolveValues(params: Protocol.CSS.ResolveValuesRequest): Promise<Protocol.CSS.ResolveValuesResponse>;
@@ -1300,6 +1300,8 @@ export namespace ProtocolTestsProxyApi {
1300
1300
  * to the provided property syntax, the value is parsed using combined
1301
1301
  * syntax as if null `propertyName` was provided. If the value cannot be
1302
1302
  * resolved even then, return the provided value without any changes.
1303
+ * Note: this function currently does not resolve CSS random() function,
1304
+ * it returns unmodified random() function parts.`
1303
1305
  * @experimental
1304
1306
  */
1305
1307
  resolveValues(params: Protocol.CSS.ResolveValuesRequest): Promise<{id: number, result: Protocol.CSS.ResolveValuesResponse, sessionId: string}>;
@@ -13544,6 +13544,30 @@ export namespace Protocol {
13544
13544
  id: string;
13545
13545
  }
13546
13546
 
13547
+ export const enum DeviceBoundSessionWithUsageUsage {
13548
+ NotInScope = 'NotInScope',
13549
+ InScopeRefreshNotYetNeeded = 'InScopeRefreshNotYetNeeded',
13550
+ InScopeRefreshNotAllowed = 'InScopeRefreshNotAllowed',
13551
+ ProactiveRefreshNotPossible = 'ProactiveRefreshNotPossible',
13552
+ ProactiveRefreshAttempted = 'ProactiveRefreshAttempted',
13553
+ Deferred = 'Deferred',
13554
+ }
13555
+
13556
+ /**
13557
+ * How a device bound session was used during a request.
13558
+ * @experimental
13559
+ */
13560
+ export interface DeviceBoundSessionWithUsage {
13561
+ /**
13562
+ * The key for the session.
13563
+ */
13564
+ sessionKey: DeviceBoundSessionKey;
13565
+ /**
13566
+ * How the session was used (or not used).
13567
+ */
13568
+ usage: ('NotInScope' | 'InScopeRefreshNotYetNeeded' | 'InScopeRefreshNotAllowed' | 'ProactiveRefreshNotPossible' | 'ProactiveRefreshAttempted' | 'Deferred');
13569
+ }
13570
+
13547
13571
  /**
13548
13572
  * A device bound session's cookie craving.
13549
13573
  * @experimental
@@ -15043,6 +15067,10 @@ export namespace Protocol {
15043
15067
  * @experimental
15044
15068
  */
15045
15069
  connectTiming: ConnectTiming;
15070
+ /**
15071
+ * How the request site's device bound sessions were used during this request.
15072
+ */
15073
+ deviceBoundSessionUsages?: DeviceBoundSessionWithUsage[];
15046
15074
  /**
15047
15075
  * The client security state set for the request.
15048
15076
  */
@@ -20618,6 +20646,17 @@ export namespace Protocol {
20618
20646
  * @experimental
20619
20647
  */
20620
20648
  hidden?: boolean;
20649
+ /**
20650
+ * If specified, the option is used to determine if the new target should
20651
+ * be focused or not. By default, the focus behavior depends on the
20652
+ * value of the background field. For example, background=false and focus=false
20653
+ * will result in the target tab being opened but the browser window remain
20654
+ * unchanged (if it was in the background, it will remain in the background)
20655
+ * and background=false with focus=undefined will result in the window being focused.
20656
+ * Using background: true and focus: true is not supported and will result in an error.
20657
+ * @experimental
20658
+ */
20659
+ focus?: boolean;
20621
20660
  }
20622
20661
 
20623
20662
  export interface CreateTargetResponse {