devtools-protocol 0.0.1143632 → 0.0.1145140
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.
@@ -1852,6 +1852,19 @@
|
|
1852
1852
|
"type": "boolean"
|
1853
1853
|
}
|
1854
1854
|
]
|
1855
|
+
},
|
1856
|
+
{
|
1857
|
+
"name": "checkFormsIssues",
|
1858
|
+
"description": "Runs the form issues check for the target page. Found issues are reported\nusing Audits.issueAdded event.",
|
1859
|
+
"returns": [
|
1860
|
+
{
|
1861
|
+
"name": "formIssues",
|
1862
|
+
"type": "array",
|
1863
|
+
"items": {
|
1864
|
+
"$ref": "GenericIssueDetails"
|
1865
|
+
}
|
1866
|
+
}
|
1867
|
+
]
|
1855
1868
|
}
|
1856
1869
|
],
|
1857
1870
|
"events": [
|
@@ -1913,6 +1926,12 @@
|
|
1913
1926
|
"description": "Identifies a field that serves as an anchor for autofill.",
|
1914
1927
|
"$ref": "DOM.BackendNodeId"
|
1915
1928
|
},
|
1929
|
+
{
|
1930
|
+
"name": "frameId",
|
1931
|
+
"description": "Identifies the frame that field belongs to.",
|
1932
|
+
"optional": true,
|
1933
|
+
"$ref": "Page.FrameId"
|
1934
|
+
},
|
1916
1935
|
{
|
1917
1936
|
"name": "card",
|
1918
1937
|
"description": "Credit card information to fill out the form. Credit card data is not saved.",
|
@@ -23236,10 +23255,7 @@
|
|
23236
23255
|
"SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation",
|
23237
23256
|
"SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation",
|
23238
23257
|
"MemoryPressureOnTrigger",
|
23239
|
-
"MemoryPressureAfterTriggered"
|
23240
|
-
"SpeculationRuleRemoved",
|
23241
|
-
"TriggerPageNavigated",
|
23242
|
-
"OtherPrerenderedPageActivated"
|
23258
|
+
"MemoryPressureAfterTriggered"
|
23243
23259
|
]
|
23244
23260
|
},
|
23245
23261
|
{
|
@@ -23415,6 +23431,11 @@
|
|
23415
23431
|
{
|
23416
23432
|
"name": "status",
|
23417
23433
|
"$ref": "PreloadingStatus"
|
23434
|
+
},
|
23435
|
+
{
|
23436
|
+
"name": "prerenderStatus",
|
23437
|
+
"optional": true,
|
23438
|
+
"$ref": "PrerenderFinalStatus"
|
23418
23439
|
}
|
23419
23440
|
]
|
23420
23441
|
},
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -919,6 +919,12 @@ experimental domain Audits
|
|
919
919
|
# Whether to report WCAG AAA level issues. Default is false.
|
920
920
|
optional boolean reportAAA
|
921
921
|
|
922
|
+
# Runs the form issues check for the target page. Found issues are reported
|
923
|
+
# using Audits.issueAdded event.
|
924
|
+
command checkFormsIssues
|
925
|
+
returns
|
926
|
+
array of GenericIssueDetails formIssues
|
927
|
+
|
922
928
|
event issueAdded
|
923
929
|
parameters
|
924
930
|
InspectorIssue issue
|
@@ -944,6 +950,8 @@ experimental domain Autofill
|
|
944
950
|
parameters
|
945
951
|
# Identifies a field that serves as an anchor for autofill.
|
946
952
|
DOM.BackendNodeId fieldId
|
953
|
+
# Identifies the frame that field belongs to.
|
954
|
+
optional Page.FrameId frameId
|
947
955
|
# Credit card information to fill out the form. Credit card data is not saved.
|
948
956
|
CreditCard card
|
949
957
|
|
@@ -10996,9 +11004,6 @@ experimental domain Preload
|
|
10996
11004
|
SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation
|
10997
11005
|
MemoryPressureOnTrigger
|
10998
11006
|
MemoryPressureAfterTriggered
|
10999
|
-
SpeculationRuleRemoved
|
11000
|
-
TriggerPageNavigated
|
11001
|
-
OtherPrerenderedPageActivated
|
11002
11007
|
|
11003
11008
|
# Fired when a prerender attempt is completed.
|
11004
11009
|
event prerenderAttemptCompleted
|
@@ -11094,6 +11099,7 @@ experimental domain Preload
|
|
11094
11099
|
Page.FrameId initiatingFrameId
|
11095
11100
|
string prerenderingUrl
|
11096
11101
|
PreloadingStatus status
|
11102
|
+
optional PrerenderFinalStatus prerenderStatus
|
11097
11103
|
|
11098
11104
|
# Send a list of sources for all preloading attempts in a document.
|
11099
11105
|
event preloadingAttemptSourcesUpdated
|
@@ -1459,6 +1459,14 @@ export namespace ProtocolMapping {
|
|
1459
1459
|
paramsType: [Protocol.Audits.CheckContrastRequest?];
|
1460
1460
|
returnType: void;
|
1461
1461
|
};
|
1462
|
+
/**
|
1463
|
+
* Runs the form issues check for the target page. Found issues are reported
|
1464
|
+
* using Audits.issueAdded event.
|
1465
|
+
*/
|
1466
|
+
'Audits.checkFormsIssues': {
|
1467
|
+
paramsType: [];
|
1468
|
+
returnType: Protocol.Audits.CheckFormsIssuesResponse;
|
1469
|
+
};
|
1462
1470
|
/**
|
1463
1471
|
* Trigger autofill on a form identified by the fieldId.
|
1464
1472
|
* If the field and related form cannot be autofilled, returns an error.
|
@@ -788,6 +788,12 @@ export namespace ProtocolProxyApi {
|
|
788
788
|
*/
|
789
789
|
checkContrast(params: Protocol.Audits.CheckContrastRequest): Promise<void>;
|
790
790
|
|
791
|
+
/**
|
792
|
+
* Runs the form issues check for the target page. Found issues are reported
|
793
|
+
* using Audits.issueAdded event.
|
794
|
+
*/
|
795
|
+
checkFormsIssues(): Promise<Protocol.Audits.CheckFormsIssuesResponse>;
|
796
|
+
|
791
797
|
on(event: 'issueAdded', listener: (params: Protocol.Audits.IssueAddedEvent) => void): void;
|
792
798
|
|
793
799
|
}
|
package/types/protocol.d.ts
CHANGED
@@ -3628,6 +3628,10 @@ export namespace Protocol {
|
|
3628
3628
|
reportAAA?: boolean;
|
3629
3629
|
}
|
3630
3630
|
|
3631
|
+
export interface CheckFormsIssuesResponse {
|
3632
|
+
formIssues: GenericIssueDetails[];
|
3633
|
+
}
|
3634
|
+
|
3631
3635
|
export interface IssueAddedEvent {
|
3632
3636
|
issue: InspectorIssue;
|
3633
3637
|
}
|
@@ -3666,6 +3670,10 @@ export namespace Protocol {
|
|
3666
3670
|
* Identifies a field that serves as an anchor for autofill.
|
3667
3671
|
*/
|
3668
3672
|
fieldId: DOM.BackendNodeId;
|
3673
|
+
/**
|
3674
|
+
* Identifies the frame that field belongs to.
|
3675
|
+
*/
|
3676
|
+
frameId?: Page.FrameId;
|
3669
3677
|
/**
|
3670
3678
|
* Credit card information to fill out the form. Credit card data is not saved.
|
3671
3679
|
*/
|
@@ -17153,7 +17161,7 @@ export namespace Protocol {
|
|
17153
17161
|
/**
|
17154
17162
|
* List of FinalStatus reasons for Prerender2.
|
17155
17163
|
*/
|
17156
|
-
export type PrerenderFinalStatus = ('Activated' | 'Destroyed' | 'LowEndDevice' | 'InvalidSchemeRedirect' | 'InvalidSchemeNavigation' | 'InProgressNavigation' | 'NavigationRequestBlockedByCsp' | 'MainFrameNavigation' | 'MojoBinderPolicy' | 'RendererProcessCrashed' | 'RendererProcessKilled' | 'Download' | 'TriggerDestroyed' | 'NavigationNotCommitted' | 'NavigationBadHttpStatus' | 'ClientCertRequested' | 'NavigationRequestNetworkError' | 'MaxNumOfRunningPrerendersExceeded' | 'CancelAllHostsForTesting' | 'DidFailLoad' | 'Stop' | 'SslCertificateError' | 'LoginAuthRequested' | 'UaChangeRequiresReload' | 'BlockedByClient' | 'AudioOutputDeviceRequested' | 'MixedContent' | 'TriggerBackgrounded' | 'EmbedderTriggeredAndCrossOriginRedirected' | 'MemoryLimitExceeded' | 'FailToGetMemoryUsage' | 'DataSaverEnabled' | 'HasEffectiveUrl' | 'ActivatedBeforeStarted' | 'InactivePageRestriction' | 'StartFailed' | 'TimeoutBackgrounded' | 'CrossSiteRedirectInInitialNavigation' | 'CrossSiteNavigationInInitialNavigation' | 'SameSiteCrossOriginRedirectNotOptInInInitialNavigation' | 'SameSiteCrossOriginNavigationNotOptInInInitialNavigation' | 'ActivationNavigationParameterMismatch' | 'ActivatedInBackground' | 'EmbedderHostDisallowed' | 'ActivationNavigationDestroyedBeforeSuccess' | 'TabClosedByUserGesture' | 'TabClosedWithoutUserGesture' | 'PrimaryMainFrameRendererProcessCrashed' | 'PrimaryMainFrameRendererProcessKilled' | 'ActivationFramePolicyNotCompatible' | 'PreloadingDisabled' | 'BatterySaverEnabled' | 'ActivatedDuringMainFrameNavigation' | 'PreloadingUnsupportedByWebContents' | 'CrossSiteRedirectInMainFrameNavigation' | 'CrossSiteNavigationInMainFrameNavigation' | 'SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation' | 'SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation' | 'MemoryPressureOnTrigger' | 'MemoryPressureAfterTriggered'
|
17164
|
+
export type PrerenderFinalStatus = ('Activated' | 'Destroyed' | 'LowEndDevice' | 'InvalidSchemeRedirect' | 'InvalidSchemeNavigation' | 'InProgressNavigation' | 'NavigationRequestBlockedByCsp' | 'MainFrameNavigation' | 'MojoBinderPolicy' | 'RendererProcessCrashed' | 'RendererProcessKilled' | 'Download' | 'TriggerDestroyed' | 'NavigationNotCommitted' | 'NavigationBadHttpStatus' | 'ClientCertRequested' | 'NavigationRequestNetworkError' | 'MaxNumOfRunningPrerendersExceeded' | 'CancelAllHostsForTesting' | 'DidFailLoad' | 'Stop' | 'SslCertificateError' | 'LoginAuthRequested' | 'UaChangeRequiresReload' | 'BlockedByClient' | 'AudioOutputDeviceRequested' | 'MixedContent' | 'TriggerBackgrounded' | 'EmbedderTriggeredAndCrossOriginRedirected' | 'MemoryLimitExceeded' | 'FailToGetMemoryUsage' | 'DataSaverEnabled' | 'HasEffectiveUrl' | 'ActivatedBeforeStarted' | 'InactivePageRestriction' | 'StartFailed' | 'TimeoutBackgrounded' | 'CrossSiteRedirectInInitialNavigation' | 'CrossSiteNavigationInInitialNavigation' | 'SameSiteCrossOriginRedirectNotOptInInInitialNavigation' | 'SameSiteCrossOriginNavigationNotOptInInInitialNavigation' | 'ActivationNavigationParameterMismatch' | 'ActivatedInBackground' | 'EmbedderHostDisallowed' | 'ActivationNavigationDestroyedBeforeSuccess' | 'TabClosedByUserGesture' | 'TabClosedWithoutUserGesture' | 'PrimaryMainFrameRendererProcessCrashed' | 'PrimaryMainFrameRendererProcessKilled' | 'ActivationFramePolicyNotCompatible' | 'PreloadingDisabled' | 'BatterySaverEnabled' | 'ActivatedDuringMainFrameNavigation' | 'PreloadingUnsupportedByWebContents' | 'CrossSiteRedirectInMainFrameNavigation' | 'CrossSiteNavigationInMainFrameNavigation' | 'SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation' | 'SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation' | 'MemoryPressureOnTrigger' | 'MemoryPressureAfterTriggered');
|
17157
17165
|
|
17158
17166
|
export type PreloadEnabledState = ('Enabled' | 'DisabledByDataSaver' | 'DisabledByBatterySaver' | 'DisabledByPreference' | 'NotSupported');
|
17159
17167
|
|
@@ -17230,6 +17238,7 @@ export namespace Protocol {
|
|
17230
17238
|
initiatingFrameId: Page.FrameId;
|
17231
17239
|
prerenderingUrl: string;
|
17232
17240
|
status: PreloadingStatus;
|
17241
|
+
prerenderStatus?: PrerenderFinalStatus;
|
17233
17242
|
}
|
17234
17243
|
|
17235
17244
|
/**
|