devtools-protocol 0.0.1651496 → 0.0.1652909
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 +67 -1
- package/package.json +1 -1
- package/pdl/domains/Ads.pdl +17 -0
- package/pdl/domains/DOM.pdl +2 -0
- package/pdl/domains/Page.pdl +7 -0
- package/pdl/domains/Target.pdl +5 -7
- package/pdl/domains/Tracing.pdl +11 -0
- package/types/protocol.d.ts +63 -8
|
@@ -608,6 +608,34 @@
|
|
|
608
608
|
"Runtime"
|
|
609
609
|
],
|
|
610
610
|
"types": [
|
|
611
|
+
{
|
|
612
|
+
"id": "AdFrameData",
|
|
613
|
+
"description": "Ad frame data.",
|
|
614
|
+
"type": "object",
|
|
615
|
+
"properties": [
|
|
616
|
+
{
|
|
617
|
+
"name": "frameId",
|
|
618
|
+
"description": "The DevTools frame token.",
|
|
619
|
+
"$ref": "Page.FrameId"
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
"name": "initialOrigin",
|
|
623
|
+
"description": "The initial origin of the frame. To minimize the payload size, this is\nonly sent once per frame.",
|
|
624
|
+
"optional": true,
|
|
625
|
+
"type": "string"
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
"name": "networkBytes",
|
|
629
|
+
"description": "The network bytes of the frame.",
|
|
630
|
+
"type": "number"
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
"name": "cpuTime",
|
|
634
|
+
"description": "The CPU time of the frame, in milliseconds.",
|
|
635
|
+
"type": "number"
|
|
636
|
+
}
|
|
637
|
+
]
|
|
638
|
+
},
|
|
611
639
|
{
|
|
612
640
|
"id": "AdMetrics",
|
|
613
641
|
"description": "Ad metrics for a page.",
|
|
@@ -642,6 +670,22 @@
|
|
|
642
670
|
"name": "totalAdNetworkBytes",
|
|
643
671
|
"description": "The total ad network bytes.",
|
|
644
672
|
"type": "number"
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
"name": "updateAdFrames",
|
|
676
|
+
"description": "The list of ad frames that have been updated since the last event.",
|
|
677
|
+
"type": "array",
|
|
678
|
+
"items": {
|
|
679
|
+
"$ref": "AdFrameData"
|
|
680
|
+
}
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
"name": "removeAdFrames",
|
|
684
|
+
"description": "The list of ad frame IDs that have been removed since the last event.",
|
|
685
|
+
"type": "array",
|
|
686
|
+
"items": {
|
|
687
|
+
"$ref": "Page.FrameId"
|
|
688
|
+
}
|
|
645
689
|
}
|
|
646
690
|
]
|
|
647
691
|
}
|
|
@@ -7279,8 +7323,10 @@
|
|
|
7279
7323
|
"file-selector-button",
|
|
7280
7324
|
"details-content",
|
|
7281
7325
|
"picker",
|
|
7326
|
+
"select-listbox",
|
|
7282
7327
|
"permission-icon",
|
|
7283
7328
|
"overscroll-area-parent",
|
|
7329
|
+
"overscroll-backdrop",
|
|
7284
7330
|
"skeleton"
|
|
7285
7331
|
]
|
|
7286
7332
|
},
|
|
@@ -23644,6 +23690,12 @@
|
|
|
23644
23690
|
"description": "Whether or not universal access should be granted to the isolated world. This is a powerful\noption, use with caution.",
|
|
23645
23691
|
"optional": true,
|
|
23646
23692
|
"type": "boolean"
|
|
23693
|
+
},
|
|
23694
|
+
{
|
|
23695
|
+
"name": "contentSecurityPolicy",
|
|
23696
|
+
"description": "An optional content security policy to set for the isolated world.\nIf omitted, any existing CSP for the world will be cleared.\nNote that clearing or updating the CSP does not immediately affect the active\ncontext in the same document because LocalDOMWindow caches the\nContentSecurityPolicy object. The change takes effect on subsequent\nnavigations when a new window context is created.",
|
|
23697
|
+
"optional": true,
|
|
23698
|
+
"type": "string"
|
|
23647
23699
|
}
|
|
23648
23700
|
],
|
|
23649
23701
|
"returns": [
|
|
@@ -29302,7 +29354,7 @@
|
|
|
29302
29354
|
},
|
|
29303
29355
|
{
|
|
29304
29356
|
"name": "focus",
|
|
29305
|
-
"description": "If specified,
|
|
29357
|
+
"description": "If specified, determines whether the new target should be focused.\nBy default, the focus behavior depends on the `background` parameter:\n- If `background` is false (default) and `focus` is omitted, the new target is focused and the browser window is brought to the foreground.\n- If `background` is false and `focus` is false, the target is opened but the browser window's focus remains unchanged (e.g., if the window was in the background, it stays there).\n- If `background` is true, setting `focus` to true is not supported and will result in an error.",
|
|
29306
29358
|
"experimental": true,
|
|
29307
29359
|
"optional": true,
|
|
29308
29360
|
"type": "boolean"
|
|
@@ -29983,6 +30035,20 @@
|
|
|
29983
30035
|
"experimental": true,
|
|
29984
30036
|
"optional": true,
|
|
29985
30037
|
"$ref": "TracingBackend"
|
|
30038
|
+
},
|
|
30039
|
+
{
|
|
30040
|
+
"name": "screenshotMaxSize",
|
|
30041
|
+
"description": "Maximum width and height (in pixels) of each captured screenshot.\nOnly used when the `disabled-by-default-devtools.screenshot` category is\nenabled. Defaults to 500. The combined memory footprint of screenshots\n(`screenshotMaxSize` * `screenshotMaxSize` * 4 * `screenshotMaxCount`)\nis clamped to the existing per-session budget.",
|
|
30042
|
+
"experimental": true,
|
|
30043
|
+
"optional": true,
|
|
30044
|
+
"type": "integer"
|
|
30045
|
+
},
|
|
30046
|
+
{
|
|
30047
|
+
"name": "screenshotMaxCount",
|
|
30048
|
+
"description": "Maximum number of screenshots captured during a single tracing session.\nOnly used when the `disabled-by-default-devtools.screenshot` category is\nenabled. Defaults to 450. Clamped together with `screenshotMaxSize` to\nstay within the per-session screenshot memory budget.",
|
|
30049
|
+
"experimental": true,
|
|
30050
|
+
"optional": true,
|
|
30051
|
+
"type": "integer"
|
|
29986
30052
|
}
|
|
29987
30053
|
]
|
|
29988
30054
|
}
|
package/package.json
CHANGED
package/pdl/domains/Ads.pdl
CHANGED
|
@@ -8,6 +8,19 @@ experimental domain Ads
|
|
|
8
8
|
depends on Page
|
|
9
9
|
depends on Runtime
|
|
10
10
|
|
|
11
|
+
# Ad frame data.
|
|
12
|
+
type AdFrameData extends object
|
|
13
|
+
properties
|
|
14
|
+
# The DevTools frame token.
|
|
15
|
+
Page.FrameId frameId
|
|
16
|
+
# The initial origin of the frame. To minimize the payload size, this is
|
|
17
|
+
# only sent once per frame.
|
|
18
|
+
optional string initialOrigin
|
|
19
|
+
# The network bytes of the frame.
|
|
20
|
+
number networkBytes
|
|
21
|
+
# The CPU time of the frame, in milliseconds.
|
|
22
|
+
number cpuTime
|
|
23
|
+
|
|
11
24
|
# Ad metrics for a page.
|
|
12
25
|
type AdMetrics extends object
|
|
13
26
|
properties
|
|
@@ -26,6 +39,10 @@ experimental domain Ads
|
|
|
26
39
|
number totalAdCpuTime
|
|
27
40
|
# The total ad network bytes.
|
|
28
41
|
number totalAdNetworkBytes
|
|
42
|
+
# The list of ad frames that have been updated since the last event.
|
|
43
|
+
array of AdFrameData updateAdFrames
|
|
44
|
+
# The list of ad frame IDs that have been removed since the last event.
|
|
45
|
+
array of Page.FrameId removeAdFrames
|
|
29
46
|
|
|
30
47
|
# Retrieves ad metrics for the current page.
|
|
31
48
|
command getAdMetrics
|
package/pdl/domains/DOM.pdl
CHANGED
package/pdl/domains/Page.pdl
CHANGED
|
@@ -640,6 +640,13 @@ domain Page
|
|
|
640
640
|
# Whether or not universal access should be granted to the isolated world. This is a powerful
|
|
641
641
|
# option, use with caution.
|
|
642
642
|
optional boolean grantUniveralAccess
|
|
643
|
+
# An optional content security policy to set for the isolated world.
|
|
644
|
+
# If omitted, any existing CSP for the world will be cleared.
|
|
645
|
+
# Note that clearing or updating the CSP does not immediately affect the active
|
|
646
|
+
# context in the same document because LocalDOMWindow caches the
|
|
647
|
+
# ContentSecurityPolicy object. The change takes effect on subsequent
|
|
648
|
+
# navigations when a new window context is created.
|
|
649
|
+
optional string contentSecurityPolicy
|
|
643
650
|
returns
|
|
644
651
|
# Execution context of the isolated world.
|
|
645
652
|
Runtime.ExecutionContextId executionContextId
|
package/pdl/domains/Target.pdl
CHANGED
|
@@ -173,13 +173,11 @@ domain Target
|
|
|
173
173
|
# present in the tab UI strip. Cannot be created with `forTab: true`, `newWindow: true` or
|
|
174
174
|
# `background: false`. The life-time of the tab is limited to the life-time of the session.
|
|
175
175
|
experimental optional boolean hidden
|
|
176
|
-
# If specified,
|
|
177
|
-
#
|
|
178
|
-
#
|
|
179
|
-
#
|
|
180
|
-
#
|
|
181
|
-
# and background=false with focus=undefined will result in the window being focused.
|
|
182
|
-
# Using background: true and focus: true is not supported and will result in an error.
|
|
176
|
+
# If specified, determines whether the new target should be focused.
|
|
177
|
+
# By default, the focus behavior depends on the `background` parameter:
|
|
178
|
+
# - If `background` is false (default) and `focus` is omitted, the new target is focused and the browser window is brought to the foreground.
|
|
179
|
+
# - If `background` is false and `focus` is false, the target is opened but the browser window's focus remains unchanged (e.g., if the window was in the background, it stays there).
|
|
180
|
+
# - If `background` is true, setting `focus` to true is not supported and will result in an error.
|
|
183
181
|
experimental optional boolean focus
|
|
184
182
|
returns
|
|
185
183
|
# The id of the page opened.
|
package/pdl/domains/Tracing.pdl
CHANGED
|
@@ -130,6 +130,17 @@ domain Tracing
|
|
|
130
130
|
experimental optional binary perfettoConfig
|
|
131
131
|
# Backend type (defaults to `auto`)
|
|
132
132
|
experimental optional TracingBackend tracingBackend
|
|
133
|
+
# Maximum width and height (in pixels) of each captured screenshot.
|
|
134
|
+
# Only used when the `disabled-by-default-devtools.screenshot` category is
|
|
135
|
+
# enabled. Defaults to 500. The combined memory footprint of screenshots
|
|
136
|
+
# (`screenshotMaxSize` * `screenshotMaxSize` * 4 * `screenshotMaxCount`)
|
|
137
|
+
# is clamped to the existing per-session budget.
|
|
138
|
+
experimental optional integer screenshotMaxSize
|
|
139
|
+
# Maximum number of screenshots captured during a single tracing session.
|
|
140
|
+
# Only used when the `disabled-by-default-devtools.screenshot` category is
|
|
141
|
+
# enabled. Defaults to 450. Clamped together with `screenshotMaxSize` to
|
|
142
|
+
# stay within the per-session screenshot memory budget.
|
|
143
|
+
experimental optional integer screenshotMaxCount
|
|
133
144
|
|
|
134
145
|
experimental event bufferUsage
|
|
135
146
|
parameters
|
package/types/protocol.d.ts
CHANGED
|
@@ -3124,6 +3124,29 @@ export namespace Protocol {
|
|
|
3124
3124
|
*/
|
|
3125
3125
|
export namespace Ads {
|
|
3126
3126
|
|
|
3127
|
+
/**
|
|
3128
|
+
* Ad frame data.
|
|
3129
|
+
*/
|
|
3130
|
+
export interface AdFrameData {
|
|
3131
|
+
/**
|
|
3132
|
+
* The DevTools frame token.
|
|
3133
|
+
*/
|
|
3134
|
+
frameId: Page.FrameId;
|
|
3135
|
+
/**
|
|
3136
|
+
* The initial origin of the frame. To minimize the payload size, this is
|
|
3137
|
+
* only sent once per frame.
|
|
3138
|
+
*/
|
|
3139
|
+
initialOrigin?: string;
|
|
3140
|
+
/**
|
|
3141
|
+
* The network bytes of the frame.
|
|
3142
|
+
*/
|
|
3143
|
+
networkBytes: number;
|
|
3144
|
+
/**
|
|
3145
|
+
* The CPU time of the frame, in milliseconds.
|
|
3146
|
+
*/
|
|
3147
|
+
cpuTime: number;
|
|
3148
|
+
}
|
|
3149
|
+
|
|
3127
3150
|
/**
|
|
3128
3151
|
* Ad metrics for a page.
|
|
3129
3152
|
*/
|
|
@@ -3155,6 +3178,14 @@ export namespace Protocol {
|
|
|
3155
3178
|
* The total ad network bytes.
|
|
3156
3179
|
*/
|
|
3157
3180
|
totalAdNetworkBytes: number;
|
|
3181
|
+
/**
|
|
3182
|
+
* The list of ad frames that have been updated since the last event.
|
|
3183
|
+
*/
|
|
3184
|
+
updateAdFrames: AdFrameData[];
|
|
3185
|
+
/**
|
|
3186
|
+
* The list of ad frame IDs that have been removed since the last event.
|
|
3187
|
+
*/
|
|
3188
|
+
removeAdFrames: Page.FrameId[];
|
|
3158
3189
|
}
|
|
3159
3190
|
|
|
3160
3191
|
export interface GetAdMetricsResponse {
|
|
@@ -7020,7 +7051,7 @@ export namespace Protocol {
|
|
|
7020
7051
|
/**
|
|
7021
7052
|
* Pseudo element type.
|
|
7022
7053
|
*/
|
|
7023
|
-
export type PseudoType = ('first-line' | 'first-letter' | 'checkmark' | 'before' | 'after' | 'expand-icon' | 'picker-icon' | 'interest-button' | 'marker' | 'backdrop' | 'column' | 'selection' | 'search-text' | 'target-text' | 'spelling-error' | 'grammar-error' | 'highlight' | 'first-line-inherited' | 'scroll-marker' | 'scroll-marker-group' | 'scroll-button' | 'scrollbar' | 'scrollbar-thumb' | 'scrollbar-button' | 'scrollbar-track' | 'scrollbar-track-piece' | 'scrollbar-corner' | 'resizer' | 'input-list-button' | 'view-transition' | 'view-transition-group' | 'view-transition-image-pair' | 'view-transition-group-children' | 'view-transition-old' | 'view-transition-new' | 'placeholder' | 'file-selector-button' | 'details-content' | 'picker' | 'permission-icon' | 'overscroll-area-parent' | 'skeleton');
|
|
7054
|
+
export type PseudoType = ('first-line' | 'first-letter' | 'checkmark' | 'before' | 'after' | 'expand-icon' | 'picker-icon' | 'interest-button' | 'marker' | 'backdrop' | 'column' | 'selection' | 'search-text' | 'target-text' | 'spelling-error' | 'grammar-error' | 'highlight' | 'first-line-inherited' | 'scroll-marker' | 'scroll-marker-group' | 'scroll-button' | 'scrollbar' | 'scrollbar-thumb' | 'scrollbar-button' | 'scrollbar-track' | 'scrollbar-track-piece' | 'scrollbar-corner' | 'resizer' | 'input-list-button' | 'view-transition' | 'view-transition-group' | 'view-transition-image-pair' | 'view-transition-group-children' | 'view-transition-old' | 'view-transition-new' | 'placeholder' | 'file-selector-button' | 'details-content' | 'picker' | 'select-listbox' | 'permission-icon' | 'overscroll-area-parent' | 'overscroll-backdrop' | 'skeleton');
|
|
7024
7055
|
|
|
7025
7056
|
/**
|
|
7026
7057
|
* Shadow root type.
|
|
@@ -17645,6 +17676,15 @@ export namespace Protocol {
|
|
|
17645
17676
|
* option, use with caution.
|
|
17646
17677
|
*/
|
|
17647
17678
|
grantUniveralAccess?: boolean;
|
|
17679
|
+
/**
|
|
17680
|
+
* An optional content security policy to set for the isolated world.
|
|
17681
|
+
* If omitted, any existing CSP for the world will be cleared.
|
|
17682
|
+
* Note that clearing or updating the CSP does not immediately affect the active
|
|
17683
|
+
* context in the same document because LocalDOMWindow caches the
|
|
17684
|
+
* ContentSecurityPolicy object. The change takes effect on subsequent
|
|
17685
|
+
* navigations when a new window context is created.
|
|
17686
|
+
*/
|
|
17687
|
+
contentSecurityPolicy?: string;
|
|
17648
17688
|
}
|
|
17649
17689
|
|
|
17650
17690
|
export interface CreateIsolatedWorldResponse {
|
|
@@ -21147,13 +21187,11 @@ export namespace Protocol {
|
|
|
21147
21187
|
*/
|
|
21148
21188
|
hidden?: boolean;
|
|
21149
21189
|
/**
|
|
21150
|
-
* If specified,
|
|
21151
|
-
*
|
|
21152
|
-
*
|
|
21153
|
-
*
|
|
21154
|
-
*
|
|
21155
|
-
* and background=false with focus=undefined will result in the window being focused.
|
|
21156
|
-
* Using background: true and focus: true is not supported and will result in an error.
|
|
21190
|
+
* If specified, determines whether the new target should be focused.
|
|
21191
|
+
* By default, the focus behavior depends on the `background` parameter:
|
|
21192
|
+
* - If `background` is false (default) and `focus` is omitted, the new target is focused and the browser window is brought to the foreground.
|
|
21193
|
+
* - If `background` is false and `focus` is false, the target is opened but the browser window's focus remains unchanged (e.g., if the window was in the background, it stays there).
|
|
21194
|
+
* - If `background` is true, setting `focus` to true is not supported and will result in an error.
|
|
21157
21195
|
* @experimental
|
|
21158
21196
|
*/
|
|
21159
21197
|
focus?: boolean;
|
|
@@ -21622,6 +21660,23 @@ export namespace Protocol {
|
|
|
21622
21660
|
* @experimental
|
|
21623
21661
|
*/
|
|
21624
21662
|
tracingBackend?: TracingBackend;
|
|
21663
|
+
/**
|
|
21664
|
+
* Maximum width and height (in pixels) of each captured screenshot.
|
|
21665
|
+
* Only used when the `disabled-by-default-devtools.screenshot` category is
|
|
21666
|
+
* enabled. Defaults to 500. The combined memory footprint of screenshots
|
|
21667
|
+
* (`screenshotMaxSize` * `screenshotMaxSize` * 4 * `screenshotMaxCount`)
|
|
21668
|
+
* is clamped to the existing per-session budget.
|
|
21669
|
+
* @experimental
|
|
21670
|
+
*/
|
|
21671
|
+
screenshotMaxSize?: integer;
|
|
21672
|
+
/**
|
|
21673
|
+
* Maximum number of screenshots captured during a single tracing session.
|
|
21674
|
+
* Only used when the `disabled-by-default-devtools.screenshot` category is
|
|
21675
|
+
* enabled. Defaults to 450. Clamped together with `screenshotMaxSize` to
|
|
21676
|
+
* stay within the per-session screenshot memory budget.
|
|
21677
|
+
* @experimental
|
|
21678
|
+
*/
|
|
21679
|
+
screenshotMaxCount?: integer;
|
|
21625
21680
|
}
|
|
21626
21681
|
|
|
21627
21682
|
/**
|