devtools-protocol 0.0.1141857 → 0.0.1144541
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,7 +23255,10 @@
|
|
23236
23255
|
"SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation",
|
23237
23256
|
"SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation",
|
23238
23257
|
"MemoryPressureOnTrigger",
|
23239
|
-
"MemoryPressureAfterTriggered"
|
23258
|
+
"MemoryPressureAfterTriggered",
|
23259
|
+
"SpeculationRuleRemoved",
|
23260
|
+
"TriggerPageNavigated",
|
23261
|
+
"OtherPrerenderedPageActivated"
|
23240
23262
|
]
|
23241
23263
|
},
|
23242
23264
|
{
|
@@ -23262,6 +23284,40 @@
|
|
23262
23284
|
"Failure",
|
23263
23285
|
"NotSupported"
|
23264
23286
|
]
|
23287
|
+
},
|
23288
|
+
{
|
23289
|
+
"id": "PrefetchStatus",
|
23290
|
+
"description": "TODO(https://crbug.com/1384419): revisit the list of PrefetchStatus and\nfilter out the ones that aren't necessary to the developers.",
|
23291
|
+
"type": "string",
|
23292
|
+
"enum": [
|
23293
|
+
"PrefetchAllowed",
|
23294
|
+
"PrefetchFailedIneligibleRedirect",
|
23295
|
+
"PrefetchFailedInvalidRedirect",
|
23296
|
+
"PrefetchFailedMIMENotSupported",
|
23297
|
+
"PrefetchFailedNetError",
|
23298
|
+
"PrefetchFailedNon2XX",
|
23299
|
+
"PrefetchFailedPerPageLimitExceeded",
|
23300
|
+
"PrefetchHeldback",
|
23301
|
+
"PrefetchIneligibleRetryAfter",
|
23302
|
+
"PrefetchIsPrivacyDecoy",
|
23303
|
+
"PrefetchIsStale",
|
23304
|
+
"PrefetchNotEligibleBrowserContextOffTheRecord",
|
23305
|
+
"PrefetchNotEligibleDataSaverEnabled",
|
23306
|
+
"PrefetchNotEligibleExistingProxy",
|
23307
|
+
"PrefetchNotEligibleHostIsNonUnique",
|
23308
|
+
"PrefetchNotEligibleNonDefaultStoragePartition",
|
23309
|
+
"PrefetchNotEligibleSameSiteCrossOriginPrefetchRequiredProxy",
|
23310
|
+
"PrefetchNotEligibleSchemeIsNotHttps",
|
23311
|
+
"PrefetchNotEligibleUserHasCookies",
|
23312
|
+
"PrefetchNotEligibleUserHasServiceWorker",
|
23313
|
+
"PrefetchNotFinishedInTime",
|
23314
|
+
"PrefetchNotStarted",
|
23315
|
+
"PrefetchNotUsedCookiesChanged",
|
23316
|
+
"PrefetchProxyNotAvailable",
|
23317
|
+
"PrefetchResponseUsed",
|
23318
|
+
"PrefetchSuccessfulButNotUsed",
|
23319
|
+
"PrefetchNotUsedProbeFailed"
|
23320
|
+
]
|
23265
23321
|
}
|
23266
23322
|
],
|
23267
23323
|
"commands": [
|
@@ -23351,6 +23407,10 @@
|
|
23351
23407
|
{
|
23352
23408
|
"name": "status",
|
23353
23409
|
"$ref": "PreloadingStatus"
|
23410
|
+
},
|
23411
|
+
{
|
23412
|
+
"name": "prefetchStatus",
|
23413
|
+
"$ref": "PrefetchStatus"
|
23354
23414
|
}
|
23355
23415
|
]
|
23356
23416
|
},
|
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,6 +11004,9 @@ experimental domain Preload
|
|
10996
11004
|
SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation
|
10997
11005
|
MemoryPressureOnTrigger
|
10998
11006
|
MemoryPressureAfterTriggered
|
11007
|
+
SpeculationRuleRemoved
|
11008
|
+
TriggerPageNavigated
|
11009
|
+
OtherPrerenderedPageActivated
|
10999
11010
|
|
11000
11011
|
# Fired when a prerender attempt is completed.
|
11001
11012
|
event prerenderAttemptCompleted
|
@@ -11035,6 +11046,44 @@ experimental domain Preload
|
|
11035
11046
|
# PreloadingTriggeringOutcome which not used by prefetch nor prerender.
|
11036
11047
|
NotSupported
|
11037
11048
|
|
11049
|
+
# TODO(https://crbug.com/1384419): revisit the list of PrefetchStatus and
|
11050
|
+
# filter out the ones that aren't necessary to the developers.
|
11051
|
+
type PrefetchStatus extends string
|
11052
|
+
enum
|
11053
|
+
# Prefetch is not disabled by PrefetchHeldback.
|
11054
|
+
PrefetchAllowed
|
11055
|
+
PrefetchFailedIneligibleRedirect
|
11056
|
+
PrefetchFailedInvalidRedirect
|
11057
|
+
PrefetchFailedMIMENotSupported
|
11058
|
+
PrefetchFailedNetError
|
11059
|
+
PrefetchFailedNon2XX
|
11060
|
+
PrefetchFailedPerPageLimitExceeded
|
11061
|
+
PrefetchHeldback
|
11062
|
+
# A previous prefetch to the origin got a HTTP 503 response with an
|
11063
|
+
# Retry-After header that has no elapsed yet.
|
11064
|
+
PrefetchIneligibleRetryAfter
|
11065
|
+
PrefetchIsPrivacyDecoy
|
11066
|
+
PrefetchIsStale
|
11067
|
+
PrefetchNotEligibleBrowserContextOffTheRecord
|
11068
|
+
PrefetchNotEligibleDataSaverEnabled
|
11069
|
+
PrefetchNotEligibleExistingProxy
|
11070
|
+
PrefetchNotEligibleHostIsNonUnique
|
11071
|
+
PrefetchNotEligibleNonDefaultStoragePartition
|
11072
|
+
PrefetchNotEligibleSameSiteCrossOriginPrefetchRequiredProxy
|
11073
|
+
PrefetchNotEligibleSchemeIsNotHttps
|
11074
|
+
PrefetchNotEligibleUserHasCookies
|
11075
|
+
PrefetchNotEligibleUserHasServiceWorker
|
11076
|
+
PrefetchNotFinishedInTime
|
11077
|
+
PrefetchNotStarted
|
11078
|
+
PrefetchNotUsedCookiesChanged
|
11079
|
+
PrefetchProxyNotAvailable
|
11080
|
+
# The response of the prefetch is used for the next navigation. This is
|
11081
|
+
# the final successful state.
|
11082
|
+
PrefetchResponseUsed
|
11083
|
+
# The prefetch finished successfully but was never used.
|
11084
|
+
PrefetchSuccessfulButNotUsed
|
11085
|
+
PrefetchNotUsedProbeFailed
|
11086
|
+
|
11038
11087
|
# Fired when a prefetch attempt is updated.
|
11039
11088
|
event prefetchStatusUpdated
|
11040
11089
|
parameters
|
@@ -11043,6 +11092,7 @@ experimental domain Preload
|
|
11043
11092
|
Page.FrameId initiatingFrameId
|
11044
11093
|
string prefetchUrl
|
11045
11094
|
PreloadingStatus status
|
11095
|
+
PrefetchStatus prefetchStatus
|
11046
11096
|
|
11047
11097
|
# Fired when a prerender attempt is updated.
|
11048
11098
|
event prerenderStatusUpdated
|
@@ -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' | 'SpeculationRuleRemoved' | 'TriggerPageNavigated' | 'OtherPrerenderedPageActivated');
|
17157
17165
|
|
17158
17166
|
export type PreloadEnabledState = ('Enabled' | 'DisabledByDataSaver' | 'DisabledByBatterySaver' | 'DisabledByPreference' | 'NotSupported');
|
17159
17167
|
|
@@ -17163,6 +17171,12 @@ export namespace Protocol {
|
|
17163
17171
|
*/
|
17164
17172
|
export type PreloadingStatus = ('Pending' | 'Running' | 'Ready' | 'Success' | 'Failure' | 'NotSupported');
|
17165
17173
|
|
17174
|
+
/**
|
17175
|
+
* TODO(https://crbug.com/1384419): revisit the list of PrefetchStatus and
|
17176
|
+
* filter out the ones that aren't necessary to the developers.
|
17177
|
+
*/
|
17178
|
+
export type PrefetchStatus = ('PrefetchAllowed' | 'PrefetchFailedIneligibleRedirect' | 'PrefetchFailedInvalidRedirect' | 'PrefetchFailedMIMENotSupported' | 'PrefetchFailedNetError' | 'PrefetchFailedNon2XX' | 'PrefetchFailedPerPageLimitExceeded' | 'PrefetchHeldback' | 'PrefetchIneligibleRetryAfter' | 'PrefetchIsPrivacyDecoy' | 'PrefetchIsStale' | 'PrefetchNotEligibleBrowserContextOffTheRecord' | 'PrefetchNotEligibleDataSaverEnabled' | 'PrefetchNotEligibleExistingProxy' | 'PrefetchNotEligibleHostIsNonUnique' | 'PrefetchNotEligibleNonDefaultStoragePartition' | 'PrefetchNotEligibleSameSiteCrossOriginPrefetchRequiredProxy' | 'PrefetchNotEligibleSchemeIsNotHttps' | 'PrefetchNotEligibleUserHasCookies' | 'PrefetchNotEligibleUserHasServiceWorker' | 'PrefetchNotFinishedInTime' | 'PrefetchNotStarted' | 'PrefetchNotUsedCookiesChanged' | 'PrefetchProxyNotAvailable' | 'PrefetchResponseUsed' | 'PrefetchSuccessfulButNotUsed' | 'PrefetchNotUsedProbeFailed');
|
17179
|
+
|
17166
17180
|
/**
|
17167
17181
|
* Upsert. Currently, it is only emitted when a rule set added.
|
17168
17182
|
*/
|
@@ -17210,6 +17224,7 @@ export namespace Protocol {
|
|
17210
17224
|
initiatingFrameId: Page.FrameId;
|
17211
17225
|
prefetchUrl: string;
|
17212
17226
|
status: PreloadingStatus;
|
17227
|
+
prefetchStatus: PrefetchStatus;
|
17213
17228
|
}
|
17214
17229
|
|
17215
17230
|
/**
|