devtools-protocol 0.0.1138800 → 0.0.1139932
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 +56 -47
- package/package.json +1 -1
- package/pdl/browser_protocol.pdl +24 -21
- package/types/protocol-mapping.d.ts +8 -0
- package/types/protocol-proxy-api.d.ts +11 -0
- package/types/protocol.d.ts +41 -23
@@ -1330,47 +1330,6 @@
|
|
1330
1330
|
}
|
1331
1331
|
]
|
1332
1332
|
},
|
1333
|
-
{
|
1334
|
-
"id": "TwaQualityEnforcementViolationType",
|
1335
|
-
"type": "string",
|
1336
|
-
"enum": [
|
1337
|
-
"kHttpError",
|
1338
|
-
"kUnavailableOffline",
|
1339
|
-
"kDigitalAssetLinks"
|
1340
|
-
]
|
1341
|
-
},
|
1342
|
-
{
|
1343
|
-
"id": "TrustedWebActivityIssueDetails",
|
1344
|
-
"type": "object",
|
1345
|
-
"properties": [
|
1346
|
-
{
|
1347
|
-
"name": "url",
|
1348
|
-
"description": "The url that triggers the violation.",
|
1349
|
-
"type": "string"
|
1350
|
-
},
|
1351
|
-
{
|
1352
|
-
"name": "violationType",
|
1353
|
-
"$ref": "TwaQualityEnforcementViolationType"
|
1354
|
-
},
|
1355
|
-
{
|
1356
|
-
"name": "httpStatusCode",
|
1357
|
-
"optional": true,
|
1358
|
-
"type": "integer"
|
1359
|
-
},
|
1360
|
-
{
|
1361
|
-
"name": "packageName",
|
1362
|
-
"description": "The package name of the Trusted Web Activity client app. This field is\nonly used when violation type is kDigitalAssetLinks.",
|
1363
|
-
"optional": true,
|
1364
|
-
"type": "string"
|
1365
|
-
},
|
1366
|
-
{
|
1367
|
-
"name": "signature",
|
1368
|
-
"description": "The signature of the Trusted Web Activity client app. This field is only\nused when violation type is kDigitalAssetLinks.",
|
1369
|
-
"optional": true,
|
1370
|
-
"type": "string"
|
1371
|
-
}
|
1372
|
-
]
|
1373
|
-
},
|
1374
1333
|
{
|
1375
1334
|
"id": "LowTextContrastIssueDetails",
|
1376
1335
|
"type": "object",
|
@@ -1696,7 +1655,6 @@
|
|
1696
1655
|
"HeavyAdIssue",
|
1697
1656
|
"ContentSecurityPolicyIssue",
|
1698
1657
|
"SharedArrayBufferIssue",
|
1699
|
-
"TrustedWebActivityIssue",
|
1700
1658
|
"LowTextContrastIssue",
|
1701
1659
|
"CorsIssue",
|
1702
1660
|
"AttributionReportingIssue",
|
@@ -1744,11 +1702,6 @@
|
|
1744
1702
|
"optional": true,
|
1745
1703
|
"$ref": "SharedArrayBufferIssueDetails"
|
1746
1704
|
},
|
1747
|
-
{
|
1748
|
-
"name": "twaQualityEnforcementDetails",
|
1749
|
-
"optional": true,
|
1750
|
-
"$ref": "TrustedWebActivityIssueDetails"
|
1751
|
-
},
|
1752
1705
|
{
|
1753
1706
|
"name": "lowTextContrastIssueDetails",
|
1754
1707
|
"optional": true,
|
@@ -1913,6 +1866,62 @@
|
|
1913
1866
|
}
|
1914
1867
|
]
|
1915
1868
|
},
|
1869
|
+
{
|
1870
|
+
"domain": "Autofill",
|
1871
|
+
"description": "Defines commands and events for Autofill.",
|
1872
|
+
"experimental": true,
|
1873
|
+
"types": [
|
1874
|
+
{
|
1875
|
+
"id": "CreditCard",
|
1876
|
+
"type": "object",
|
1877
|
+
"properties": [
|
1878
|
+
{
|
1879
|
+
"name": "number",
|
1880
|
+
"description": "16-digit credit card number.",
|
1881
|
+
"type": "string"
|
1882
|
+
},
|
1883
|
+
{
|
1884
|
+
"name": "name",
|
1885
|
+
"description": "Name of the credit card owner.",
|
1886
|
+
"type": "string"
|
1887
|
+
},
|
1888
|
+
{
|
1889
|
+
"name": "expiryMonth",
|
1890
|
+
"description": "2-digit expiry month.",
|
1891
|
+
"type": "string"
|
1892
|
+
},
|
1893
|
+
{
|
1894
|
+
"name": "expiryYear",
|
1895
|
+
"description": "4-digit expiry year.",
|
1896
|
+
"type": "string"
|
1897
|
+
},
|
1898
|
+
{
|
1899
|
+
"name": "cvc",
|
1900
|
+
"description": "3-digit card verification code.",
|
1901
|
+
"type": "string"
|
1902
|
+
}
|
1903
|
+
]
|
1904
|
+
}
|
1905
|
+
],
|
1906
|
+
"commands": [
|
1907
|
+
{
|
1908
|
+
"name": "trigger",
|
1909
|
+
"description": "Trigger autofill on a form identified by the fieldId.\nIf the field and related form cannot be autofilled, returns an error.",
|
1910
|
+
"parameters": [
|
1911
|
+
{
|
1912
|
+
"name": "fieldId",
|
1913
|
+
"description": "Identifies a field that serves as an anchor for autofill.",
|
1914
|
+
"$ref": "DOM.BackendNodeId"
|
1915
|
+
},
|
1916
|
+
{
|
1917
|
+
"name": "card",
|
1918
|
+
"description": "Credit card information to fill out the form. Credit card data is not saved.",
|
1919
|
+
"$ref": "CreditCard"
|
1920
|
+
}
|
1921
|
+
]
|
1922
|
+
}
|
1923
|
+
]
|
1924
|
+
},
|
1916
1925
|
{
|
1917
1926
|
"domain": "BackgroundService",
|
1918
1927
|
"description": "Defines events for background web platform features.",
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -658,25 +658,6 @@ experimental domain Audits
|
|
658
658
|
boolean isWarning
|
659
659
|
SharedArrayBufferIssueType type
|
660
660
|
|
661
|
-
type TwaQualityEnforcementViolationType extends string
|
662
|
-
enum
|
663
|
-
kHttpError
|
664
|
-
kUnavailableOffline
|
665
|
-
kDigitalAssetLinks
|
666
|
-
|
667
|
-
type TrustedWebActivityIssueDetails extends object
|
668
|
-
properties
|
669
|
-
# The url that triggers the violation.
|
670
|
-
string url
|
671
|
-
TwaQualityEnforcementViolationType violationType
|
672
|
-
optional integer httpStatusCode
|
673
|
-
# The package name of the Trusted Web Activity client app. This field is
|
674
|
-
# only used when violation type is kDigitalAssetLinks.
|
675
|
-
optional string packageName
|
676
|
-
# The signature of the Trusted Web Activity client app. This field is only
|
677
|
-
# used when violation type is kDigitalAssetLinks.
|
678
|
-
optional string signature
|
679
|
-
|
680
661
|
type LowTextContrastIssueDetails extends object
|
681
662
|
properties
|
682
663
|
DOM.BackendNodeId violatingNodeId
|
@@ -855,7 +836,6 @@ experimental domain Audits
|
|
855
836
|
HeavyAdIssue
|
856
837
|
ContentSecurityPolicyIssue
|
857
838
|
SharedArrayBufferIssue
|
858
|
-
TrustedWebActivityIssue
|
859
839
|
LowTextContrastIssue
|
860
840
|
CorsIssue
|
861
841
|
AttributionReportingIssue
|
@@ -878,7 +858,6 @@ experimental domain Audits
|
|
878
858
|
optional HeavyAdIssueDetails heavyAdIssueDetails
|
879
859
|
optional ContentSecurityPolicyIssueDetails contentSecurityPolicyIssueDetails
|
880
860
|
optional SharedArrayBufferIssueDetails sharedArrayBufferIssueDetails
|
881
|
-
optional TrustedWebActivityIssueDetails twaQualityEnforcementDetails
|
882
861
|
optional LowTextContrastIssueDetails lowTextContrastIssueDetails
|
883
862
|
optional CorsIssueDetails corsIssueDetails
|
884
863
|
optional AttributionReportingIssueDetails attributionReportingIssueDetails
|
@@ -944,6 +923,30 @@ experimental domain Audits
|
|
944
923
|
parameters
|
945
924
|
InspectorIssue issue
|
946
925
|
|
926
|
+
# Defines commands and events for Autofill.
|
927
|
+
experimental domain Autofill
|
928
|
+
type CreditCard extends object
|
929
|
+
properties
|
930
|
+
# 16-digit credit card number.
|
931
|
+
string number
|
932
|
+
# Name of the credit card owner.
|
933
|
+
string name
|
934
|
+
# 2-digit expiry month.
|
935
|
+
string expiryMonth
|
936
|
+
# 4-digit expiry year.
|
937
|
+
string expiryYear
|
938
|
+
# 3-digit card verification code.
|
939
|
+
string cvc
|
940
|
+
|
941
|
+
# Trigger autofill on a form identified by the fieldId.
|
942
|
+
# If the field and related form cannot be autofilled, returns an error.
|
943
|
+
command trigger
|
944
|
+
parameters
|
945
|
+
# Identifies a field that serves as an anchor for autofill.
|
946
|
+
DOM.BackendNodeId fieldId
|
947
|
+
# Credit card information to fill out the form. Credit card data is not saved.
|
948
|
+
CreditCard card
|
949
|
+
|
947
950
|
# Defines events for background web platform features.
|
948
951
|
experimental domain BackgroundService
|
949
952
|
# The Background Service that will be associated with the commands/events.
|
@@ -1459,6 +1459,14 @@ export namespace ProtocolMapping {
|
|
1459
1459
|
paramsType: [Protocol.Audits.CheckContrastRequest?];
|
1460
1460
|
returnType: void;
|
1461
1461
|
};
|
1462
|
+
/**
|
1463
|
+
* Trigger autofill on a form identified by the fieldId.
|
1464
|
+
* If the field and related form cannot be autofilled, returns an error.
|
1465
|
+
*/
|
1466
|
+
'Autofill.trigger': {
|
1467
|
+
paramsType: [Protocol.Autofill.TriggerRequest];
|
1468
|
+
returnType: void;
|
1469
|
+
};
|
1462
1470
|
/**
|
1463
1471
|
* Enables event updates for the service.
|
1464
1472
|
*/
|
@@ -28,6 +28,8 @@ export namespace ProtocolProxyApi {
|
|
28
28
|
|
29
29
|
Audits: AuditsApi;
|
30
30
|
|
31
|
+
Autofill: AutofillApi;
|
32
|
+
|
31
33
|
BackgroundService: BackgroundServiceApi;
|
32
34
|
|
33
35
|
Browser: BrowserApi;
|
@@ -790,6 +792,15 @@ export namespace ProtocolProxyApi {
|
|
790
792
|
|
791
793
|
}
|
792
794
|
|
795
|
+
export interface AutofillApi {
|
796
|
+
/**
|
797
|
+
* Trigger autofill on a form identified by the fieldId.
|
798
|
+
* If the field and related form cannot be autofilled, returns an error.
|
799
|
+
*/
|
800
|
+
trigger(params: Protocol.Autofill.TriggerRequest): Promise<void>;
|
801
|
+
|
802
|
+
}
|
803
|
+
|
793
804
|
export interface BackgroundServiceApi {
|
794
805
|
/**
|
795
806
|
* Enables event updates for the service.
|
package/types/protocol.d.ts
CHANGED
@@ -3371,27 +3371,6 @@ export namespace Protocol {
|
|
3371
3371
|
type: SharedArrayBufferIssueType;
|
3372
3372
|
}
|
3373
3373
|
|
3374
|
-
export type TwaQualityEnforcementViolationType = ('kHttpError' | 'kUnavailableOffline' | 'kDigitalAssetLinks');
|
3375
|
-
|
3376
|
-
export interface TrustedWebActivityIssueDetails {
|
3377
|
-
/**
|
3378
|
-
* The url that triggers the violation.
|
3379
|
-
*/
|
3380
|
-
url: string;
|
3381
|
-
violationType: TwaQualityEnforcementViolationType;
|
3382
|
-
httpStatusCode?: integer;
|
3383
|
-
/**
|
3384
|
-
* The package name of the Trusted Web Activity client app. This field is
|
3385
|
-
* only used when violation type is kDigitalAssetLinks.
|
3386
|
-
*/
|
3387
|
-
packageName?: string;
|
3388
|
-
/**
|
3389
|
-
* The signature of the Trusted Web Activity client app. This field is only
|
3390
|
-
* used when violation type is kDigitalAssetLinks.
|
3391
|
-
*/
|
3392
|
-
signature?: string;
|
3393
|
-
}
|
3394
|
-
|
3395
3374
|
export interface LowTextContrastIssueDetails {
|
3396
3375
|
violatingNodeId: DOM.BackendNodeId;
|
3397
3376
|
violatingNodeSelector: string;
|
@@ -3517,7 +3496,7 @@ export namespace Protocol {
|
|
3517
3496
|
* optional fields in InspectorIssueDetails to convey more specific
|
3518
3497
|
* information about the kind of issue.
|
3519
3498
|
*/
|
3520
|
-
export type InspectorIssueCode = ('CookieIssue' | 'MixedContentIssue' | 'BlockedByResponseIssue' | 'HeavyAdIssue' | 'ContentSecurityPolicyIssue' | 'SharedArrayBufferIssue' | '
|
3499
|
+
export type InspectorIssueCode = ('CookieIssue' | 'MixedContentIssue' | 'BlockedByResponseIssue' | 'HeavyAdIssue' | 'ContentSecurityPolicyIssue' | 'SharedArrayBufferIssue' | 'LowTextContrastIssue' | 'CorsIssue' | 'AttributionReportingIssue' | 'QuirksModeIssue' | 'NavigatorUserAgentIssue' | 'GenericIssue' | 'DeprecationIssue' | 'ClientHintIssue' | 'FederatedAuthRequestIssue' | 'BounceTrackingIssue');
|
3521
3500
|
|
3522
3501
|
/**
|
3523
3502
|
* This struct holds a list of optional fields with additional information
|
@@ -3531,7 +3510,6 @@ export namespace Protocol {
|
|
3531
3510
|
heavyAdIssueDetails?: HeavyAdIssueDetails;
|
3532
3511
|
contentSecurityPolicyIssueDetails?: ContentSecurityPolicyIssueDetails;
|
3533
3512
|
sharedArrayBufferIssueDetails?: SharedArrayBufferIssueDetails;
|
3534
|
-
twaQualityEnforcementDetails?: TrustedWebActivityIssueDetails;
|
3535
3513
|
lowTextContrastIssueDetails?: LowTextContrastIssueDetails;
|
3536
3514
|
corsIssueDetails?: CorsIssueDetails;
|
3537
3515
|
attributionReportingIssueDetails?: AttributionReportingIssueDetails;
|
@@ -3615,6 +3593,46 @@ export namespace Protocol {
|
|
3615
3593
|
}
|
3616
3594
|
}
|
3617
3595
|
|
3596
|
+
/**
|
3597
|
+
* Defines commands and events for Autofill.
|
3598
|
+
*/
|
3599
|
+
export namespace Autofill {
|
3600
|
+
|
3601
|
+
export interface CreditCard {
|
3602
|
+
/**
|
3603
|
+
* 16-digit credit card number.
|
3604
|
+
*/
|
3605
|
+
number: string;
|
3606
|
+
/**
|
3607
|
+
* Name of the credit card owner.
|
3608
|
+
*/
|
3609
|
+
name: string;
|
3610
|
+
/**
|
3611
|
+
* 2-digit expiry month.
|
3612
|
+
*/
|
3613
|
+
expiryMonth: string;
|
3614
|
+
/**
|
3615
|
+
* 4-digit expiry year.
|
3616
|
+
*/
|
3617
|
+
expiryYear: string;
|
3618
|
+
/**
|
3619
|
+
* 3-digit card verification code.
|
3620
|
+
*/
|
3621
|
+
cvc: string;
|
3622
|
+
}
|
3623
|
+
|
3624
|
+
export interface TriggerRequest {
|
3625
|
+
/**
|
3626
|
+
* Identifies a field that serves as an anchor for autofill.
|
3627
|
+
*/
|
3628
|
+
fieldId: DOM.BackendNodeId;
|
3629
|
+
/**
|
3630
|
+
* Credit card information to fill out the form. Credit card data is not saved.
|
3631
|
+
*/
|
3632
|
+
card: CreditCard;
|
3633
|
+
}
|
3634
|
+
}
|
3635
|
+
|
3618
3636
|
/**
|
3619
3637
|
* Defines events for background web platform features.
|
3620
3638
|
*/
|