devtools-protocol 0.0.1301748 → 0.0.1302984
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 +15 -0
- package/json/js_protocol.json +4 -26
- package/package.json +1 -1
- package/pdl/browser_protocol.pdl +6 -0
- package/pdl/js_protocol.pdl +4 -15
- package/types/protocol.d.ts +12 -19
@@ -1696,6 +1696,14 @@
|
|
1696
1696
|
"items": {
|
1697
1697
|
"type": "string"
|
1698
1698
|
}
|
1699
|
+
},
|
1700
|
+
{
|
1701
|
+
"name": "optOutPercentage",
|
1702
|
+
"type": "number"
|
1703
|
+
},
|
1704
|
+
{
|
1705
|
+
"name": "isOptOutTopLevel",
|
1706
|
+
"type": "boolean"
|
1699
1707
|
}
|
1700
1708
|
]
|
1701
1709
|
},
|
@@ -18885,6 +18893,13 @@
|
|
18885
18893
|
"description": "If set, the script will be injected into all frames of the inspected page after reload.\nArgument will be ignored if reloading dataURL origin.",
|
18886
18894
|
"optional": true,
|
18887
18895
|
"type": "string"
|
18896
|
+
},
|
18897
|
+
{
|
18898
|
+
"name": "loaderId",
|
18899
|
+
"description": "If set, an error will be thrown if the target page's main frame's\nloader id does not match the provided id. This prevents accidentally\nreloading an unintended target in case there's a racing navigation.",
|
18900
|
+
"experimental": true,
|
18901
|
+
"optional": true,
|
18902
|
+
"$ref": "Network.LoaderId"
|
18888
18903
|
}
|
18889
18904
|
]
|
18890
18905
|
},
|
package/json/js_protocol.json
CHANGED
@@ -2675,11 +2675,6 @@
|
|
2675
2675
|
"description": "Id of an execution context.",
|
2676
2676
|
"type": "integer"
|
2677
2677
|
},
|
2678
|
-
{
|
2679
|
-
"id": "ExecutionContextUniqueId",
|
2680
|
-
"description": "Id of an execution context that is unique across processes\n(unlike ExecutionContextId).",
|
2681
|
-
"type": "string"
|
2682
|
-
},
|
2683
2678
|
{
|
2684
2679
|
"id": "ExecutionContextDescription",
|
2685
2680
|
"description": "Description of an isolated world.",
|
@@ -2704,7 +2699,7 @@
|
|
2704
2699
|
"name": "uniqueId",
|
2705
2700
|
"description": "A system-unique execution context identifier. Unlike the id, this is unique across\nmultiple processes, so can be reliably used to identify specific context while backend\nperforms a cross-process navigation.",
|
2706
2701
|
"experimental": true,
|
2707
|
-
"
|
2702
|
+
"type": "string"
|
2708
2703
|
},
|
2709
2704
|
{
|
2710
2705
|
"name": "auxData",
|
@@ -3478,7 +3473,7 @@
|
|
3478
3473
|
},
|
3479
3474
|
{
|
3480
3475
|
"name": "executionContextId",
|
3481
|
-
"description": "If specified, the binding would only be exposed to the specified\nexecution context. If omitted and `executionContextName` is not set,\nthe binding is exposed to all execution contexts of the target.\nThis parameter is mutually exclusive with `executionContextName
|
3476
|
+
"description": "If specified, the binding would only be exposed to the specified\nexecution context. If omitted and `executionContextName` is not set,\nthe binding is exposed to all execution contexts of the target.\nThis parameter is mutually exclusive with `executionContextName`.\nDeprecated in favor of `executionContextName` due to an unclear use case\nand bugs in implementation (crbug.com/1169639). `executionContextId` will be\nremoved in the future.",
|
3482
3477
|
"experimental": true,
|
3483
3478
|
"deprecated": true,
|
3484
3479
|
"optional": true,
|
@@ -3486,16 +3481,9 @@
|
|
3486
3481
|
},
|
3487
3482
|
{
|
3488
3483
|
"name": "executionContextName",
|
3489
|
-
"description": "If specified, the binding is exposed to the executionContext with\nmatching name, even for contexts created after the binding is added.\nSee also `ExecutionContext.name` and `worldName` parameter to\n`Page.addScriptToEvaluateOnNewDocument`.\nThis parameter is mutually exclusive with `executionContextId
|
3484
|
+
"description": "If specified, the binding is exposed to the executionContext with\nmatching name, even for contexts created after the binding is added.\nSee also `ExecutionContext.name` and `worldName` parameter to\n`Page.addScriptToEvaluateOnNewDocument`.\nThis parameter is mutually exclusive with `executionContextId`.",
|
3490
3485
|
"optional": true,
|
3491
3486
|
"type": "string"
|
3492
|
-
},
|
3493
|
-
{
|
3494
|
-
"name": "executionContextUniqueId",
|
3495
|
-
"description": "This parameter is mutually exclusive with `executionContextId`\nand `executionContextName`.",
|
3496
|
-
"experimental": true,
|
3497
|
-
"optional": true,
|
3498
|
-
"$ref": "ExecutionContextUniqueId"
|
3499
3487
|
}
|
3500
3488
|
]
|
3501
3489
|
},
|
@@ -3547,11 +3535,6 @@
|
|
3547
3535
|
"name": "executionContextId",
|
3548
3536
|
"description": "Identifier of the context where the call was made.",
|
3549
3537
|
"$ref": "ExecutionContextId"
|
3550
|
-
},
|
3551
|
-
{
|
3552
|
-
"name": "executionContextUniqueId",
|
3553
|
-
"experimental": true,
|
3554
|
-
"$ref": "ExecutionContextUniqueId"
|
3555
3538
|
}
|
3556
3539
|
]
|
3557
3540
|
},
|
@@ -3597,11 +3580,6 @@
|
|
3597
3580
|
"description": "Identifier of the context where the call was made.",
|
3598
3581
|
"$ref": "ExecutionContextId"
|
3599
3582
|
},
|
3600
|
-
{
|
3601
|
-
"name": "executionContextUniqueId",
|
3602
|
-
"experimental": true,
|
3603
|
-
"$ref": "ExecutionContextUniqueId"
|
3604
|
-
},
|
3605
3583
|
{
|
3606
3584
|
"name": "timestamp",
|
3607
3585
|
"description": "Call timestamp.",
|
@@ -3678,7 +3656,7 @@
|
|
3678
3656
|
"name": "executionContextUniqueId",
|
3679
3657
|
"description": "Unique Id of the destroyed context",
|
3680
3658
|
"experimental": true,
|
3681
|
-
"
|
3659
|
+
"type": "string"
|
3682
3660
|
}
|
3683
3661
|
]
|
3684
3662
|
},
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -849,6 +849,8 @@ experimental domain Audits
|
|
849
849
|
type CookieDeprecationMetadataIssueDetails extends object
|
850
850
|
properties
|
851
851
|
array of string allowedSites
|
852
|
+
number optOutPercentage
|
853
|
+
boolean isOptOutTopLevel
|
852
854
|
|
853
855
|
type ClientHintIssueReason extends string
|
854
856
|
enum
|
@@ -8708,6 +8710,10 @@ domain Page
|
|
8708
8710
|
# If set, the script will be injected into all frames of the inspected page after reload.
|
8709
8711
|
# Argument will be ignored if reloading dataURL origin.
|
8710
8712
|
optional string scriptToEvaluateOnLoad
|
8713
|
+
# If set, an error will be thrown if the target page's main frame's
|
8714
|
+
# loader id does not match the provided id. This prevents accidentally
|
8715
|
+
# reloading an unintended target in case there's a racing navigation.
|
8716
|
+
experimental optional Network.LoaderId loaderId
|
8711
8717
|
|
8712
8718
|
# Deprecated, please use removeScriptToEvaluateOnNewDocument instead.
|
8713
8719
|
experimental deprecated command removeScriptToEvaluateOnLoad
|
package/pdl/js_protocol.pdl
CHANGED
@@ -1297,10 +1297,6 @@ domain Runtime
|
|
1297
1297
|
# Id of an execution context.
|
1298
1298
|
type ExecutionContextId extends integer
|
1299
1299
|
|
1300
|
-
# Id of an execution context that is unique across processes
|
1301
|
-
# (unlike ExecutionContextId).
|
1302
|
-
type ExecutionContextUniqueId extends string
|
1303
|
-
|
1304
1300
|
# Description of an isolated world.
|
1305
1301
|
type ExecutionContextDescription extends object
|
1306
1302
|
properties
|
@@ -1314,7 +1310,7 @@ domain Runtime
|
|
1314
1310
|
# A system-unique execution context identifier. Unlike the id, this is unique across
|
1315
1311
|
# multiple processes, so can be reliably used to identify specific context while backend
|
1316
1312
|
# performs a cross-process navigation.
|
1317
|
-
experimental
|
1313
|
+
experimental string uniqueId
|
1318
1314
|
# Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string}
|
1319
1315
|
optional object auxData
|
1320
1316
|
|
@@ -1675,8 +1671,7 @@ domain Runtime
|
|
1675
1671
|
# If specified, the binding would only be exposed to the specified
|
1676
1672
|
# execution context. If omitted and `executionContextName` is not set,
|
1677
1673
|
# the binding is exposed to all execution contexts of the target.
|
1678
|
-
# This parameter is mutually exclusive with `executionContextName
|
1679
|
-
# and `executionContextUniqueId`.
|
1674
|
+
# This parameter is mutually exclusive with `executionContextName`.
|
1680
1675
|
# Deprecated in favor of `executionContextName` due to an unclear use case
|
1681
1676
|
# and bugs in implementation (crbug.com/1169639). `executionContextId` will be
|
1682
1677
|
# removed in the future.
|
@@ -1685,12 +1680,8 @@ domain Runtime
|
|
1685
1680
|
# matching name, even for contexts created after the binding is added.
|
1686
1681
|
# See also `ExecutionContext.name` and `worldName` parameter to
|
1687
1682
|
# `Page.addScriptToEvaluateOnNewDocument`.
|
1688
|
-
# This parameter is mutually exclusive with `executionContextId
|
1689
|
-
# and `executionContextUniqueId`.
|
1683
|
+
# This parameter is mutually exclusive with `executionContextId`.
|
1690
1684
|
optional string executionContextName
|
1691
|
-
# This parameter is mutually exclusive with `executionContextId`
|
1692
|
-
# and `executionContextName`.
|
1693
|
-
experimental optional ExecutionContextUniqueId executionContextUniqueId
|
1694
1685
|
|
1695
1686
|
# This method does not remove binding function from global object but
|
1696
1687
|
# unsubscribes current runtime agent from Runtime.bindingCalled notifications.
|
@@ -1717,7 +1708,6 @@ domain Runtime
|
|
1717
1708
|
string payload
|
1718
1709
|
# Identifier of the context where the call was made.
|
1719
1710
|
ExecutionContextId executionContextId
|
1720
|
-
experimental ExecutionContextUniqueId executionContextUniqueId
|
1721
1711
|
|
1722
1712
|
# Issued when console API was called.
|
1723
1713
|
event consoleAPICalled
|
@@ -1746,7 +1736,6 @@ domain Runtime
|
|
1746
1736
|
array of RemoteObject args
|
1747
1737
|
# Identifier of the context where the call was made.
|
1748
1738
|
ExecutionContextId executionContextId
|
1749
|
-
experimental ExecutionContextUniqueId executionContextUniqueId
|
1750
1739
|
# Call timestamp.
|
1751
1740
|
Timestamp timestamp
|
1752
1741
|
# Stack trace captured when the call was made. The async stack chain is automatically reported for
|
@@ -1785,7 +1774,7 @@ domain Runtime
|
|
1785
1774
|
# Id of the destroyed context
|
1786
1775
|
deprecated ExecutionContextId executionContextId
|
1787
1776
|
# Unique Id of the destroyed context
|
1788
|
-
experimental
|
1777
|
+
experimental string executionContextUniqueId
|
1789
1778
|
|
1790
1779
|
# Issued when all executionContexts were cleared in browser
|
1791
1780
|
event executionContextsCleared
|
package/types/protocol.d.ts
CHANGED
@@ -1908,12 +1908,6 @@ export namespace Protocol {
|
|
1908
1908
|
*/
|
1909
1909
|
export type ExecutionContextId = integer;
|
1910
1910
|
|
1911
|
-
/**
|
1912
|
-
* Id of an execution context that is unique across processes
|
1913
|
-
* (unlike ExecutionContextId).
|
1914
|
-
*/
|
1915
|
-
export type ExecutionContextUniqueId = string;
|
1916
|
-
|
1917
1911
|
/**
|
1918
1912
|
* Description of an isolated world.
|
1919
1913
|
*/
|
@@ -1936,7 +1930,7 @@ export namespace Protocol {
|
|
1936
1930
|
* multiple processes, so can be reliably used to identify specific context while backend
|
1937
1931
|
* performs a cross-process navigation.
|
1938
1932
|
*/
|
1939
|
-
uniqueId:
|
1933
|
+
uniqueId: string;
|
1940
1934
|
/**
|
1941
1935
|
* Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string}
|
1942
1936
|
*/
|
@@ -2473,8 +2467,7 @@ export namespace Protocol {
|
|
2473
2467
|
* If specified, the binding would only be exposed to the specified
|
2474
2468
|
* execution context. If omitted and `executionContextName` is not set,
|
2475
2469
|
* the binding is exposed to all execution contexts of the target.
|
2476
|
-
* This parameter is mutually exclusive with `executionContextName
|
2477
|
-
* and `executionContextUniqueId`.
|
2470
|
+
* This parameter is mutually exclusive with `executionContextName`.
|
2478
2471
|
* Deprecated in favor of `executionContextName` due to an unclear use case
|
2479
2472
|
* and bugs in implementation (crbug.com/1169639). `executionContextId` will be
|
2480
2473
|
* removed in the future.
|
@@ -2485,15 +2478,9 @@ export namespace Protocol {
|
|
2485
2478
|
* matching name, even for contexts created after the binding is added.
|
2486
2479
|
* See also `ExecutionContext.name` and `worldName` parameter to
|
2487
2480
|
* `Page.addScriptToEvaluateOnNewDocument`.
|
2488
|
-
* This parameter is mutually exclusive with `executionContextId
|
2489
|
-
* and `executionContextUniqueId`.
|
2481
|
+
* This parameter is mutually exclusive with `executionContextId`.
|
2490
2482
|
*/
|
2491
2483
|
executionContextName?: string;
|
2492
|
-
/**
|
2493
|
-
* This parameter is mutually exclusive with `executionContextId`
|
2494
|
-
* and `executionContextName`.
|
2495
|
-
*/
|
2496
|
-
executionContextUniqueId?: ExecutionContextUniqueId;
|
2497
2484
|
}
|
2498
2485
|
|
2499
2486
|
export interface RemoveBindingRequest {
|
@@ -2521,7 +2508,6 @@ export namespace Protocol {
|
|
2521
2508
|
* Identifier of the context where the call was made.
|
2522
2509
|
*/
|
2523
2510
|
executionContextId: ExecutionContextId;
|
2524
|
-
executionContextUniqueId: ExecutionContextUniqueId;
|
2525
2511
|
}
|
2526
2512
|
|
2527
2513
|
export const enum ConsoleAPICalledEventType {
|
@@ -2561,7 +2547,6 @@ export namespace Protocol {
|
|
2561
2547
|
* Identifier of the context where the call was made.
|
2562
2548
|
*/
|
2563
2549
|
executionContextId: ExecutionContextId;
|
2564
|
-
executionContextUniqueId: ExecutionContextUniqueId;
|
2565
2550
|
/**
|
2566
2551
|
* Call timestamp.
|
2567
2552
|
*/
|
@@ -2626,7 +2611,7 @@ export namespace Protocol {
|
|
2626
2611
|
/**
|
2627
2612
|
* Unique Id of the destroyed context
|
2628
2613
|
*/
|
2629
|
-
executionContextUniqueId:
|
2614
|
+
executionContextUniqueId: string;
|
2630
2615
|
}
|
2631
2616
|
|
2632
2617
|
/**
|
@@ -3577,6 +3562,8 @@ export namespace Protocol {
|
|
3577
3562
|
*/
|
3578
3563
|
export interface CookieDeprecationMetadataIssueDetails {
|
3579
3564
|
allowedSites: string[];
|
3565
|
+
optOutPercentage: number;
|
3566
|
+
isOptOutTopLevel: boolean;
|
3580
3567
|
}
|
3581
3568
|
|
3582
3569
|
export type ClientHintIssueReason = ('MetaTagAllowListInvalidOrigin' | 'MetaTagModifiedHTML');
|
@@ -14332,6 +14319,12 @@ export namespace Protocol {
|
|
14332
14319
|
* Argument will be ignored if reloading dataURL origin.
|
14333
14320
|
*/
|
14334
14321
|
scriptToEvaluateOnLoad?: string;
|
14322
|
+
/**
|
14323
|
+
* If set, an error will be thrown if the target page's main frame's
|
14324
|
+
* loader id does not match the provided id. This prevents accidentally
|
14325
|
+
* reloading an unintended target in case there's a racing navigation.
|
14326
|
+
*/
|
14327
|
+
loaderId?: Network.LoaderId;
|
14335
14328
|
}
|
14336
14329
|
|
14337
14330
|
export interface RemoveScriptToEvaluateOnLoadRequest {
|