devtools-protocol 0.0.1378110 → 0.0.1379457
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.
@@ -4887,6 +4887,18 @@
|
|
4887
4887
|
}
|
4888
4888
|
]
|
4889
4889
|
},
|
4890
|
+
{
|
4891
|
+
"name": "trackComputedStyleUpdatesForNode",
|
4892
|
+
"description": "Starts tracking the given node for the computed style updates\nand whenever the computed style is updated for node, it queues\na `computedStyleUpdated` event with throttling.",
|
4893
|
+
"experimental": true,
|
4894
|
+
"parameters": [
|
4895
|
+
{
|
4896
|
+
"name": "nodeId",
|
4897
|
+
"optional": true,
|
4898
|
+
"$ref": "DOM.NodeId"
|
4899
|
+
}
|
4900
|
+
]
|
4901
|
+
},
|
4890
4902
|
{
|
4891
4903
|
"name": "trackComputedStyleUpdates",
|
4892
4904
|
"description": "Starts tracking the given computed styles for updates. The specified array of properties\nreplaces the one previously specified. Pass empty array to disable tracking.\nUse takeComputedStyleUpdates to retrieve the list of nodes that had properties modified.\nThe changes to computed style properties are only tracked for nodes pushed to the front-end\nby the DOM agent. If no changes to the tracked properties occur after the node has been pushed\nto the front-end, no updates will be issued for the node.",
|
@@ -5261,6 +5273,17 @@
|
|
5261
5273
|
"$ref": "StyleSheetId"
|
5262
5274
|
}
|
5263
5275
|
]
|
5276
|
+
},
|
5277
|
+
{
|
5278
|
+
"name": "computedStyleUpdated",
|
5279
|
+
"experimental": true,
|
5280
|
+
"parameters": [
|
5281
|
+
{
|
5282
|
+
"name": "nodeId",
|
5283
|
+
"description": "The node id that has updated computed styles.",
|
5284
|
+
"$ref": "DOM.NodeId"
|
5285
|
+
}
|
5286
|
+
]
|
5264
5287
|
}
|
5265
5288
|
]
|
5266
5289
|
},
|
@@ -13542,7 +13565,9 @@
|
|
13542
13565
|
"SchemefulSameSiteLax",
|
13543
13566
|
"SchemefulSameSiteUnspecifiedTreatedAsLax",
|
13544
13567
|
"SamePartyFromCrossPartyContext",
|
13545
|
-
"NameValuePairExceedsMaxSize"
|
13568
|
+
"NameValuePairExceedsMaxSize",
|
13569
|
+
"PortMismatch",
|
13570
|
+
"SchemeMismatch"
|
13546
13571
|
]
|
13547
13572
|
},
|
13548
13573
|
{
|
@@ -20295,7 +20320,7 @@
|
|
20295
20320
|
},
|
20296
20321
|
{
|
20297
20322
|
"name": "lifecycleEvent",
|
20298
|
-
"description": "Fired for
|
20323
|
+
"description": "Fired for lifecycle events (navigation, load, paint, etc) in the current\ntarget (including local frames).",
|
20299
20324
|
"parameters": [
|
20300
20325
|
{
|
20301
20326
|
"name": "frameId",
|
@@ -22342,6 +22367,7 @@
|
|
22342
22367
|
"excessiveReportingOrigins",
|
22343
22368
|
"noHistograms",
|
22344
22369
|
"insufficientBudget",
|
22370
|
+
"insufficientNamedBudget",
|
22345
22371
|
"noMatchingSourceFilterData",
|
22346
22372
|
"notRegistered",
|
22347
22373
|
"prohibitedByBrowserPolicy",
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -2319,6 +2319,13 @@ experimental domain CSS
|
|
2319
2319
|
returns
|
2320
2320
|
array of SourceRange ranges
|
2321
2321
|
|
2322
|
+
# Starts tracking the given node for the computed style updates
|
2323
|
+
# and whenever the computed style is updated for node, it queues
|
2324
|
+
# a `computedStyleUpdated` event with throttling.
|
2325
|
+
experimental command trackComputedStyleUpdatesForNode
|
2326
|
+
parameters
|
2327
|
+
optional DOM.NodeId nodeId
|
2328
|
+
|
2322
2329
|
# Starts tracking the given computed styles for updates. The specified array of properties
|
2323
2330
|
# replaces the one previously specified. Pass empty array to disable tracking.
|
2324
2331
|
# Use takeComputedStyleUpdates to retrieve the list of nodes that had properties modified.
|
@@ -2486,6 +2493,11 @@ experimental domain CSS
|
|
2486
2493
|
# Identifier of the removed stylesheet.
|
2487
2494
|
StyleSheetId styleSheetId
|
2488
2495
|
|
2496
|
+
experimental event computedStyleUpdated
|
2497
|
+
parameters
|
2498
|
+
# The node id that has updated computed styles.
|
2499
|
+
DOM.NodeId nodeId
|
2500
|
+
|
2489
2501
|
experimental domain CacheStorage
|
2490
2502
|
depends on Storage
|
2491
2503
|
|
@@ -6385,6 +6397,10 @@ domain Network
|
|
6385
6397
|
# The cookie's name/value pair size exceeded the size limit defined in
|
6386
6398
|
# RFC6265bis.
|
6387
6399
|
NameValuePairExceedsMaxSize
|
6400
|
+
# The cookie's source port value does not match the request origin's port.
|
6401
|
+
PortMismatch
|
6402
|
+
# The cookie's source scheme value does not match the request origin's scheme.
|
6403
|
+
SchemeMismatch
|
6388
6404
|
|
6389
6405
|
# Types of reasons why a cookie should have been blocked by 3PCD but is exempted for the request.
|
6390
6406
|
experimental type CookieExemptionReason extends string
|
@@ -9385,7 +9401,8 @@ domain Page
|
|
9385
9401
|
# Default dialog prompt.
|
9386
9402
|
optional string defaultPrompt
|
9387
9403
|
|
9388
|
-
# Fired for
|
9404
|
+
# Fired for lifecycle events (navigation, load, paint, etc) in the current
|
9405
|
+
# target (including local frames).
|
9389
9406
|
event lifecycleEvent
|
9390
9407
|
parameters
|
9391
9408
|
# Id of the frame.
|
@@ -10847,6 +10864,7 @@ experimental domain Storage
|
|
10847
10864
|
excessiveReportingOrigins
|
10848
10865
|
noHistograms
|
10849
10866
|
insufficientBudget
|
10867
|
+
insufficientNamedBudget
|
10850
10868
|
noMatchingSourceFilterData
|
10851
10869
|
notRegistered
|
10852
10870
|
prohibitedByBrowserPolicy
|
@@ -161,6 +161,7 @@ export namespace ProtocolMapping {
|
|
161
161
|
* Fired whenever an active document stylesheet is removed.
|
162
162
|
*/
|
163
163
|
'CSS.styleSheetRemoved': [Protocol.CSS.StyleSheetRemovedEvent];
|
164
|
+
'CSS.computedStyleUpdated': [Protocol.CSS.ComputedStyleUpdatedEvent];
|
164
165
|
/**
|
165
166
|
* This is fired whenever the list of available sinks changes. A sink is a
|
166
167
|
* device or a software surface that you can cast to.
|
@@ -499,7 +500,8 @@ export namespace ProtocolMapping {
|
|
499
500
|
*/
|
500
501
|
'Page.javascriptDialogOpening': [Protocol.Page.JavascriptDialogOpeningEvent];
|
501
502
|
/**
|
502
|
-
* Fired for
|
503
|
+
* Fired for lifecycle events (navigation, load, paint, etc) in the current
|
504
|
+
* target (including local frames).
|
503
505
|
*/
|
504
506
|
'Page.lifecycleEvent': [Protocol.Page.LifecycleEventEvent];
|
505
507
|
/**
|
@@ -1871,6 +1873,15 @@ export namespace ProtocolMapping {
|
|
1871
1873
|
paramsType: [Protocol.CSS.GetLocationForSelectorRequest];
|
1872
1874
|
returnType: Protocol.CSS.GetLocationForSelectorResponse;
|
1873
1875
|
};
|
1876
|
+
/**
|
1877
|
+
* Starts tracking the given node for the computed style updates
|
1878
|
+
* and whenever the computed style is updated for node, it queues
|
1879
|
+
* a `computedStyleUpdated` event with throttling.
|
1880
|
+
*/
|
1881
|
+
'CSS.trackComputedStyleUpdatesForNode': {
|
1882
|
+
paramsType: [Protocol.CSS.TrackComputedStyleUpdatesForNodeRequest?];
|
1883
|
+
returnType: void;
|
1884
|
+
};
|
1874
1885
|
/**
|
1875
1886
|
* Starts tracking the given computed styles for updates. The specified array of properties
|
1876
1887
|
* replaces the one previously specified. Pass empty array to disable tracking.
|
@@ -1102,6 +1102,13 @@ export namespace ProtocolProxyApi {
|
|
1102
1102
|
*/
|
1103
1103
|
getLocationForSelector(params: Protocol.CSS.GetLocationForSelectorRequest): Promise<Protocol.CSS.GetLocationForSelectorResponse>;
|
1104
1104
|
|
1105
|
+
/**
|
1106
|
+
* Starts tracking the given node for the computed style updates
|
1107
|
+
* and whenever the computed style is updated for node, it queues
|
1108
|
+
* a `computedStyleUpdated` event with throttling.
|
1109
|
+
*/
|
1110
|
+
trackComputedStyleUpdatesForNode(params: Protocol.CSS.TrackComputedStyleUpdatesForNodeRequest): Promise<void>;
|
1111
|
+
|
1105
1112
|
/**
|
1106
1113
|
* Starts tracking the given computed styles for updates. The specified array of properties
|
1107
1114
|
* replaces the one previously specified. Pass empty array to disable tracking.
|
@@ -1217,6 +1224,8 @@ export namespace ProtocolProxyApi {
|
|
1217
1224
|
*/
|
1218
1225
|
on(event: 'styleSheetRemoved', listener: (params: Protocol.CSS.StyleSheetRemovedEvent) => void): void;
|
1219
1226
|
|
1227
|
+
on(event: 'computedStyleUpdated', listener: (params: Protocol.CSS.ComputedStyleUpdatedEvent) => void): void;
|
1228
|
+
|
1220
1229
|
}
|
1221
1230
|
|
1222
1231
|
export interface CacheStorageApi {
|
@@ -3302,7 +3311,8 @@ export namespace ProtocolProxyApi {
|
|
3302
3311
|
on(event: 'javascriptDialogOpening', listener: (params: Protocol.Page.JavascriptDialogOpeningEvent) => void): void;
|
3303
3312
|
|
3304
3313
|
/**
|
3305
|
-
* Fired for
|
3314
|
+
* Fired for lifecycle events (navigation, load, paint, etc) in the current
|
3315
|
+
* target (including local frames).
|
3306
3316
|
*/
|
3307
3317
|
on(event: 'lifecycleEvent', listener: (params: Protocol.Page.LifecycleEventEvent) => void): void;
|
3308
3318
|
|
@@ -1170,6 +1170,13 @@ export namespace ProtocolTestsProxyApi {
|
|
1170
1170
|
*/
|
1171
1171
|
getLocationForSelector(params: Protocol.CSS.GetLocationForSelectorRequest): Promise<{id: number, result: Protocol.CSS.GetLocationForSelectorResponse, sessionId: string}>;
|
1172
1172
|
|
1173
|
+
/**
|
1174
|
+
* Starts tracking the given node for the computed style updates
|
1175
|
+
* and whenever the computed style is updated for node, it queues
|
1176
|
+
* a `computedStyleUpdated` event with throttling.
|
1177
|
+
*/
|
1178
|
+
trackComputedStyleUpdatesForNode(params: Protocol.CSS.TrackComputedStyleUpdatesForNodeRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1179
|
+
|
1173
1180
|
/**
|
1174
1181
|
* Starts tracking the given computed styles for updates. The specified array of properties
|
1175
1182
|
* replaces the one previously specified. Pass empty array to disable tracking.
|
@@ -1295,6 +1302,10 @@ export namespace ProtocolTestsProxyApi {
|
|
1295
1302
|
offStyleSheetRemoved(listener: (event: { params: Protocol.CSS.StyleSheetRemovedEvent }) => void): void;
|
1296
1303
|
onceStyleSheetRemoved(eventMatcher?: (event: { params: Protocol.CSS.StyleSheetRemovedEvent }) => boolean): Promise<{ params: Protocol.CSS.StyleSheetRemovedEvent }>;
|
1297
1304
|
|
1305
|
+
onComputedStyleUpdated(listener: (event: { params: Protocol.CSS.ComputedStyleUpdatedEvent }) => void): void;
|
1306
|
+
offComputedStyleUpdated(listener: (event: { params: Protocol.CSS.ComputedStyleUpdatedEvent }) => void): void;
|
1307
|
+
onceComputedStyleUpdated(eventMatcher?: (event: { params: Protocol.CSS.ComputedStyleUpdatedEvent }) => boolean): Promise<{ params: Protocol.CSS.ComputedStyleUpdatedEvent }>;
|
1308
|
+
|
1298
1309
|
}
|
1299
1310
|
|
1300
1311
|
export interface CacheStorageApi {
|
@@ -3552,7 +3563,8 @@ export namespace ProtocolTestsProxyApi {
|
|
3552
3563
|
onceJavascriptDialogOpening(eventMatcher?: (event: { params: Protocol.Page.JavascriptDialogOpeningEvent }) => boolean): Promise<{ params: Protocol.Page.JavascriptDialogOpeningEvent }>;
|
3553
3564
|
|
3554
3565
|
/**
|
3555
|
-
* Fired for
|
3566
|
+
* Fired for lifecycle events (navigation, load, paint, etc) in the current
|
3567
|
+
* target (including local frames).
|
3556
3568
|
*/
|
3557
3569
|
onLifecycleEvent(listener: (event: { params: Protocol.Page.LifecycleEventEvent }) => void): void;
|
3558
3570
|
offLifecycleEvent(listener: (event: { params: Protocol.Page.LifecycleEventEvent }) => void): void;
|
package/types/protocol.d.ts
CHANGED
@@ -5574,6 +5574,10 @@ export namespace Protocol {
|
|
5574
5574
|
ranges: SourceRange[];
|
5575
5575
|
}
|
5576
5576
|
|
5577
|
+
export interface TrackComputedStyleUpdatesForNodeRequest {
|
5578
|
+
nodeId?: DOM.NodeId;
|
5579
|
+
}
|
5580
|
+
|
5577
5581
|
export interface TrackComputedStyleUpdatesRequest {
|
5578
5582
|
propertiesToTrack: CSSComputedStyleProperty[];
|
5579
5583
|
}
|
@@ -5770,6 +5774,13 @@ export namespace Protocol {
|
|
5770
5774
|
*/
|
5771
5775
|
styleSheetId: StyleSheetId;
|
5772
5776
|
}
|
5777
|
+
|
5778
|
+
export interface ComputedStyleUpdatedEvent {
|
5779
|
+
/**
|
5780
|
+
* The node id that has updated computed styles.
|
5781
|
+
*/
|
5782
|
+
nodeId: DOM.NodeId;
|
5783
|
+
}
|
5773
5784
|
}
|
5774
5785
|
|
5775
5786
|
export namespace CacheStorage {
|
@@ -11031,7 +11042,7 @@ export namespace Protocol {
|
|
11031
11042
|
/**
|
11032
11043
|
* Types of reasons why a cookie may not be sent with a request.
|
11033
11044
|
*/
|
11034
|
-
export type CookieBlockedReason = ('SecureOnly' | 'NotOnPath' | 'DomainMismatch' | 'SameSiteStrict' | 'SameSiteLax' | 'SameSiteUnspecifiedTreatedAsLax' | 'SameSiteNoneInsecure' | 'UserPreferences' | 'ThirdPartyPhaseout' | 'ThirdPartyBlockedInFirstPartySet' | 'UnknownError' | 'SchemefulSameSiteStrict' | 'SchemefulSameSiteLax' | 'SchemefulSameSiteUnspecifiedTreatedAsLax' | 'SamePartyFromCrossPartyContext' | 'NameValuePairExceedsMaxSize');
|
11045
|
+
export type CookieBlockedReason = ('SecureOnly' | 'NotOnPath' | 'DomainMismatch' | 'SameSiteStrict' | 'SameSiteLax' | 'SameSiteUnspecifiedTreatedAsLax' | 'SameSiteNoneInsecure' | 'UserPreferences' | 'ThirdPartyPhaseout' | 'ThirdPartyBlockedInFirstPartySet' | 'UnknownError' | 'SchemefulSameSiteStrict' | 'SchemefulSameSiteLax' | 'SchemefulSameSiteUnspecifiedTreatedAsLax' | 'SamePartyFromCrossPartyContext' | 'NameValuePairExceedsMaxSize' | 'PortMismatch' | 'SchemeMismatch');
|
11035
11046
|
|
11036
11047
|
/**
|
11037
11048
|
* Types of reasons why a cookie should have been blocked by 3PCD but is exempted for the request.
|
@@ -15162,7 +15173,8 @@ export namespace Protocol {
|
|
15162
15173
|
}
|
15163
15174
|
|
15164
15175
|
/**
|
15165
|
-
* Fired for
|
15176
|
+
* Fired for lifecycle events (navigation, load, paint, etc) in the current
|
15177
|
+
* target (including local frames).
|
15166
15178
|
*/
|
15167
15179
|
export interface LifecycleEventEvent {
|
15168
15180
|
/**
|
@@ -16209,7 +16221,7 @@ export namespace Protocol {
|
|
16209
16221
|
|
16210
16222
|
export type AttributionReportingEventLevelResult = ('success' | 'successDroppedLowerPriority' | 'internalError' | 'noCapacityForAttributionDestination' | 'noMatchingSources' | 'deduplicated' | 'excessiveAttributions' | 'priorityTooLow' | 'neverAttributedSource' | 'excessiveReportingOrigins' | 'noMatchingSourceFilterData' | 'prohibitedByBrowserPolicy' | 'noMatchingConfigurations' | 'excessiveReports' | 'falselyAttributedSource' | 'reportWindowPassed' | 'notRegistered' | 'reportWindowNotStarted' | 'noMatchingTriggerData');
|
16211
16223
|
|
16212
|
-
export type AttributionReportingAggregatableResult = ('success' | 'internalError' | 'noCapacityForAttributionDestination' | 'noMatchingSources' | 'excessiveAttributions' | 'excessiveReportingOrigins' | 'noHistograms' | 'insufficientBudget' | 'noMatchingSourceFilterData' | 'notRegistered' | 'prohibitedByBrowserPolicy' | 'deduplicated' | 'reportWindowPassed' | 'excessiveReports');
|
16224
|
+
export type AttributionReportingAggregatableResult = ('success' | 'internalError' | 'noCapacityForAttributionDestination' | 'noMatchingSources' | 'excessiveAttributions' | 'excessiveReportingOrigins' | 'noHistograms' | 'insufficientBudget' | 'insufficientNamedBudget' | 'noMatchingSourceFilterData' | 'notRegistered' | 'prohibitedByBrowserPolicy' | 'deduplicated' | 'reportWindowPassed' | 'excessiveReports');
|
16213
16225
|
|
16214
16226
|
/**
|
16215
16227
|
* A single Related Website Set object.
|