devtools-protocol 0.0.1285609 → 0.0.1289136
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 +412 -2
- package/package.json +1 -1
- package/pdl/browser_protocol.pdl +137 -2
- package/types/protocol-mapping.d.ts +17 -1
- package/types/protocol-proxy-api.d.ts +20 -1
- package/types/protocol-tests-proxy-api.d.ts +20 -1
- package/types/protocol.d.ts +159 -2
@@ -1716,7 +1716,9 @@
|
|
1716
1716
|
"RpPageNotVisible",
|
1717
1717
|
"SilentMediationFailure",
|
1718
1718
|
"ThirdPartyCookiesBlocked",
|
1719
|
-
"NotSignedInWithIdp"
|
1719
|
+
"NotSignedInWithIdp",
|
1720
|
+
"MissingTransientUserActivation",
|
1721
|
+
"ReplacedByButtonMode"
|
1720
1722
|
]
|
1721
1723
|
},
|
1722
1724
|
{
|
@@ -2105,6 +2107,31 @@
|
|
2105
2107
|
}
|
2106
2108
|
]
|
2107
2109
|
},
|
2110
|
+
{
|
2111
|
+
"domain": "Extensions",
|
2112
|
+
"description": "Defines commands and events for browser extensions. Available if the client\nis connected using the --remote-debugging-pipe flag and\nthe --enable-unsafe-extension-debugging flag is set.",
|
2113
|
+
"experimental": true,
|
2114
|
+
"commands": [
|
2115
|
+
{
|
2116
|
+
"name": "loadUnpacked",
|
2117
|
+
"description": "Installs an unpacked extension from the filesystem similar to\n--load-extension CLI flags. Returns extension ID once the extension\nhas been installed.",
|
2118
|
+
"parameters": [
|
2119
|
+
{
|
2120
|
+
"name": "path",
|
2121
|
+
"description": "Absolute file path.",
|
2122
|
+
"type": "string"
|
2123
|
+
}
|
2124
|
+
],
|
2125
|
+
"returns": [
|
2126
|
+
{
|
2127
|
+
"name": "id",
|
2128
|
+
"description": "Extension id.",
|
2129
|
+
"type": "string"
|
2130
|
+
}
|
2131
|
+
]
|
2132
|
+
}
|
2133
|
+
]
|
2134
|
+
},
|
2108
2135
|
{
|
2109
2136
|
"domain": "Autofill",
|
2110
2137
|
"description": "Defines commands and events for Autofill.",
|
@@ -17477,6 +17504,375 @@
|
|
17477
17504
|
}
|
17478
17505
|
]
|
17479
17506
|
},
|
17507
|
+
{
|
17508
|
+
"id": "FileFilter",
|
17509
|
+
"experimental": true,
|
17510
|
+
"type": "object",
|
17511
|
+
"properties": [
|
17512
|
+
{
|
17513
|
+
"name": "name",
|
17514
|
+
"optional": true,
|
17515
|
+
"type": "string"
|
17516
|
+
},
|
17517
|
+
{
|
17518
|
+
"name": "accepts",
|
17519
|
+
"optional": true,
|
17520
|
+
"type": "array",
|
17521
|
+
"items": {
|
17522
|
+
"type": "string"
|
17523
|
+
}
|
17524
|
+
}
|
17525
|
+
]
|
17526
|
+
},
|
17527
|
+
{
|
17528
|
+
"id": "FileHandler",
|
17529
|
+
"experimental": true,
|
17530
|
+
"type": "object",
|
17531
|
+
"properties": [
|
17532
|
+
{
|
17533
|
+
"name": "action",
|
17534
|
+
"type": "string"
|
17535
|
+
},
|
17536
|
+
{
|
17537
|
+
"name": "name",
|
17538
|
+
"type": "string"
|
17539
|
+
},
|
17540
|
+
{
|
17541
|
+
"name": "icons",
|
17542
|
+
"optional": true,
|
17543
|
+
"type": "array",
|
17544
|
+
"items": {
|
17545
|
+
"$ref": "ImageResource"
|
17546
|
+
}
|
17547
|
+
},
|
17548
|
+
{
|
17549
|
+
"name": "accepts",
|
17550
|
+
"description": "Mimic a map, name is the key, accepts is the value.",
|
17551
|
+
"optional": true,
|
17552
|
+
"type": "array",
|
17553
|
+
"items": {
|
17554
|
+
"$ref": "FileFilter"
|
17555
|
+
}
|
17556
|
+
},
|
17557
|
+
{
|
17558
|
+
"name": "launchType",
|
17559
|
+
"description": "Won't repeat the enums, using string for easy comparison. Same as the\nother enums below.",
|
17560
|
+
"type": "string"
|
17561
|
+
}
|
17562
|
+
]
|
17563
|
+
},
|
17564
|
+
{
|
17565
|
+
"id": "ImageResource",
|
17566
|
+
"description": "The image definition used in both icon and screenshot.",
|
17567
|
+
"experimental": true,
|
17568
|
+
"type": "object",
|
17569
|
+
"properties": [
|
17570
|
+
{
|
17571
|
+
"name": "url",
|
17572
|
+
"description": "The src field in the definition, but changing to url in favor of\nconsistency.",
|
17573
|
+
"type": "string"
|
17574
|
+
},
|
17575
|
+
{
|
17576
|
+
"name": "sizes",
|
17577
|
+
"optional": true,
|
17578
|
+
"type": "string"
|
17579
|
+
},
|
17580
|
+
{
|
17581
|
+
"name": "type",
|
17582
|
+
"optional": true,
|
17583
|
+
"type": "string"
|
17584
|
+
}
|
17585
|
+
]
|
17586
|
+
},
|
17587
|
+
{
|
17588
|
+
"id": "LaunchHandler",
|
17589
|
+
"experimental": true,
|
17590
|
+
"type": "object",
|
17591
|
+
"properties": [
|
17592
|
+
{
|
17593
|
+
"name": "clientMode",
|
17594
|
+
"type": "string"
|
17595
|
+
}
|
17596
|
+
]
|
17597
|
+
},
|
17598
|
+
{
|
17599
|
+
"id": "ProtocolHandler",
|
17600
|
+
"experimental": true,
|
17601
|
+
"type": "object",
|
17602
|
+
"properties": [
|
17603
|
+
{
|
17604
|
+
"name": "protocol",
|
17605
|
+
"type": "string"
|
17606
|
+
},
|
17607
|
+
{
|
17608
|
+
"name": "url",
|
17609
|
+
"type": "string"
|
17610
|
+
}
|
17611
|
+
]
|
17612
|
+
},
|
17613
|
+
{
|
17614
|
+
"id": "RelatedApplication",
|
17615
|
+
"experimental": true,
|
17616
|
+
"type": "object",
|
17617
|
+
"properties": [
|
17618
|
+
{
|
17619
|
+
"name": "id",
|
17620
|
+
"optional": true,
|
17621
|
+
"type": "string"
|
17622
|
+
},
|
17623
|
+
{
|
17624
|
+
"name": "url",
|
17625
|
+
"type": "string"
|
17626
|
+
}
|
17627
|
+
]
|
17628
|
+
},
|
17629
|
+
{
|
17630
|
+
"id": "ScopeExtension",
|
17631
|
+
"experimental": true,
|
17632
|
+
"type": "object",
|
17633
|
+
"properties": [
|
17634
|
+
{
|
17635
|
+
"name": "origin",
|
17636
|
+
"description": "Instead of using tuple, this field always returns the serialized string\nfor easy understanding and comparison.",
|
17637
|
+
"type": "string"
|
17638
|
+
},
|
17639
|
+
{
|
17640
|
+
"name": "hasOriginWildcard",
|
17641
|
+
"type": "boolean"
|
17642
|
+
}
|
17643
|
+
]
|
17644
|
+
},
|
17645
|
+
{
|
17646
|
+
"id": "Screenshot",
|
17647
|
+
"experimental": true,
|
17648
|
+
"type": "object",
|
17649
|
+
"properties": [
|
17650
|
+
{
|
17651
|
+
"name": "image",
|
17652
|
+
"$ref": "ImageResource"
|
17653
|
+
},
|
17654
|
+
{
|
17655
|
+
"name": "formFactor",
|
17656
|
+
"type": "string"
|
17657
|
+
},
|
17658
|
+
{
|
17659
|
+
"name": "label",
|
17660
|
+
"optional": true,
|
17661
|
+
"type": "string"
|
17662
|
+
}
|
17663
|
+
]
|
17664
|
+
},
|
17665
|
+
{
|
17666
|
+
"id": "ShareTarget",
|
17667
|
+
"experimental": true,
|
17668
|
+
"type": "object",
|
17669
|
+
"properties": [
|
17670
|
+
{
|
17671
|
+
"name": "action",
|
17672
|
+
"type": "string"
|
17673
|
+
},
|
17674
|
+
{
|
17675
|
+
"name": "method",
|
17676
|
+
"type": "string"
|
17677
|
+
},
|
17678
|
+
{
|
17679
|
+
"name": "enctype",
|
17680
|
+
"type": "string"
|
17681
|
+
},
|
17682
|
+
{
|
17683
|
+
"name": "title",
|
17684
|
+
"description": "Embed the ShareTargetParams",
|
17685
|
+
"optional": true,
|
17686
|
+
"type": "string"
|
17687
|
+
},
|
17688
|
+
{
|
17689
|
+
"name": "text",
|
17690
|
+
"optional": true,
|
17691
|
+
"type": "string"
|
17692
|
+
},
|
17693
|
+
{
|
17694
|
+
"name": "url",
|
17695
|
+
"optional": true,
|
17696
|
+
"type": "string"
|
17697
|
+
},
|
17698
|
+
{
|
17699
|
+
"name": "files",
|
17700
|
+
"optional": true,
|
17701
|
+
"type": "array",
|
17702
|
+
"items": {
|
17703
|
+
"$ref": "FileFilter"
|
17704
|
+
}
|
17705
|
+
}
|
17706
|
+
]
|
17707
|
+
},
|
17708
|
+
{
|
17709
|
+
"id": "Shortcut",
|
17710
|
+
"experimental": true,
|
17711
|
+
"type": "object",
|
17712
|
+
"properties": [
|
17713
|
+
{
|
17714
|
+
"name": "name",
|
17715
|
+
"type": "string"
|
17716
|
+
},
|
17717
|
+
{
|
17718
|
+
"name": "url",
|
17719
|
+
"type": "string"
|
17720
|
+
}
|
17721
|
+
]
|
17722
|
+
},
|
17723
|
+
{
|
17724
|
+
"id": "WebAppManifest",
|
17725
|
+
"experimental": true,
|
17726
|
+
"type": "object",
|
17727
|
+
"properties": [
|
17728
|
+
{
|
17729
|
+
"name": "backgroundColor",
|
17730
|
+
"optional": true,
|
17731
|
+
"type": "string"
|
17732
|
+
},
|
17733
|
+
{
|
17734
|
+
"name": "description",
|
17735
|
+
"description": "The extra description provided by the manifest.",
|
17736
|
+
"optional": true,
|
17737
|
+
"type": "string"
|
17738
|
+
},
|
17739
|
+
{
|
17740
|
+
"name": "dir",
|
17741
|
+
"optional": true,
|
17742
|
+
"type": "string"
|
17743
|
+
},
|
17744
|
+
{
|
17745
|
+
"name": "display",
|
17746
|
+
"optional": true,
|
17747
|
+
"type": "string"
|
17748
|
+
},
|
17749
|
+
{
|
17750
|
+
"name": "displayOverrides",
|
17751
|
+
"description": "The overrided display mode controlled by the user.",
|
17752
|
+
"optional": true,
|
17753
|
+
"type": "array",
|
17754
|
+
"items": {
|
17755
|
+
"type": "string"
|
17756
|
+
}
|
17757
|
+
},
|
17758
|
+
{
|
17759
|
+
"name": "fileHandlers",
|
17760
|
+
"description": "The handlers to open files.",
|
17761
|
+
"optional": true,
|
17762
|
+
"type": "array",
|
17763
|
+
"items": {
|
17764
|
+
"$ref": "FileHandler"
|
17765
|
+
}
|
17766
|
+
},
|
17767
|
+
{
|
17768
|
+
"name": "icons",
|
17769
|
+
"optional": true,
|
17770
|
+
"type": "array",
|
17771
|
+
"items": {
|
17772
|
+
"$ref": "ImageResource"
|
17773
|
+
}
|
17774
|
+
},
|
17775
|
+
{
|
17776
|
+
"name": "id",
|
17777
|
+
"optional": true,
|
17778
|
+
"type": "string"
|
17779
|
+
},
|
17780
|
+
{
|
17781
|
+
"name": "lang",
|
17782
|
+
"optional": true,
|
17783
|
+
"type": "string"
|
17784
|
+
},
|
17785
|
+
{
|
17786
|
+
"name": "launchHandler",
|
17787
|
+
"description": "TODO(crbug.com/1231886): This field is non-standard and part of a Chrome\nexperiment. See:\nhttps://github.com/WICG/web-app-launch/blob/main/launch_handler.md",
|
17788
|
+
"optional": true,
|
17789
|
+
"$ref": "LaunchHandler"
|
17790
|
+
},
|
17791
|
+
{
|
17792
|
+
"name": "name",
|
17793
|
+
"optional": true,
|
17794
|
+
"type": "string"
|
17795
|
+
},
|
17796
|
+
{
|
17797
|
+
"name": "orientation",
|
17798
|
+
"optional": true,
|
17799
|
+
"type": "string"
|
17800
|
+
},
|
17801
|
+
{
|
17802
|
+
"name": "preferRelatedApplications",
|
17803
|
+
"optional": true,
|
17804
|
+
"type": "boolean"
|
17805
|
+
},
|
17806
|
+
{
|
17807
|
+
"name": "protocolHandlers",
|
17808
|
+
"description": "The handlers to open protocols.",
|
17809
|
+
"optional": true,
|
17810
|
+
"type": "array",
|
17811
|
+
"items": {
|
17812
|
+
"$ref": "ProtocolHandler"
|
17813
|
+
}
|
17814
|
+
},
|
17815
|
+
{
|
17816
|
+
"name": "relatedApplications",
|
17817
|
+
"optional": true,
|
17818
|
+
"type": "array",
|
17819
|
+
"items": {
|
17820
|
+
"$ref": "RelatedApplication"
|
17821
|
+
}
|
17822
|
+
},
|
17823
|
+
{
|
17824
|
+
"name": "scope",
|
17825
|
+
"optional": true,
|
17826
|
+
"type": "string"
|
17827
|
+
},
|
17828
|
+
{
|
17829
|
+
"name": "scopeExtensions",
|
17830
|
+
"description": "Non-standard, see\nhttps://github.com/WICG/manifest-incubations/blob/gh-pages/scope_extensions-explainer.md",
|
17831
|
+
"optional": true,
|
17832
|
+
"type": "array",
|
17833
|
+
"items": {
|
17834
|
+
"$ref": "ScopeExtension"
|
17835
|
+
}
|
17836
|
+
},
|
17837
|
+
{
|
17838
|
+
"name": "screenshots",
|
17839
|
+
"description": "The screenshots used by chromium.",
|
17840
|
+
"optional": true,
|
17841
|
+
"type": "array",
|
17842
|
+
"items": {
|
17843
|
+
"$ref": "Screenshot"
|
17844
|
+
}
|
17845
|
+
},
|
17846
|
+
{
|
17847
|
+
"name": "shareTarget",
|
17848
|
+
"optional": true,
|
17849
|
+
"$ref": "ShareTarget"
|
17850
|
+
},
|
17851
|
+
{
|
17852
|
+
"name": "shortName",
|
17853
|
+
"optional": true,
|
17854
|
+
"type": "string"
|
17855
|
+
},
|
17856
|
+
{
|
17857
|
+
"name": "shortcuts",
|
17858
|
+
"optional": true,
|
17859
|
+
"type": "array",
|
17860
|
+
"items": {
|
17861
|
+
"$ref": "Shortcut"
|
17862
|
+
}
|
17863
|
+
},
|
17864
|
+
{
|
17865
|
+
"name": "startUrl",
|
17866
|
+
"optional": true,
|
17867
|
+
"type": "string"
|
17868
|
+
},
|
17869
|
+
{
|
17870
|
+
"name": "themeColor",
|
17871
|
+
"optional": true,
|
17872
|
+
"type": "string"
|
17873
|
+
}
|
17874
|
+
]
|
17875
|
+
},
|
17480
17876
|
{
|
17481
17877
|
"id": "AutoResponseMode",
|
17482
17878
|
"description": "Enum of possible auto-response for permission / prompt dialogs.",
|
@@ -17960,6 +18356,14 @@
|
|
17960
18356
|
},
|
17961
18357
|
{
|
17962
18358
|
"name": "getAppManifest",
|
18359
|
+
"description": "Gets the processed manifest for this current document.\n This API always waits for the manifest to be loaded.\n If manifestId is provided, and it does not match the manifest of the\n current document, this API errors out.\n If there is not a loaded page, this API errors out immediately.",
|
18360
|
+
"parameters": [
|
18361
|
+
{
|
18362
|
+
"name": "manifestId",
|
18363
|
+
"optional": true,
|
18364
|
+
"type": "string"
|
18365
|
+
}
|
18366
|
+
],
|
17963
18367
|
"returns": [
|
17964
18368
|
{
|
17965
18369
|
"name": "url",
|
@@ -17981,10 +18385,16 @@
|
|
17981
18385
|
},
|
17982
18386
|
{
|
17983
18387
|
"name": "parsed",
|
17984
|
-
"description": "Parsed manifest properties",
|
18388
|
+
"description": "Parsed manifest properties. Deprecated, use manifest instead.",
|
17985
18389
|
"experimental": true,
|
18390
|
+
"deprecated": true,
|
17986
18391
|
"optional": true,
|
17987
18392
|
"$ref": "AppManifestParsedProperties"
|
18393
|
+
},
|
18394
|
+
{
|
18395
|
+
"name": "manifest",
|
18396
|
+
"experimental": true,
|
18397
|
+
"$ref": "WebAppManifest"
|
17988
18398
|
}
|
17989
18399
|
]
|
17990
18400
|
},
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -876,6 +876,8 @@ experimental domain Audits
|
|
876
876
|
SilentMediationFailure
|
877
877
|
ThirdPartyCookiesBlocked
|
878
878
|
NotSignedInWithIdp
|
879
|
+
MissingTransientUserActivation
|
880
|
+
ReplacedByButtonMode
|
879
881
|
|
880
882
|
type FederatedAuthUserInfoRequestIssueDetails extends object
|
881
883
|
properties
|
@@ -1057,6 +1059,21 @@ experimental domain Audits
|
|
1057
1059
|
parameters
|
1058
1060
|
InspectorIssue issue
|
1059
1061
|
|
1062
|
+
# Defines commands and events for browser extensions. Available if the client
|
1063
|
+
# is connected using the --remote-debugging-pipe flag and
|
1064
|
+
# the --enable-unsafe-extension-debugging flag is set.
|
1065
|
+
experimental domain Extensions
|
1066
|
+
# Installs an unpacked extension from the filesystem similar to
|
1067
|
+
# --load-extension CLI flags. Returns extension ID once the extension
|
1068
|
+
# has been installed.
|
1069
|
+
command loadUnpacked
|
1070
|
+
parameters
|
1071
|
+
# Absolute file path.
|
1072
|
+
string path
|
1073
|
+
returns
|
1074
|
+
# Extension id.
|
1075
|
+
string id
|
1076
|
+
|
1060
1077
|
# Defines commands and events for Autofill.
|
1061
1078
|
experimental domain Autofill
|
1062
1079
|
type CreditCard extends object
|
@@ -8325,15 +8342,132 @@ domain Page
|
|
8325
8342
|
# Enables page domain notifications.
|
8326
8343
|
command enable
|
8327
8344
|
|
8345
|
+
# The manifest of a webapp, see
|
8346
|
+
# https://www.w3.org/TR/appmanifest/#dfn-manifest.
|
8347
|
+
# Some fields do not appear in the standard since the API is designed to
|
8348
|
+
# expose more browser internal states.
|
8349
|
+
|
8350
|
+
experimental type FileFilter extends object
|
8351
|
+
properties
|
8352
|
+
optional string name
|
8353
|
+
optional array of string accepts
|
8354
|
+
|
8355
|
+
experimental type FileHandler extends object
|
8356
|
+
properties
|
8357
|
+
string action
|
8358
|
+
string name
|
8359
|
+
optional array of ImageResource icons
|
8360
|
+
# Mimic a map, name is the key, accepts is the value.
|
8361
|
+
optional array of FileFilter accepts
|
8362
|
+
# Won't repeat the enums, using string for easy comparison. Same as the
|
8363
|
+
# other enums below.
|
8364
|
+
string launchType
|
8365
|
+
|
8366
|
+
# The image definition used in both icon and screenshot.
|
8367
|
+
experimental type ImageResource extends object
|
8368
|
+
properties
|
8369
|
+
# The src field in the definition, but changing to url in favor of
|
8370
|
+
# consistency.
|
8371
|
+
string url
|
8372
|
+
optional string sizes
|
8373
|
+
optional string type
|
8374
|
+
|
8375
|
+
experimental type LaunchHandler extends object
|
8376
|
+
properties
|
8377
|
+
string clientMode
|
8378
|
+
|
8379
|
+
experimental type ProtocolHandler extends object
|
8380
|
+
properties
|
8381
|
+
string protocol
|
8382
|
+
string url
|
8383
|
+
|
8384
|
+
experimental type RelatedApplication extends object
|
8385
|
+
properties
|
8386
|
+
optional string id
|
8387
|
+
string url
|
8388
|
+
|
8389
|
+
experimental type ScopeExtension extends object
|
8390
|
+
properties
|
8391
|
+
# Instead of using tuple, this field always returns the serialized string
|
8392
|
+
# for easy understanding and comparison.
|
8393
|
+
string origin
|
8394
|
+
boolean hasOriginWildcard
|
8395
|
+
|
8396
|
+
experimental type Screenshot extends object
|
8397
|
+
properties
|
8398
|
+
ImageResource image
|
8399
|
+
string formFactor
|
8400
|
+
optional string label
|
8401
|
+
|
8402
|
+
experimental type ShareTarget extends object
|
8403
|
+
properties
|
8404
|
+
string action
|
8405
|
+
string method
|
8406
|
+
string enctype
|
8407
|
+
# Embed the ShareTargetParams
|
8408
|
+
optional string title
|
8409
|
+
optional string text
|
8410
|
+
optional string url
|
8411
|
+
optional array of FileFilter files
|
8412
|
+
|
8413
|
+
experimental type Shortcut extends object
|
8414
|
+
properties
|
8415
|
+
string name
|
8416
|
+
string url
|
8417
|
+
|
8418
|
+
experimental type WebAppManifest extends object
|
8419
|
+
properties
|
8420
|
+
optional string backgroundColor
|
8421
|
+
# The extra description provided by the manifest.
|
8422
|
+
optional string description
|
8423
|
+
optional string dir
|
8424
|
+
optional string display
|
8425
|
+
# The overrided display mode controlled by the user.
|
8426
|
+
optional array of string displayOverrides
|
8427
|
+
# The handlers to open files.
|
8428
|
+
optional array of FileHandler fileHandlers
|
8429
|
+
optional array of ImageResource icons
|
8430
|
+
optional string id
|
8431
|
+
optional string lang
|
8432
|
+
# TODO(crbug.com/1231886): This field is non-standard and part of a Chrome
|
8433
|
+
# experiment. See:
|
8434
|
+
# https://github.com/WICG/web-app-launch/blob/main/launch_handler.md
|
8435
|
+
optional LaunchHandler launchHandler
|
8436
|
+
optional string name
|
8437
|
+
optional string orientation
|
8438
|
+
optional boolean preferRelatedApplications
|
8439
|
+
# The handlers to open protocols.
|
8440
|
+
optional array of ProtocolHandler protocolHandlers
|
8441
|
+
optional array of RelatedApplication relatedApplications
|
8442
|
+
optional string scope
|
8443
|
+
# Non-standard, see
|
8444
|
+
# https://github.com/WICG/manifest-incubations/blob/gh-pages/scope_extensions-explainer.md
|
8445
|
+
optional array of ScopeExtension scopeExtensions
|
8446
|
+
# The screenshots used by chromium.
|
8447
|
+
optional array of Screenshot screenshots
|
8448
|
+
optional ShareTarget shareTarget
|
8449
|
+
optional string shortName
|
8450
|
+
optional array of Shortcut shortcuts
|
8451
|
+
optional string startUrl
|
8452
|
+
optional string themeColor
|
8453
|
+
|
8454
|
+
# Gets the processed manifest for this current document.
|
8455
|
+
# This API always waits for the manifest to be loaded.
|
8456
|
+
# If manifestId is provided, and it does not match the manifest of the
|
8457
|
+
# current document, this API errors out.
|
8458
|
+
# If there is not a loaded page, this API errors out immediately.
|
8328
8459
|
command getAppManifest
|
8460
|
+
parameters
|
8461
|
+
optional string manifestId
|
8329
8462
|
returns
|
8330
8463
|
# Manifest location.
|
8331
8464
|
string url
|
8332
8465
|
array of AppManifestError errors
|
8333
8466
|
# Manifest content.
|
8334
8467
|
optional string data
|
8335
|
-
# Parsed manifest properties
|
8336
|
-
experimental optional AppManifestParsedProperties parsed
|
8468
|
+
# Parsed manifest properties. Deprecated, use manifest instead.
|
8469
|
+
experimental deprecated optional AppManifestParsedProperties parsed
|
8470
|
+
experimental WebAppManifest manifest
|
8337
8471
|
|
8338
8472
|
experimental command getInstallabilityErrors
|
8339
8473
|
returns
|
@@ -12160,3 +12294,4 @@ experimental domain PWA
|
|
12160
12294
|
returns
|
12161
12295
|
integer badgeCount
|
12162
12296
|
array of FileHandler fileHandlers
|
12297
|
+
|
@@ -1502,6 +1502,15 @@ export namespace ProtocolMapping {
|
|
1502
1502
|
paramsType: [];
|
1503
1503
|
returnType: Protocol.Audits.CheckFormsIssuesResponse;
|
1504
1504
|
};
|
1505
|
+
/**
|
1506
|
+
* Installs an unpacked extension from the filesystem similar to
|
1507
|
+
* --load-extension CLI flags. Returns extension ID once the extension
|
1508
|
+
* has been installed.
|
1509
|
+
*/
|
1510
|
+
'Extensions.loadUnpacked': {
|
1511
|
+
paramsType: [Protocol.Extensions.LoadUnpackedRequest];
|
1512
|
+
returnType: Protocol.Extensions.LoadUnpackedResponse;
|
1513
|
+
};
|
1505
1514
|
/**
|
1506
1515
|
* Trigger autofill on a form identified by the fieldId.
|
1507
1516
|
* If the field and related form cannot be autofilled, returns an error.
|
@@ -3711,8 +3720,15 @@ export namespace ProtocolMapping {
|
|
3711
3720
|
paramsType: [];
|
3712
3721
|
returnType: void;
|
3713
3722
|
};
|
3723
|
+
/**
|
3724
|
+
* Gets the processed manifest for this current document.
|
3725
|
+
* This API always waits for the manifest to be loaded.
|
3726
|
+
* If manifestId is provided, and it does not match the manifest of the
|
3727
|
+
* current document, this API errors out.
|
3728
|
+
* If there is not a loaded page, this API errors out immediately.
|
3729
|
+
*/
|
3714
3730
|
'Page.getAppManifest': {
|
3715
|
-
paramsType: [];
|
3731
|
+
paramsType: [Protocol.Page.GetAppManifestRequest?];
|
3716
3732
|
returnType: Protocol.Page.GetAppManifestResponse;
|
3717
3733
|
};
|
3718
3734
|
'Page.getInstallabilityErrors': {
|
@@ -28,6 +28,8 @@ export namespace ProtocolProxyApi {
|
|
28
28
|
|
29
29
|
Audits: AuditsApi;
|
30
30
|
|
31
|
+
Extensions: ExtensionsApi;
|
32
|
+
|
31
33
|
Autofill: AutofillApi;
|
32
34
|
|
33
35
|
BackgroundService: BackgroundServiceApi;
|
@@ -805,6 +807,16 @@ export namespace ProtocolProxyApi {
|
|
805
807
|
|
806
808
|
}
|
807
809
|
|
810
|
+
export interface ExtensionsApi {
|
811
|
+
/**
|
812
|
+
* Installs an unpacked extension from the filesystem similar to
|
813
|
+
* --load-extension CLI flags. Returns extension ID once the extension
|
814
|
+
* has been installed.
|
815
|
+
*/
|
816
|
+
loadUnpacked(params: Protocol.Extensions.LoadUnpackedRequest): Promise<Protocol.Extensions.LoadUnpackedResponse>;
|
817
|
+
|
818
|
+
}
|
819
|
+
|
808
820
|
export interface AutofillApi {
|
809
821
|
/**
|
810
822
|
* Trigger autofill on a form identified by the fieldId.
|
@@ -2840,7 +2852,14 @@ export namespace ProtocolProxyApi {
|
|
2840
2852
|
*/
|
2841
2853
|
enable(): Promise<void>;
|
2842
2854
|
|
2843
|
-
|
2855
|
+
/**
|
2856
|
+
* Gets the processed manifest for this current document.
|
2857
|
+
* This API always waits for the manifest to be loaded.
|
2858
|
+
* If manifestId is provided, and it does not match the manifest of the
|
2859
|
+
* current document, this API errors out.
|
2860
|
+
* If there is not a loaded page, this API errors out immediately.
|
2861
|
+
*/
|
2862
|
+
getAppManifest(params: Protocol.Page.GetAppManifestRequest): Promise<Protocol.Page.GetAppManifestResponse>;
|
2844
2863
|
|
2845
2864
|
getInstallabilityErrors(): Promise<Protocol.Page.GetInstallabilityErrorsResponse>;
|
2846
2865
|
|
@@ -28,6 +28,8 @@ export namespace ProtocolTestsProxyApi {
|
|
28
28
|
|
29
29
|
Audits: AuditsApi;
|
30
30
|
|
31
|
+
Extensions: ExtensionsApi;
|
32
|
+
|
31
33
|
Autofill: AutofillApi;
|
32
34
|
|
33
35
|
BackgroundService: BackgroundServiceApi;
|
@@ -863,6 +865,16 @@ export namespace ProtocolTestsProxyApi {
|
|
863
865
|
|
864
866
|
}
|
865
867
|
|
868
|
+
export interface ExtensionsApi {
|
869
|
+
/**
|
870
|
+
* Installs an unpacked extension from the filesystem similar to
|
871
|
+
* --load-extension CLI flags. Returns extension ID once the extension
|
872
|
+
* has been installed.
|
873
|
+
*/
|
874
|
+
loadUnpacked(params: Protocol.Extensions.LoadUnpackedRequest): Promise<{id: number, result: Protocol.Extensions.LoadUnpackedResponse, sessionId: string}>;
|
875
|
+
|
876
|
+
}
|
877
|
+
|
866
878
|
export interface AutofillApi {
|
867
879
|
/**
|
868
880
|
* Trigger autofill on a form identified by the fieldId.
|
@@ -3048,7 +3060,14 @@ export namespace ProtocolTestsProxyApi {
|
|
3048
3060
|
*/
|
3049
3061
|
enable(): Promise<{id: number, result: void, sessionId: string}>;
|
3050
3062
|
|
3051
|
-
|
3063
|
+
/**
|
3064
|
+
* Gets the processed manifest for this current document.
|
3065
|
+
* This API always waits for the manifest to be loaded.
|
3066
|
+
* If manifestId is provided, and it does not match the manifest of the
|
3067
|
+
* current document, this API errors out.
|
3068
|
+
* If there is not a loaded page, this API errors out immediately.
|
3069
|
+
*/
|
3070
|
+
getAppManifest(params: Protocol.Page.GetAppManifestRequest): Promise<{id: number, result: Protocol.Page.GetAppManifestResponse, sessionId: string}>;
|
3052
3071
|
|
3053
3072
|
getInstallabilityErrors(): Promise<{id: number, result: Protocol.Page.GetInstallabilityErrorsResponse, sessionId: string}>;
|
3054
3073
|
|
package/types/protocol.d.ts
CHANGED
@@ -3569,7 +3569,7 @@ export namespace Protocol {
|
|
3569
3569
|
* third_party/blink/public/mojom/devtools/inspector_issue.mojom to include
|
3570
3570
|
* all cases except for success.
|
3571
3571
|
*/
|
3572
|
-
export type FederatedAuthRequestIssueReason = ('ShouldEmbargo' | 'TooManyRequests' | 'WellKnownHttpNotFound' | 'WellKnownNoResponse' | 'WellKnownInvalidResponse' | 'WellKnownListEmpty' | 'WellKnownInvalidContentType' | 'ConfigNotInWellKnown' | 'WellKnownTooBig' | 'ConfigHttpNotFound' | 'ConfigNoResponse' | 'ConfigInvalidResponse' | 'ConfigInvalidContentType' | 'ClientMetadataHttpNotFound' | 'ClientMetadataNoResponse' | 'ClientMetadataInvalidResponse' | 'ClientMetadataInvalidContentType' | 'DisabledInSettings' | 'ErrorFetchingSignin' | 'InvalidSigninResponse' | 'AccountsHttpNotFound' | 'AccountsNoResponse' | 'AccountsInvalidResponse' | 'AccountsListEmpty' | 'AccountsInvalidContentType' | 'IdTokenHttpNotFound' | 'IdTokenNoResponse' | 'IdTokenInvalidResponse' | 'IdTokenIdpErrorResponse' | 'IdTokenCrossSiteIdpErrorResponse' | 'IdTokenInvalidRequest' | 'IdTokenInvalidContentType' | 'ErrorIdToken' | 'Canceled' | 'RpPageNotVisible' | 'SilentMediationFailure' | 'ThirdPartyCookiesBlocked' | 'NotSignedInWithIdp');
|
3572
|
+
export type FederatedAuthRequestIssueReason = ('ShouldEmbargo' | 'TooManyRequests' | 'WellKnownHttpNotFound' | 'WellKnownNoResponse' | 'WellKnownInvalidResponse' | 'WellKnownListEmpty' | 'WellKnownInvalidContentType' | 'ConfigNotInWellKnown' | 'WellKnownTooBig' | 'ConfigHttpNotFound' | 'ConfigNoResponse' | 'ConfigInvalidResponse' | 'ConfigInvalidContentType' | 'ClientMetadataHttpNotFound' | 'ClientMetadataNoResponse' | 'ClientMetadataInvalidResponse' | 'ClientMetadataInvalidContentType' | 'DisabledInSettings' | 'ErrorFetchingSignin' | 'InvalidSigninResponse' | 'AccountsHttpNotFound' | 'AccountsNoResponse' | 'AccountsInvalidResponse' | 'AccountsListEmpty' | 'AccountsInvalidContentType' | 'IdTokenHttpNotFound' | 'IdTokenNoResponse' | 'IdTokenInvalidResponse' | 'IdTokenIdpErrorResponse' | 'IdTokenCrossSiteIdpErrorResponse' | 'IdTokenInvalidRequest' | 'IdTokenInvalidContentType' | 'ErrorIdToken' | 'Canceled' | 'RpPageNotVisible' | 'SilentMediationFailure' | 'ThirdPartyCookiesBlocked' | 'NotSignedInWithIdp' | 'MissingTransientUserActivation' | 'ReplacedByButtonMode');
|
3573
3573
|
|
3574
3574
|
export interface FederatedAuthUserInfoRequestIssueDetails {
|
3575
3575
|
federatedAuthUserInfoRequestIssueReason: FederatedAuthUserInfoRequestIssueReason;
|
@@ -3754,6 +3754,28 @@ export namespace Protocol {
|
|
3754
3754
|
}
|
3755
3755
|
}
|
3756
3756
|
|
3757
|
+
/**
|
3758
|
+
* Defines commands and events for browser extensions. Available if the client
|
3759
|
+
* is connected using the --remote-debugging-pipe flag and
|
3760
|
+
* the --enable-unsafe-extension-debugging flag is set.
|
3761
|
+
*/
|
3762
|
+
export namespace Extensions {
|
3763
|
+
|
3764
|
+
export interface LoadUnpackedRequest {
|
3765
|
+
/**
|
3766
|
+
* Absolute file path.
|
3767
|
+
*/
|
3768
|
+
path: string;
|
3769
|
+
}
|
3770
|
+
|
3771
|
+
export interface LoadUnpackedResponse {
|
3772
|
+
/**
|
3773
|
+
* Extension id.
|
3774
|
+
*/
|
3775
|
+
id: string;
|
3776
|
+
}
|
3777
|
+
}
|
3778
|
+
|
3757
3779
|
/**
|
3758
3780
|
* Defines commands and events for Autofill.
|
3759
3781
|
*/
|
@@ -13625,6 +13647,136 @@ export namespace Protocol {
|
|
13625
13647
|
eager?: boolean;
|
13626
13648
|
}
|
13627
13649
|
|
13650
|
+
export interface FileFilter {
|
13651
|
+
name?: string;
|
13652
|
+
accepts?: string[];
|
13653
|
+
}
|
13654
|
+
|
13655
|
+
export interface FileHandler {
|
13656
|
+
action: string;
|
13657
|
+
name: string;
|
13658
|
+
icons?: ImageResource[];
|
13659
|
+
/**
|
13660
|
+
* Mimic a map, name is the key, accepts is the value.
|
13661
|
+
*/
|
13662
|
+
accepts?: FileFilter[];
|
13663
|
+
/**
|
13664
|
+
* Won't repeat the enums, using string for easy comparison. Same as the
|
13665
|
+
* other enums below.
|
13666
|
+
*/
|
13667
|
+
launchType: string;
|
13668
|
+
}
|
13669
|
+
|
13670
|
+
/**
|
13671
|
+
* The image definition used in both icon and screenshot.
|
13672
|
+
*/
|
13673
|
+
export interface ImageResource {
|
13674
|
+
/**
|
13675
|
+
* The src field in the definition, but changing to url in favor of
|
13676
|
+
* consistency.
|
13677
|
+
*/
|
13678
|
+
url: string;
|
13679
|
+
sizes?: string;
|
13680
|
+
type?: string;
|
13681
|
+
}
|
13682
|
+
|
13683
|
+
export interface LaunchHandler {
|
13684
|
+
clientMode: string;
|
13685
|
+
}
|
13686
|
+
|
13687
|
+
export interface ProtocolHandler {
|
13688
|
+
protocol: string;
|
13689
|
+
url: string;
|
13690
|
+
}
|
13691
|
+
|
13692
|
+
export interface RelatedApplication {
|
13693
|
+
id?: string;
|
13694
|
+
url: string;
|
13695
|
+
}
|
13696
|
+
|
13697
|
+
export interface ScopeExtension {
|
13698
|
+
/**
|
13699
|
+
* Instead of using tuple, this field always returns the serialized string
|
13700
|
+
* for easy understanding and comparison.
|
13701
|
+
*/
|
13702
|
+
origin: string;
|
13703
|
+
hasOriginWildcard: boolean;
|
13704
|
+
}
|
13705
|
+
|
13706
|
+
export interface Screenshot {
|
13707
|
+
image: ImageResource;
|
13708
|
+
formFactor: string;
|
13709
|
+
label?: string;
|
13710
|
+
}
|
13711
|
+
|
13712
|
+
export interface ShareTarget {
|
13713
|
+
action: string;
|
13714
|
+
method: string;
|
13715
|
+
enctype: string;
|
13716
|
+
/**
|
13717
|
+
* Embed the ShareTargetParams
|
13718
|
+
*/
|
13719
|
+
title?: string;
|
13720
|
+
text?: string;
|
13721
|
+
url?: string;
|
13722
|
+
files?: FileFilter[];
|
13723
|
+
}
|
13724
|
+
|
13725
|
+
export interface Shortcut {
|
13726
|
+
name: string;
|
13727
|
+
url: string;
|
13728
|
+
}
|
13729
|
+
|
13730
|
+
export interface WebAppManifest {
|
13731
|
+
backgroundColor?: string;
|
13732
|
+
/**
|
13733
|
+
* The extra description provided by the manifest.
|
13734
|
+
*/
|
13735
|
+
description?: string;
|
13736
|
+
dir?: string;
|
13737
|
+
display?: string;
|
13738
|
+
/**
|
13739
|
+
* The overrided display mode controlled by the user.
|
13740
|
+
*/
|
13741
|
+
displayOverrides?: string[];
|
13742
|
+
/**
|
13743
|
+
* The handlers to open files.
|
13744
|
+
*/
|
13745
|
+
fileHandlers?: FileHandler[];
|
13746
|
+
icons?: ImageResource[];
|
13747
|
+
id?: string;
|
13748
|
+
lang?: string;
|
13749
|
+
/**
|
13750
|
+
* TODO(crbug.com/1231886): This field is non-standard and part of a Chrome
|
13751
|
+
* experiment. See:
|
13752
|
+
* https://github.com/WICG/web-app-launch/blob/main/launch_handler.md
|
13753
|
+
*/
|
13754
|
+
launchHandler?: LaunchHandler;
|
13755
|
+
name?: string;
|
13756
|
+
orientation?: string;
|
13757
|
+
preferRelatedApplications?: boolean;
|
13758
|
+
/**
|
13759
|
+
* The handlers to open protocols.
|
13760
|
+
*/
|
13761
|
+
protocolHandlers?: ProtocolHandler[];
|
13762
|
+
relatedApplications?: RelatedApplication[];
|
13763
|
+
scope?: string;
|
13764
|
+
/**
|
13765
|
+
* Non-standard, see
|
13766
|
+
* https://github.com/WICG/manifest-incubations/blob/gh-pages/scope_extensions-explainer.md
|
13767
|
+
*/
|
13768
|
+
scopeExtensions?: ScopeExtension[];
|
13769
|
+
/**
|
13770
|
+
* The screenshots used by chromium.
|
13771
|
+
*/
|
13772
|
+
screenshots?: Screenshot[];
|
13773
|
+
shareTarget?: ShareTarget;
|
13774
|
+
shortName?: string;
|
13775
|
+
shortcuts?: Shortcut[];
|
13776
|
+
startUrl?: string;
|
13777
|
+
themeColor?: string;
|
13778
|
+
}
|
13779
|
+
|
13628
13780
|
/**
|
13629
13781
|
* Enum of possible auto-response for permission / prompt dialogs.
|
13630
13782
|
*/
|
@@ -13827,6 +13979,10 @@ export namespace Protocol {
|
|
13827
13979
|
url: string;
|
13828
13980
|
}
|
13829
13981
|
|
13982
|
+
export interface GetAppManifestRequest {
|
13983
|
+
manifestId?: string;
|
13984
|
+
}
|
13985
|
+
|
13830
13986
|
export interface GetAppManifestResponse {
|
13831
13987
|
/**
|
13832
13988
|
* Manifest location.
|
@@ -13838,9 +13994,10 @@ export namespace Protocol {
|
|
13838
13994
|
*/
|
13839
13995
|
data?: string;
|
13840
13996
|
/**
|
13841
|
-
* Parsed manifest properties
|
13997
|
+
* Parsed manifest properties. Deprecated, use manifest instead.
|
13842
13998
|
*/
|
13843
13999
|
parsed?: AppManifestParsedProperties;
|
14000
|
+
manifest: WebAppManifest;
|
13844
14001
|
}
|
13845
14002
|
|
13846
14003
|
export interface GetInstallabilityErrorsResponse {
|