devtools-protocol 0.0.1704684 → 0.0.1707781
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 +41 -0
- package/json/js_protocol.json +1 -1
- package/package.json +1 -1
- package/pdl/browser_protocol.pdl +1 -0
- package/pdl/domains/Emulation.pdl +8 -0
- package/pdl/domains/FindInPage.pdl +22 -0
- package/pdl/domains/Page.pdl +1 -0
- package/pdl/js_protocol.pdl +1 -1
- package/types/protocol-mapping.d.ts +31 -0
- package/types/protocol-proxy-api.d.ts +28 -0
- package/types/protocol-tests-proxy-api.d.ts +28 -0
- package/types/protocol.d.ts +24 -2
|
@@ -11603,6 +11603,17 @@
|
|
|
11603
11603
|
"enable",
|
|
11604
11604
|
"default"
|
|
11605
11605
|
]
|
|
11606
|
+
},
|
|
11607
|
+
{
|
|
11608
|
+
"name": "textLayoutMode",
|
|
11609
|
+
"description": "Text layout mode. Default: `default`. Note: if `mobile` is `true`,\nmobile text layout mode (text autosizing) is always enabled.",
|
|
11610
|
+
"experimental": true,
|
|
11611
|
+
"optional": true,
|
|
11612
|
+
"type": "string",
|
|
11613
|
+
"enum": [
|
|
11614
|
+
"mobile",
|
|
11615
|
+
"default"
|
|
11616
|
+
]
|
|
11606
11617
|
}
|
|
11607
11618
|
]
|
|
11608
11619
|
},
|
|
@@ -13350,6 +13361,35 @@
|
|
|
13350
13361
|
}
|
|
13351
13362
|
]
|
|
13352
13363
|
},
|
|
13364
|
+
{
|
|
13365
|
+
"domain": "FindInPage",
|
|
13366
|
+
"description": "This domain provides commands to trigger the \"Find in page\" feature.",
|
|
13367
|
+
"experimental": true,
|
|
13368
|
+
"commands": [
|
|
13369
|
+
{
|
|
13370
|
+
"name": "findFirst",
|
|
13371
|
+
"description": "Forwards `query` to the find-in-page facility, starting a new find session.\nWhere exactly the search starts from is implementation-specific.",
|
|
13372
|
+
"parameters": [
|
|
13373
|
+
{
|
|
13374
|
+
"name": "query",
|
|
13375
|
+
"type": "string"
|
|
13376
|
+
}
|
|
13377
|
+
]
|
|
13378
|
+
},
|
|
13379
|
+
{
|
|
13380
|
+
"name": "findNext",
|
|
13381
|
+
"description": "Moves to the next match for the query passed to the most recent\nfindFirst() call."
|
|
13382
|
+
},
|
|
13383
|
+
{
|
|
13384
|
+
"name": "findPrev",
|
|
13385
|
+
"description": "Moves to the previous match for the query passed to the most recent\nfindFirst() call."
|
|
13386
|
+
},
|
|
13387
|
+
{
|
|
13388
|
+
"name": "stop",
|
|
13389
|
+
"description": "Ends the current find session, if any, and clears its highlighting."
|
|
13390
|
+
}
|
|
13391
|
+
]
|
|
13392
|
+
},
|
|
13353
13393
|
{
|
|
13354
13394
|
"domain": "HeadlessExperimental",
|
|
13355
13395
|
"description": "This domain provides experimental commands only supported in headless mode.",
|
|
@@ -22075,6 +22115,7 @@
|
|
|
22075
22115
|
"private-state-token-redemption",
|
|
22076
22116
|
"publickey-credentials-create",
|
|
22077
22117
|
"publickey-credentials-get",
|
|
22118
|
+
"publickey-credentials-remote-client-data-json",
|
|
22078
22119
|
"rewriter",
|
|
22079
22120
|
"screen-wake-lock",
|
|
22080
22121
|
"serial",
|
package/json/js_protocol.json
CHANGED
|
@@ -283,7 +283,7 @@
|
|
|
283
283
|
},
|
|
284
284
|
{
|
|
285
285
|
"name": "empty",
|
|
286
|
-
"description": "True if the scope does not declare any variables
|
|
286
|
+
"description": "True if the scope does not declare any variables.\nOnly present if true.\nEmpty scopes are retained in the scope chain because\nthey can be targeted via `evaluateOnCallFrame` (using `scopeNumber`) or\nmatched against scopes in source maps.",
|
|
287
287
|
"experimental": true,
|
|
288
288
|
"optional": true,
|
|
289
289
|
"type": "boolean"
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
|
@@ -330,6 +330,14 @@ domain Emulation
|
|
|
330
330
|
# Restores the default viewport meta behavior (disabled on desktop,
|
|
331
331
|
# enabled on mobile).
|
|
332
332
|
default
|
|
333
|
+
# Text layout mode. Default: `default`. Note: if `mobile` is `true`,
|
|
334
|
+
# mobile text layout mode (text autosizing) is always enabled.
|
|
335
|
+
experimental optional enum textLayoutMode
|
|
336
|
+
# Enables mobile text layout mode (text autosizing / CSS text-size-adjust).
|
|
337
|
+
mobile
|
|
338
|
+
# Restores the default text layout mode behavior (disabled on desktop,
|
|
339
|
+
# enabled on mobile).
|
|
340
|
+
default
|
|
333
341
|
|
|
334
342
|
# Start reporting the given posture value to the Device Posture API.
|
|
335
343
|
# This override can also be set in setDeviceMetricsOverride().
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Copyright 2026 The Chromium Authors
|
|
2
|
+
# Use of this source code is governed by a BSD-style license that can be
|
|
3
|
+
# found in the LICENSE file.
|
|
4
|
+
|
|
5
|
+
# This domain provides commands to trigger the "Find in page" feature.
|
|
6
|
+
experimental domain FindInPage
|
|
7
|
+
# Forwards `query` to the find-in-page facility, starting a new find session.
|
|
8
|
+
# Where exactly the search starts from is implementation-specific.
|
|
9
|
+
command findFirst
|
|
10
|
+
parameters
|
|
11
|
+
string query
|
|
12
|
+
|
|
13
|
+
# Moves to the next match for the query passed to the most recent
|
|
14
|
+
# findFirst() call.
|
|
15
|
+
command findNext
|
|
16
|
+
|
|
17
|
+
# Moves to the previous match for the query passed to the most recent
|
|
18
|
+
# findFirst() call.
|
|
19
|
+
command findPrev
|
|
20
|
+
|
|
21
|
+
# Ends the current find session, if any, and clears its highlighting.
|
|
22
|
+
command stop
|
package/pdl/domains/Page.pdl
CHANGED
package/pdl/js_protocol.pdl
CHANGED
|
@@ -143,7 +143,7 @@ domain Debugger
|
|
|
143
143
|
optional Location startLocation
|
|
144
144
|
# Location in the source code where scope ends
|
|
145
145
|
optional Location endLocation
|
|
146
|
-
# True if the scope does not declare any variables
|
|
146
|
+
# True if the scope does not declare any variables.
|
|
147
147
|
# Only present if true.
|
|
148
148
|
# Empty scopes are retained in the scope chain because
|
|
149
149
|
# they can be targeted via `evaluateOnCallFrame` (using `scopeNumber`) or
|
|
@@ -3890,6 +3890,37 @@ export namespace ProtocolMapping {
|
|
|
3890
3890
|
paramsType: [Protocol.FileSystem.GetDirectoryRequest];
|
|
3891
3891
|
returnType: Protocol.FileSystem.GetDirectoryResponse;
|
|
3892
3892
|
};
|
|
3893
|
+
/**
|
|
3894
|
+
* Forwards `query` to the find-in-page facility, starting a new find session.
|
|
3895
|
+
* Where exactly the search starts from is implementation-specific.
|
|
3896
|
+
*/
|
|
3897
|
+
'FindInPage.findFirst': {
|
|
3898
|
+
paramsType: [Protocol.FindInPage.FindFirstRequest];
|
|
3899
|
+
returnType: void;
|
|
3900
|
+
};
|
|
3901
|
+
/**
|
|
3902
|
+
* Moves to the next match for the query passed to the most recent
|
|
3903
|
+
* findFirst() call.
|
|
3904
|
+
*/
|
|
3905
|
+
'FindInPage.findNext': {
|
|
3906
|
+
paramsType: [];
|
|
3907
|
+
returnType: void;
|
|
3908
|
+
};
|
|
3909
|
+
/**
|
|
3910
|
+
* Moves to the previous match for the query passed to the most recent
|
|
3911
|
+
* findFirst() call.
|
|
3912
|
+
*/
|
|
3913
|
+
'FindInPage.findPrev': {
|
|
3914
|
+
paramsType: [];
|
|
3915
|
+
returnType: void;
|
|
3916
|
+
};
|
|
3917
|
+
/**
|
|
3918
|
+
* Ends the current find session, if any, and clears its highlighting.
|
|
3919
|
+
*/
|
|
3920
|
+
'FindInPage.stop': {
|
|
3921
|
+
paramsType: [];
|
|
3922
|
+
returnType: void;
|
|
3923
|
+
};
|
|
3893
3924
|
/**
|
|
3894
3925
|
* Sends a BeginFrame to the target and returns when the frame was completed. Optionally captures a
|
|
3895
3926
|
* screenshot from the resulting frame. Requires that the target was created with enabled
|
|
@@ -76,6 +76,8 @@ export namespace ProtocolProxyApi {
|
|
|
76
76
|
|
|
77
77
|
FileSystem: FileSystemApi;
|
|
78
78
|
|
|
79
|
+
FindInPage: FindInPageApi;
|
|
80
|
+
|
|
79
81
|
HeadlessExperimental: HeadlessExperimentalApi;
|
|
80
82
|
|
|
81
83
|
IO: IOApi;
|
|
@@ -2705,6 +2707,32 @@ export namespace ProtocolProxyApi {
|
|
|
2705
2707
|
|
|
2706
2708
|
}
|
|
2707
2709
|
|
|
2710
|
+
export interface FindInPageApi {
|
|
2711
|
+
/**
|
|
2712
|
+
* Forwards `query` to the find-in-page facility, starting a new find session.
|
|
2713
|
+
* Where exactly the search starts from is implementation-specific.
|
|
2714
|
+
*/
|
|
2715
|
+
findFirst(params: Protocol.FindInPage.FindFirstRequest): Promise<void>;
|
|
2716
|
+
|
|
2717
|
+
/**
|
|
2718
|
+
* Moves to the next match for the query passed to the most recent
|
|
2719
|
+
* findFirst() call.
|
|
2720
|
+
*/
|
|
2721
|
+
findNext(): Promise<void>;
|
|
2722
|
+
|
|
2723
|
+
/**
|
|
2724
|
+
* Moves to the previous match for the query passed to the most recent
|
|
2725
|
+
* findFirst() call.
|
|
2726
|
+
*/
|
|
2727
|
+
findPrev(): Promise<void>;
|
|
2728
|
+
|
|
2729
|
+
/**
|
|
2730
|
+
* Ends the current find session, if any, and clears its highlighting.
|
|
2731
|
+
*/
|
|
2732
|
+
stop(): Promise<void>;
|
|
2733
|
+
|
|
2734
|
+
}
|
|
2735
|
+
|
|
2708
2736
|
export interface HeadlessExperimentalApi {
|
|
2709
2737
|
/**
|
|
2710
2738
|
* Sends a BeginFrame to the target and returns when the frame was completed. Optionally captures a
|
|
@@ -76,6 +76,8 @@ export namespace ProtocolTestsProxyApi {
|
|
|
76
76
|
|
|
77
77
|
FileSystem: FileSystemApi;
|
|
78
78
|
|
|
79
|
+
FindInPage: FindInPageApi;
|
|
80
|
+
|
|
79
81
|
HeadlessExperimental: HeadlessExperimentalApi;
|
|
80
82
|
|
|
81
83
|
IO: IOApi;
|
|
@@ -2855,6 +2857,32 @@ export namespace ProtocolTestsProxyApi {
|
|
|
2855
2857
|
|
|
2856
2858
|
}
|
|
2857
2859
|
|
|
2860
|
+
export interface FindInPageApi {
|
|
2861
|
+
/**
|
|
2862
|
+
* Forwards `query` to the find-in-page facility, starting a new find session.
|
|
2863
|
+
* Where exactly the search starts from is implementation-specific.
|
|
2864
|
+
*/
|
|
2865
|
+
findFirst(params: Protocol.FindInPage.FindFirstRequest): Promise<{id: number, result: void, sessionId: string}>;
|
|
2866
|
+
|
|
2867
|
+
/**
|
|
2868
|
+
* Moves to the next match for the query passed to the most recent
|
|
2869
|
+
* findFirst() call.
|
|
2870
|
+
*/
|
|
2871
|
+
findNext(): Promise<{id: number, result: void, sessionId: string}>;
|
|
2872
|
+
|
|
2873
|
+
/**
|
|
2874
|
+
* Moves to the previous match for the query passed to the most recent
|
|
2875
|
+
* findFirst() call.
|
|
2876
|
+
*/
|
|
2877
|
+
findPrev(): Promise<{id: number, result: void, sessionId: string}>;
|
|
2878
|
+
|
|
2879
|
+
/**
|
|
2880
|
+
* Ends the current find session, if any, and clears its highlighting.
|
|
2881
|
+
*/
|
|
2882
|
+
stop(): Promise<{id: number, result: void, sessionId: string}>;
|
|
2883
|
+
|
|
2884
|
+
}
|
|
2885
|
+
|
|
2858
2886
|
export interface HeadlessExperimentalApi {
|
|
2859
2887
|
/**
|
|
2860
2888
|
* Sends a BeginFrame to the target and returns when the frame was completed. Optionally captures a
|
package/types/protocol.d.ts
CHANGED
|
@@ -223,7 +223,7 @@ export namespace Protocol {
|
|
|
223
223
|
*/
|
|
224
224
|
endLocation?: Location;
|
|
225
225
|
/**
|
|
226
|
-
* True if the scope does not declare any variables
|
|
226
|
+
* True if the scope does not declare any variables.
|
|
227
227
|
* Only present if true.
|
|
228
228
|
* Empty scopes are retained in the scope chain because
|
|
229
229
|
* they can be targeted via `evaluateOnCallFrame` (using `scopeNumber`) or
|
|
@@ -9777,6 +9777,11 @@ export namespace Protocol {
|
|
|
9777
9777
|
Default = 'default',
|
|
9778
9778
|
}
|
|
9779
9779
|
|
|
9780
|
+
export const enum SetDeviceMetricsOverrideRequestTextLayoutMode {
|
|
9781
|
+
Mobile = 'mobile',
|
|
9782
|
+
Default = 'default',
|
|
9783
|
+
}
|
|
9784
|
+
|
|
9780
9785
|
export interface SetDeviceMetricsOverrideRequest {
|
|
9781
9786
|
/**
|
|
9782
9787
|
* Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override.
|
|
@@ -9871,6 +9876,12 @@ export namespace Protocol {
|
|
|
9871
9876
|
* @experimental
|
|
9872
9877
|
*/
|
|
9873
9878
|
viewportMeta?: ('enable' | 'default');
|
|
9879
|
+
/**
|
|
9880
|
+
* Text layout mode. Default: `default`. Note: if `mobile` is `true`,
|
|
9881
|
+
* mobile text layout mode (text autosizing) is always enabled.
|
|
9882
|
+
* @experimental
|
|
9883
|
+
*/
|
|
9884
|
+
textLayoutMode?: ('mobile' | 'default');
|
|
9874
9885
|
}
|
|
9875
9886
|
|
|
9876
9887
|
export interface SetDevicePostureOverrideRequest {
|
|
@@ -10951,6 +10962,17 @@ export namespace Protocol {
|
|
|
10951
10962
|
}
|
|
10952
10963
|
}
|
|
10953
10964
|
|
|
10965
|
+
/**
|
|
10966
|
+
* This domain provides commands to trigger the "Find in page" feature.
|
|
10967
|
+
* @experimental
|
|
10968
|
+
*/
|
|
10969
|
+
export namespace FindInPage {
|
|
10970
|
+
|
|
10971
|
+
export interface FindFirstRequest {
|
|
10972
|
+
query: string;
|
|
10973
|
+
}
|
|
10974
|
+
}
|
|
10975
|
+
|
|
10954
10976
|
/**
|
|
10955
10977
|
* This domain provides experimental commands only supported in headless mode.
|
|
10956
10978
|
* @experimental
|
|
@@ -16826,7 +16848,7 @@ export namespace Protocol {
|
|
|
16826
16848
|
* in services/network/public/cpp/permissions_policy/permissions_policy_features.json5.
|
|
16827
16849
|
* @experimental
|
|
16828
16850
|
*/
|
|
16829
|
-
export type PermissionsPolicyFeature = ('accelerometer' | 'all-screens-capture' | 'ambient-light-sensor' | 'aria-notify' | 'autofill' | 'autoplay' | 'bluetooth' | 'browsing-topics' | 'camera' | 'captured-surface-control' | 'ch-dpr' | 'ch-device-memory' | 'ch-downlink' | 'ch-ect' | 'ch-prefers-color-scheme' | 'ch-prefers-reduced-motion' | 'ch-prefers-reduced-transparency' | 'ch-rtt' | 'ch-save-data' | 'ch-ua' | 'ch-ua-arch' | 'ch-ua-bitness' | 'ch-ua-high-entropy-values' | 'ch-ua-platform' | 'ch-ua-model' | 'ch-ua-mobile' | 'ch-ua-form-factors' | 'ch-ua-full-version' | 'ch-ua-full-version-list' | 'ch-ua-platform-version' | 'ch-ua-wow64' | 'ch-viewport-height' | 'ch-viewport-width' | 'ch-width' | 'clipboard-read' | 'clipboard-write' | 'compute-pressure' | 'controlled-frame' | 'cross-origin-isolated' | 'deferred-fetch' | 'deferred-fetch-minimal' | 'device-attributes' | 'digital-credentials-create' | 'digital-credentials-get' | 'direct-sockets' | 'direct-sockets-multicast' | 'display-capture' | 'document-domain' | 'encrypted-media' | 'execution-while-out-of-viewport' | 'execution-while-not-rendered' | 'focus-without-user-activation' | 'fullscreen' | 'frobulate' | 'gamepad' | 'geolocation' | 'gyroscope' | 'haptics' | 'hid' | 'identity-credentials-get' | 'idle-detection' | 'interest-cohort' | 'keyboard-map' | 'language-detector' | 'language-model' | 'local-fonts' | 'local-network' | 'local-network-access' | 'loopback-network' | 'magnetometer' | 'manual-text' | 'media-playback-while-not-visible' | 'microphone' | 'midi' | 'on-device-speech-recognition' | 'otp-credentials' | 'payment' | 'picture-in-picture' | 'private-state-token-issuance' | 'private-state-token-redemption' | 'publickey-credentials-create' | 'publickey-credentials-get' | 'rewriter' | 'screen-wake-lock' | 'serial' | 'shared-storage' | 'shared-storage-select-url' | 'smart-card' | 'speaker-selection' | 'storage-access' | 'sub-apps' | 'summarizer' | 'sync-xhr' | 'tools' | 'translator' | 'unload' | 'usb' | 'usb-unrestricted' | 'vertical-scroll' | 'web-app-installation' | 'webnn' | 'web-printing' | 'web-share' | 'window-management' | 'writer' | 'xr-spatial-tracking');
|
|
16851
|
+
export type PermissionsPolicyFeature = ('accelerometer' | 'all-screens-capture' | 'ambient-light-sensor' | 'aria-notify' | 'autofill' | 'autoplay' | 'bluetooth' | 'browsing-topics' | 'camera' | 'captured-surface-control' | 'ch-dpr' | 'ch-device-memory' | 'ch-downlink' | 'ch-ect' | 'ch-prefers-color-scheme' | 'ch-prefers-reduced-motion' | 'ch-prefers-reduced-transparency' | 'ch-rtt' | 'ch-save-data' | 'ch-ua' | 'ch-ua-arch' | 'ch-ua-bitness' | 'ch-ua-high-entropy-values' | 'ch-ua-platform' | 'ch-ua-model' | 'ch-ua-mobile' | 'ch-ua-form-factors' | 'ch-ua-full-version' | 'ch-ua-full-version-list' | 'ch-ua-platform-version' | 'ch-ua-wow64' | 'ch-viewport-height' | 'ch-viewport-width' | 'ch-width' | 'clipboard-read' | 'clipboard-write' | 'compute-pressure' | 'controlled-frame' | 'cross-origin-isolated' | 'deferred-fetch' | 'deferred-fetch-minimal' | 'device-attributes' | 'digital-credentials-create' | 'digital-credentials-get' | 'direct-sockets' | 'direct-sockets-multicast' | 'display-capture' | 'document-domain' | 'encrypted-media' | 'execution-while-out-of-viewport' | 'execution-while-not-rendered' | 'focus-without-user-activation' | 'fullscreen' | 'frobulate' | 'gamepad' | 'geolocation' | 'gyroscope' | 'haptics' | 'hid' | 'identity-credentials-get' | 'idle-detection' | 'interest-cohort' | 'keyboard-map' | 'language-detector' | 'language-model' | 'local-fonts' | 'local-network' | 'local-network-access' | 'loopback-network' | 'magnetometer' | 'manual-text' | 'media-playback-while-not-visible' | 'microphone' | 'midi' | 'on-device-speech-recognition' | 'otp-credentials' | 'payment' | 'picture-in-picture' | 'private-state-token-issuance' | 'private-state-token-redemption' | 'publickey-credentials-create' | 'publickey-credentials-get' | 'publickey-credentials-remote-client-data-json' | 'rewriter' | 'screen-wake-lock' | 'serial' | 'shared-storage' | 'shared-storage-select-url' | 'smart-card' | 'speaker-selection' | 'storage-access' | 'sub-apps' | 'summarizer' | 'sync-xhr' | 'tools' | 'translator' | 'unload' | 'usb' | 'usb-unrestricted' | 'vertical-scroll' | 'web-app-installation' | 'webnn' | 'web-printing' | 'web-share' | 'window-management' | 'writer' | 'xr-spatial-tracking');
|
|
16830
16852
|
|
|
16831
16853
|
/**
|
|
16832
16854
|
* Reason for a permissions policy feature to be disabled.
|