From 38dbfd6ebfcc88a082cb696ed4c0f856dcf70064 Mon Sep 17 00:00:00 2001 From: Philip Pfaffe Date: Tue, 14 Nov 2023 11:54:29 +0000 Subject: [PATCH] Update browser_protocol MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: 1501781 Change-Id: I41460c95564d65205b4a238d4c2b6c1ecf69cd59 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5028364 Reviewed-by: Ergün Erdoğmuş Auto-Submit: Philip Pfaffe Commit-Queue: Ergün Erdoğmuş --- .../generated/InspectorBackendCommands.js | 13 +-- front_end/generated/protocol-mapping.d.ts | 8 +- front_end/generated/protocol-proxy-api.d.ts | 6 +- front_end/generated/protocol.ts | 55 ++++++++++++- .../devtools_protocol/browser_protocol.json | 82 +++++++++++++++++-- .../devtools_protocol/browser_protocol.pdl | 41 ++++++++-- 6 files changed, 173 insertions(+), 32 deletions(-) diff --git a/front_end/generated/InspectorBackendCommands.js b/front_end/generated/InspectorBackendCommands.js index 3f0b0048c2..286125a44f 100644 --- a/front_end/generated/InspectorBackendCommands.js +++ b/front_end/generated/InspectorBackendCommands.js @@ -95,7 +95,7 @@ inspectorBackend.registerEnum("Audits.SharedArrayBufferIssueType", {TransferIssu inspectorBackend.registerEnum("Audits.AttributionReportingIssueType", {PermissionPolicyDisabled: "PermissionPolicyDisabled", UntrustworthyReportingOrigin: "UntrustworthyReportingOrigin", InsecureContext: "InsecureContext", InvalidHeader: "InvalidHeader", InvalidRegisterTriggerHeader: "InvalidRegisterTriggerHeader", SourceAndTriggerHeaders: "SourceAndTriggerHeaders", SourceIgnored: "SourceIgnored", TriggerIgnored: "TriggerIgnored", OsSourceIgnored: "OsSourceIgnored", OsTriggerIgnored: "OsTriggerIgnored", InvalidRegisterOsSourceHeader: "InvalidRegisterOsSourceHeader", InvalidRegisterOsTriggerHeader: "InvalidRegisterOsTriggerHeader", WebAndOsHeaders: "WebAndOsHeaders", NoWebOrOsSupport: "NoWebOrOsSupport", NavigationRegistrationWithoutTransientUserActivation: "NavigationRegistrationWithoutTransientUserActivation"}); inspectorBackend.registerEnum("Audits.GenericIssueErrorType", {CrossOriginPortalPostMessageError: "CrossOriginPortalPostMessageError", FormLabelForNameError: "FormLabelForNameError", FormDuplicateIdForInputError: "FormDuplicateIdForInputError", FormInputWithNoLabelError: "FormInputWithNoLabelError", FormAutocompleteAttributeEmptyError: "FormAutocompleteAttributeEmptyError", FormEmptyIdAndNameAttributesForInputError: "FormEmptyIdAndNameAttributesForInputError", FormAriaLabelledByToNonExistingId: "FormAriaLabelledByToNonExistingId", FormInputAssignedAutocompleteValueToIdOrNameAttributeError: "FormInputAssignedAutocompleteValueToIdOrNameAttributeError", FormLabelHasNeitherForNorNestedInput: "FormLabelHasNeitherForNorNestedInput", FormLabelForMatchesNonExistingIdError: "FormLabelForMatchesNonExistingIdError", FormInputHasWrongButWellIntendedAutocompleteValueError: "FormInputHasWrongButWellIntendedAutocompleteValueError", ResponseWasBlockedByORB: "ResponseWasBlockedByORB"}); inspectorBackend.registerEnum("Audits.ClientHintIssueReason", {MetaTagAllowListInvalidOrigin: "MetaTagAllowListInvalidOrigin", MetaTagModifiedHTML: "MetaTagModifiedHTML"}); -inspectorBackend.registerEnum("Audits.FederatedAuthRequestIssueReason", {ShouldEmbargo: "ShouldEmbargo", TooManyRequests: "TooManyRequests", WellKnownHttpNotFound: "WellKnownHttpNotFound", WellKnownNoResponse: "WellKnownNoResponse", WellKnownInvalidResponse: "WellKnownInvalidResponse", WellKnownListEmpty: "WellKnownListEmpty", WellKnownInvalidContentType: "WellKnownInvalidContentType", ConfigNotInWellKnown: "ConfigNotInWellKnown", WellKnownTooBig: "WellKnownTooBig", ConfigHttpNotFound: "ConfigHttpNotFound", ConfigNoResponse: "ConfigNoResponse", ConfigInvalidResponse: "ConfigInvalidResponse", ConfigInvalidContentType: "ConfigInvalidContentType", ClientMetadataHttpNotFound: "ClientMetadataHttpNotFound", ClientMetadataNoResponse: "ClientMetadataNoResponse", ClientMetadataInvalidResponse: "ClientMetadataInvalidResponse", ClientMetadataInvalidContentType: "ClientMetadataInvalidContentType", DisabledInSettings: "DisabledInSettings", ErrorFetchingSignin: "ErrorFetchingSignin", InvalidSigninResponse: "InvalidSigninResponse", AccountsHttpNotFound: "AccountsHttpNotFound", AccountsNoResponse: "AccountsNoResponse", AccountsInvalidResponse: "AccountsInvalidResponse", AccountsListEmpty: "AccountsListEmpty", AccountsInvalidContentType: "AccountsInvalidContentType", IdTokenHttpNotFound: "IdTokenHttpNotFound", IdTokenNoResponse: "IdTokenNoResponse", IdTokenInvalidResponse: "IdTokenInvalidResponse", IdTokenInvalidRequest: "IdTokenInvalidRequest", IdTokenInvalidContentType: "IdTokenInvalidContentType", ErrorIdToken: "ErrorIdToken", Canceled: "Canceled", RpPageNotVisible: "RpPageNotVisible", SilentMediationFailure: "SilentMediationFailure", ThirdPartyCookiesBlocked: "ThirdPartyCookiesBlocked", NotSignedInWithIdp: "NotSignedInWithIdp"}); +inspectorBackend.registerEnum("Audits.FederatedAuthRequestIssueReason", {ShouldEmbargo: "ShouldEmbargo", TooManyRequests: "TooManyRequests", WellKnownHttpNotFound: "WellKnownHttpNotFound", WellKnownNoResponse: "WellKnownNoResponse", WellKnownInvalidResponse: "WellKnownInvalidResponse", WellKnownListEmpty: "WellKnownListEmpty", WellKnownInvalidContentType: "WellKnownInvalidContentType", ConfigNotInWellKnown: "ConfigNotInWellKnown", WellKnownTooBig: "WellKnownTooBig", ConfigHttpNotFound: "ConfigHttpNotFound", ConfigNoResponse: "ConfigNoResponse", ConfigInvalidResponse: "ConfigInvalidResponse", ConfigInvalidContentType: "ConfigInvalidContentType", ClientMetadataHttpNotFound: "ClientMetadataHttpNotFound", ClientMetadataNoResponse: "ClientMetadataNoResponse", ClientMetadataInvalidResponse: "ClientMetadataInvalidResponse", ClientMetadataInvalidContentType: "ClientMetadataInvalidContentType", DisabledInSettings: "DisabledInSettings", ErrorFetchingSignin: "ErrorFetchingSignin", InvalidSigninResponse: "InvalidSigninResponse", AccountsHttpNotFound: "AccountsHttpNotFound", AccountsNoResponse: "AccountsNoResponse", AccountsInvalidResponse: "AccountsInvalidResponse", AccountsListEmpty: "AccountsListEmpty", AccountsInvalidContentType: "AccountsInvalidContentType", IdTokenHttpNotFound: "IdTokenHttpNotFound", IdTokenNoResponse: "IdTokenNoResponse", IdTokenInvalidResponse: "IdTokenInvalidResponse", IdTokenIdpErrorResponse: "IdTokenIdpErrorResponse", IdTokenCrossSiteIdpErrorResponse: "IdTokenCrossSiteIdpErrorResponse", IdTokenInvalidRequest: "IdTokenInvalidRequest", IdTokenInvalidContentType: "IdTokenInvalidContentType", ErrorIdToken: "ErrorIdToken", Canceled: "Canceled", RpPageNotVisible: "RpPageNotVisible", SilentMediationFailure: "SilentMediationFailure", ThirdPartyCookiesBlocked: "ThirdPartyCookiesBlocked", NotSignedInWithIdp: "NotSignedInWithIdp"}); inspectorBackend.registerEnum("Audits.FederatedAuthUserInfoRequestIssueReason", {NotSameOrigin: "NotSameOrigin", NotIframe: "NotIframe", NotPotentiallyTrustworthy: "NotPotentiallyTrustworthy", NoAPIPermission: "NoApiPermission", NotSignedInWithIdp: "NotSignedInWithIdp", NoAccountSharingPermission: "NoAccountSharingPermission", InvalidConfigOrWellKnown: "InvalidConfigOrWellKnown", InvalidAccountsResponse: "InvalidAccountsResponse", NoReturningUserFromFetchedAccounts: "NoReturningUserFromFetchedAccounts"}); inspectorBackend.registerEnum("Audits.StyleSheetLoadingIssueReason", {LateImportRule: "LateImportRule", RequestFailed: "RequestFailed"}); inspectorBackend.registerEnum("Audits.PropertyRuleIssueReason", {InvalidSyntax: "InvalidSyntax", InvalidInitialValue: "InvalidInitialValue", InvalidInherits: "InvalidInherits", InvalidName: "InvalidName"}); @@ -210,7 +210,7 @@ inspectorBackend.registerCommand("CSS.forcePseudoState", [{"name": "nodeId", "ty inspectorBackend.registerCommand("CSS.getBackgroundColors", [{"name": "nodeId", "type": "number", "optional": false, "description": "Id of the node to get background colors for.", "typeRef": "DOM.NodeId"}], ["backgroundColors", "computedFontSize", "computedFontWeight"], ""); inspectorBackend.registerCommand("CSS.getComputedStyleForNode", [{"name": "nodeId", "type": "number", "optional": false, "description": "", "typeRef": "DOM.NodeId"}], ["computedStyle"], "Returns the computed style for a DOM node identified by `nodeId`."); inspectorBackend.registerCommand("CSS.getInlineStylesForNode", [{"name": "nodeId", "type": "number", "optional": false, "description": "", "typeRef": "DOM.NodeId"}], ["inlineStyle", "attributesStyle"], "Returns the styles defined inline (explicitly in the \"style\" attribute and implicitly, using DOM attributes) for a DOM node identified by `nodeId`."); -inspectorBackend.registerCommand("CSS.getMatchedStylesForNode", [{"name": "nodeId", "type": "number", "optional": false, "description": "", "typeRef": "DOM.NodeId"}], ["inlineStyle", "attributesStyle", "matchedCSSRules", "pseudoElements", "inherited", "inheritedPseudoElements", "cssKeyframesRules", "cssPositionFallbackRules", "cssPropertyRules", "cssPropertyRegistrations", "parentLayoutNodeId"], "Returns requested styles for a DOM node identified by `nodeId`."); +inspectorBackend.registerCommand("CSS.getMatchedStylesForNode", [{"name": "nodeId", "type": "number", "optional": false, "description": "", "typeRef": "DOM.NodeId"}], ["inlineStyle", "attributesStyle", "matchedCSSRules", "pseudoElements", "inherited", "inheritedPseudoElements", "cssKeyframesRules", "cssPositionFallbackRules", "cssPropertyRules", "cssPropertyRegistrations", "cssFontPaletteValuesRule", "parentLayoutNodeId"], "Returns requested styles for a DOM node identified by `nodeId`."); inspectorBackend.registerCommand("CSS.getMediaQueries", [], ["medias"], "Returns all media queries parsed by the rendering engine."); inspectorBackend.registerCommand("CSS.getPlatformFontsForNode", [{"name": "nodeId", "type": "number", "optional": false, "description": "", "typeRef": "DOM.NodeId"}], ["fonts"], "Requests information about platform fonts which we used to render child TextNodes in the given node."); inspectorBackend.registerCommand("CSS.getStyleSheetText", [{"name": "styleSheetId", "type": "string", "optional": false, "description": "", "typeRef": "CSS.StyleSheetId"}], ["text"], "Returns the current textual content for a stylesheet."); @@ -261,6 +261,7 @@ inspectorBackend.registerType("CSS.CSSTryRule", [{"name": "styleSheetId", "type" inspectorBackend.registerType("CSS.CSSPositionFallbackRule", [{"name": "name", "type": "object", "optional": false, "description": "", "typeRef": "CSS.Value"}, {"name": "tryRules", "type": "array", "optional": false, "description": "List of keyframes.", "typeRef": "CSS.CSSTryRule"}]); inspectorBackend.registerType("CSS.CSSKeyframesRule", [{"name": "animationName", "type": "object", "optional": false, "description": "Animation name.", "typeRef": "CSS.Value"}, {"name": "keyframes", "type": "array", "optional": false, "description": "List of keyframes.", "typeRef": "CSS.CSSKeyframeRule"}]); inspectorBackend.registerType("CSS.CSSPropertyRegistration", [{"name": "propertyName", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "initialValue", "type": "object", "optional": true, "description": "", "typeRef": "CSS.Value"}, {"name": "inherits", "type": "boolean", "optional": false, "description": "", "typeRef": null}, {"name": "syntax", "type": "string", "optional": false, "description": "", "typeRef": null}]); +inspectorBackend.registerType("CSS.CSSFontPaletteValuesRule", [{"name": "styleSheetId", "type": "string", "optional": true, "description": "The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.", "typeRef": "CSS.StyleSheetId"}, {"name": "origin", "type": "string", "optional": false, "description": "Parent stylesheet's origin.", "typeRef": "CSS.StyleSheetOrigin"}, {"name": "fontPaletteName", "type": "object", "optional": false, "description": "Associated font palette name.", "typeRef": "CSS.Value"}, {"name": "style", "type": "object", "optional": false, "description": "Associated style declaration.", "typeRef": "CSS.CSSStyle"}]); inspectorBackend.registerType("CSS.CSSPropertyRule", [{"name": "styleSheetId", "type": "string", "optional": true, "description": "The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.", "typeRef": "CSS.StyleSheetId"}, {"name": "origin", "type": "string", "optional": false, "description": "Parent stylesheet's origin.", "typeRef": "CSS.StyleSheetOrigin"}, {"name": "propertyName", "type": "object", "optional": false, "description": "Associated property name.", "typeRef": "CSS.Value"}, {"name": "style", "type": "object", "optional": false, "description": "Associated style declaration.", "typeRef": "CSS.CSSStyle"}]); inspectorBackend.registerType("CSS.CSSKeyframeRule", [{"name": "styleSheetId", "type": "string", "optional": true, "description": "The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.", "typeRef": "CSS.StyleSheetId"}, {"name": "origin", "type": "string", "optional": false, "description": "Parent stylesheet's origin.", "typeRef": "CSS.StyleSheetOrigin"}, {"name": "keyText", "type": "object", "optional": false, "description": "Associated key text.", "typeRef": "CSS.Value"}, {"name": "style", "type": "object", "optional": false, "description": "Associated style declaration.", "typeRef": "CSS.CSSStyle"}]); inspectorBackend.registerType("CSS.StyleDeclarationEdit", [{"name": "styleSheetId", "type": "string", "optional": false, "description": "The css style sheet identifier.", "typeRef": "CSS.StyleSheetId"}, {"name": "range", "type": "object", "optional": false, "description": "The range of the style text in the enclosing stylesheet.", "typeRef": "CSS.SourceRange"}, {"name": "text", "type": "string", "optional": false, "description": "New style text.", "typeRef": null}]); @@ -793,7 +794,7 @@ inspectorBackend.registerEnum("Page.AdFrameExplanation", {ParentIsAd: "ParentIsA inspectorBackend.registerEnum("Page.SecureContextType", {Secure: "Secure", SecureLocalhost: "SecureLocalhost", InsecureScheme: "InsecureScheme", InsecureAncestor: "InsecureAncestor"}); inspectorBackend.registerEnum("Page.CrossOriginIsolatedContextType", {Isolated: "Isolated", NotIsolated: "NotIsolated", NotIsolatedFeatureDisabled: "NotIsolatedFeatureDisabled"}); inspectorBackend.registerEnum("Page.GatedAPIFeatures", {SharedArrayBuffers: "SharedArrayBuffers", SharedArrayBuffersTransferAllowed: "SharedArrayBuffersTransferAllowed", PerformanceMeasureMemory: "PerformanceMeasureMemory", PerformanceProfile: "PerformanceProfile"}); -inspectorBackend.registerEnum("Page.PermissionsPolicyFeature", {Accelerometer: "accelerometer", AmbientLightSensor: "ambient-light-sensor", AttributionReporting: "attribution-reporting", Autoplay: "autoplay", Bluetooth: "bluetooth", BrowsingTopics: "browsing-topics", Camera: "camera", ChDpr: "ch-dpr", ChDeviceMemory: "ch-device-memory", ChDownlink: "ch-downlink", ChEct: "ch-ect", ChPrefersColorScheme: "ch-prefers-color-scheme", ChPrefersReducedMotion: "ch-prefers-reduced-motion", ChPrefersReducedTransparency: "ch-prefers-reduced-transparency", ChRtt: "ch-rtt", ChSaveData: "ch-save-data", ChUa: "ch-ua", ChUaArch: "ch-ua-arch", ChUaBitness: "ch-ua-bitness", ChUaPlatform: "ch-ua-platform", ChUaModel: "ch-ua-model", ChUaMobile: "ch-ua-mobile", ChUaFormFactor: "ch-ua-form-factor", ChUaFullVersion: "ch-ua-full-version", ChUaFullVersionList: "ch-ua-full-version-list", ChUaPlatformVersion: "ch-ua-platform-version", ChUaWow64: "ch-ua-wow64", ChViewportHeight: "ch-viewport-height", ChViewportWidth: "ch-viewport-width", ChWidth: "ch-width", ClipboardRead: "clipboard-read", ClipboardWrite: "clipboard-write", ComputePressure: "compute-pressure", CrossOriginIsolated: "cross-origin-isolated", DirectSockets: "direct-sockets", DisplayCapture: "display-capture", DocumentDomain: "document-domain", EncryptedMedia: "encrypted-media", ExecutionWhileOutOfViewport: "execution-while-out-of-viewport", ExecutionWhileNotRendered: "execution-while-not-rendered", FocusWithoutUserActivation: "focus-without-user-activation", Fullscreen: "fullscreen", Frobulate: "frobulate", Gamepad: "gamepad", Geolocation: "geolocation", Gyroscope: "gyroscope", Hid: "hid", IdentityCredentialsGet: "identity-credentials-get", IdleDetection: "idle-detection", InterestCohort: "interest-cohort", JoinAdInterestGroup: "join-ad-interest-group", KeyboardMap: "keyboard-map", LocalFonts: "local-fonts", Magnetometer: "magnetometer", Microphone: "microphone", Midi: "midi", OtpCredentials: "otp-credentials", Payment: "payment", PictureInPicture: "picture-in-picture", PrivateAggregation: "private-aggregation", PrivateStateTokenIssuance: "private-state-token-issuance", PrivateStateTokenRedemption: "private-state-token-redemption", PublickeyCredentialsGet: "publickey-credentials-get", RunAdAuction: "run-ad-auction", ScreenWakeLock: "screen-wake-lock", Serial: "serial", SharedAutofill: "shared-autofill", SharedStorage: "shared-storage", SharedStorageSelectUrl: "shared-storage-select-url", SmartCard: "smart-card", StorageAccess: "storage-access", SyncXhr: "sync-xhr", Unload: "unload", Usb: "usb", VerticalScroll: "vertical-scroll", WebShare: "web-share", WindowManagement: "window-management", WindowPlacement: "window-placement", XrSpatialTracking: "xr-spatial-tracking"}); +inspectorBackend.registerEnum("Page.PermissionsPolicyFeature", {Accelerometer: "accelerometer", AmbientLightSensor: "ambient-light-sensor", AttributionReporting: "attribution-reporting", Autoplay: "autoplay", Bluetooth: "bluetooth", BrowsingTopics: "browsing-topics", Camera: "camera", ChDpr: "ch-dpr", ChDeviceMemory: "ch-device-memory", ChDownlink: "ch-downlink", ChEct: "ch-ect", ChPrefersColorScheme: "ch-prefers-color-scheme", ChPrefersReducedMotion: "ch-prefers-reduced-motion", ChPrefersReducedTransparency: "ch-prefers-reduced-transparency", ChRtt: "ch-rtt", ChSaveData: "ch-save-data", ChUa: "ch-ua", ChUaArch: "ch-ua-arch", ChUaBitness: "ch-ua-bitness", ChUaPlatform: "ch-ua-platform", ChUaModel: "ch-ua-model", ChUaMobile: "ch-ua-mobile", ChUaFormFactor: "ch-ua-form-factor", ChUaFullVersion: "ch-ua-full-version", ChUaFullVersionList: "ch-ua-full-version-list", ChUaPlatformVersion: "ch-ua-platform-version", ChUaWow64: "ch-ua-wow64", ChViewportHeight: "ch-viewport-height", ChViewportWidth: "ch-viewport-width", ChWidth: "ch-width", ClipboardRead: "clipboard-read", ClipboardWrite: "clipboard-write", ComputePressure: "compute-pressure", CrossOriginIsolated: "cross-origin-isolated", DirectSockets: "direct-sockets", DisplayCapture: "display-capture", DocumentDomain: "document-domain", EncryptedMedia: "encrypted-media", ExecutionWhileOutOfViewport: "execution-while-out-of-viewport", ExecutionWhileNotRendered: "execution-while-not-rendered", FocusWithoutUserActivation: "focus-without-user-activation", Fullscreen: "fullscreen", Frobulate: "frobulate", Gamepad: "gamepad", Geolocation: "geolocation", Gyroscope: "gyroscope", Hid: "hid", IdentityCredentialsGet: "identity-credentials-get", IdleDetection: "idle-detection", InterestCohort: "interest-cohort", JoinAdInterestGroup: "join-ad-interest-group", KeyboardMap: "keyboard-map", LocalFonts: "local-fonts", Magnetometer: "magnetometer", Microphone: "microphone", Midi: "midi", OtpCredentials: "otp-credentials", Payment: "payment", PictureInPicture: "picture-in-picture", PrivateAggregation: "private-aggregation", PrivateStateTokenIssuance: "private-state-token-issuance", PrivateStateTokenRedemption: "private-state-token-redemption", PublickeyCredentialsGet: "publickey-credentials-get", RunAdAuction: "run-ad-auction", ScreenWakeLock: "screen-wake-lock", Serial: "serial", SharedAutofill: "shared-autofill", SharedStorage: "shared-storage", SharedStorageSelectUrl: "shared-storage-select-url", SmartCard: "smart-card", StorageAccess: "storage-access", SyncXhr: "sync-xhr", Unload: "unload", Usb: "usb", VerticalScroll: "vertical-scroll", WebPrinting: "web-printing", WebShare: "web-share", WindowManagement: "window-management", WindowPlacement: "window-placement", XrSpatialTracking: "xr-spatial-tracking"}); inspectorBackend.registerEnum("Page.PermissionsPolicyBlockReason", {Header: "Header", IframeAttribute: "IframeAttribute", InFencedFrameTree: "InFencedFrameTree", InIsolatedApp: "InIsolatedApp"}); inspectorBackend.registerEnum("Page.OriginTrialTokenStatus", {Success: "Success", NotSupported: "NotSupported", Insecure: "Insecure", Expired: "Expired", WrongOrigin: "WrongOrigin", InvalidSignature: "InvalidSignature", Malformed: "Malformed", WrongVersion: "WrongVersion", FeatureDisabled: "FeatureDisabled", TokenDisabled: "TokenDisabled", FeatureDisabledForUser: "FeatureDisabledForUser", UnknownTrial: "UnknownTrial"}); inspectorBackend.registerEnum("Page.OriginTrialStatus", {Enabled: "Enabled", ValidTokenNotProvided: "ValidTokenNotProvided", OSNotSupported: "OSNotSupported", TrialNotAllowed: "TrialNotAllowed"}); @@ -1055,7 +1056,8 @@ inspectorBackend.registerType("Storage.StorageBucketInfo", [{"name": "bucket", " inspectorBackend.registerType("Storage.AttributionReportingFilterDataEntry", [{"name": "key", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "values", "type": "array", "optional": false, "description": "", "typeRef": "string"}]); inspectorBackend.registerType("Storage.AttributionReportingAggregationKeysEntry", [{"name": "key", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "value", "type": "string", "optional": false, "description": "", "typeRef": "Storage.UnsignedInt128AsBase16"}]); inspectorBackend.registerType("Storage.AttributionReportingEventReportWindows", [{"name": "start", "type": "number", "optional": false, "description": "duration in seconds", "typeRef": null}, {"name": "ends", "type": "array", "optional": false, "description": "duration in seconds", "typeRef": "integer"}]); -inspectorBackend.registerType("Storage.AttributionReportingSourceRegistration", [{"name": "time", "type": "number", "optional": false, "description": "", "typeRef": "Network.TimeSinceEpoch"}, {"name": "expiry", "type": "number", "optional": false, "description": "duration in seconds", "typeRef": null}, {"name": "eventReportWindows", "type": "object", "optional": false, "description": "", "typeRef": "Storage.AttributionReportingEventReportWindows"}, {"name": "aggregatableReportWindow", "type": "number", "optional": false, "description": "duration in seconds", "typeRef": null}, {"name": "type", "type": "string", "optional": false, "description": "", "typeRef": "Storage.AttributionReportingSourceType"}, {"name": "sourceOrigin", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "reportingOrigin", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "destinationSites", "type": "array", "optional": false, "description": "", "typeRef": "string"}, {"name": "eventId", "type": "string", "optional": false, "description": "", "typeRef": "Storage.UnsignedInt64AsBase10"}, {"name": "priority", "type": "string", "optional": false, "description": "", "typeRef": "Storage.SignedInt64AsBase10"}, {"name": "filterData", "type": "array", "optional": false, "description": "", "typeRef": "Storage.AttributionReportingFilterDataEntry"}, {"name": "aggregationKeys", "type": "array", "optional": false, "description": "", "typeRef": "Storage.AttributionReportingAggregationKeysEntry"}, {"name": "debugKey", "type": "string", "optional": true, "description": "", "typeRef": "Storage.UnsignedInt64AsBase10"}, {"name": "triggerDataMatching", "type": "string", "optional": false, "description": "", "typeRef": "Storage.AttributionReportingTriggerDataMatching"}]); +inspectorBackend.registerType("Storage.AttributionReportingTriggerSpec", [{"name": "triggerData", "type": "array", "optional": false, "description": "number instead of integer because not all uint32 can be represented by int", "typeRef": "number"}, {"name": "eventReportWindows", "type": "object", "optional": false, "description": "", "typeRef": "Storage.AttributionReportingEventReportWindows"}]); +inspectorBackend.registerType("Storage.AttributionReportingSourceRegistration", [{"name": "time", "type": "number", "optional": false, "description": "", "typeRef": "Network.TimeSinceEpoch"}, {"name": "expiry", "type": "number", "optional": false, "description": "duration in seconds", "typeRef": null}, {"name": "triggerSpecs", "type": "array", "optional": false, "description": "", "typeRef": "Storage.AttributionReportingTriggerSpec"}, {"name": "aggregatableReportWindow", "type": "number", "optional": false, "description": "duration in seconds", "typeRef": null}, {"name": "type", "type": "string", "optional": false, "description": "", "typeRef": "Storage.AttributionReportingSourceType"}, {"name": "sourceOrigin", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "reportingOrigin", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "destinationSites", "type": "array", "optional": false, "description": "", "typeRef": "string"}, {"name": "eventId", "type": "string", "optional": false, "description": "", "typeRef": "Storage.UnsignedInt64AsBase10"}, {"name": "priority", "type": "string", "optional": false, "description": "", "typeRef": "Storage.SignedInt64AsBase10"}, {"name": "filterData", "type": "array", "optional": false, "description": "", "typeRef": "Storage.AttributionReportingFilterDataEntry"}, {"name": "aggregationKeys", "type": "array", "optional": false, "description": "", "typeRef": "Storage.AttributionReportingAggregationKeysEntry"}, {"name": "debugKey", "type": "string", "optional": true, "description": "", "typeRef": "Storage.UnsignedInt64AsBase10"}, {"name": "triggerDataMatching", "type": "string", "optional": false, "description": "", "typeRef": "Storage.AttributionReportingTriggerDataMatching"}]); // SystemInfo. inspectorBackend.registerEnum("SystemInfo.SubsamplingFormat", {Yuv420: "yuv420", Yuv422: "yuv422", Yuv444: "yuv444"}); @@ -1238,11 +1240,12 @@ inspectorBackend.registerType("Preload.PrerenderMismatchedHeaders", [{"name": "h // FedCm. inspectorBackend.registerEnum("FedCm.LoginState", {SignIn: "SignIn", SignUp: "SignUp"}); inspectorBackend.registerEnum("FedCm.DialogType", {AccountChooser: "AccountChooser", AutoReauthn: "AutoReauthn", ConfirmIdpLogin: "ConfirmIdpLogin"}); +inspectorBackend.registerEnum("FedCm.DialogButton", {ConfirmIdpLoginContinue: "ConfirmIdpLoginContinue"}); inspectorBackend.registerEvent("FedCm.dialogShown", ["dialogId", "dialogType", "accounts", "title", "subtitle"]); inspectorBackend.registerCommand("FedCm.enable", [{"name": "disableRejectionDelay", "type": "boolean", "optional": true, "description": "Allows callers to disable the promise rejection delay that would normally happen, if this is unimportant to what's being tested. (step 4 of https://fedidcg.github.io/FedCM/#browser-api-rp-sign-in)", "typeRef": null}], [], ""); inspectorBackend.registerCommand("FedCm.disable", [], [], ""); inspectorBackend.registerCommand("FedCm.selectAccount", [{"name": "dialogId", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "accountIndex", "type": "number", "optional": false, "description": "", "typeRef": null}], [], ""); -inspectorBackend.registerCommand("FedCm.confirmIdpLogin", [{"name": "dialogId", "type": "string", "optional": false, "description": "", "typeRef": null}], [], "Only valid if the dialog type is ConfirmIdpLogin. Acts as if the user had clicked the continue button."); +inspectorBackend.registerCommand("FedCm.clickDialogButton", [{"name": "dialogId", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "dialogButton", "type": "string", "optional": false, "description": "", "typeRef": "FedCm.DialogButton"}], [], ""); inspectorBackend.registerCommand("FedCm.dismissDialog", [{"name": "dialogId", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "triggerCooldown", "type": "boolean", "optional": true, "description": "", "typeRef": null}], [], ""); inspectorBackend.registerCommand("FedCm.resetCooldown", [], [], "Resets the cooldown time, if any, to allow the next FedCM call to show a dialog even if one was recently dismissed by the user."); inspectorBackend.registerType("FedCm.Account", [{"name": "accountId", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "email", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "name", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "givenName", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "pictureUrl", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "idpConfigUrl", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "idpLoginUrl", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "loginState", "type": "string", "optional": false, "description": "", "typeRef": "FedCm.LoginState"}, {"name": "termsOfServiceUrl", "type": "string", "optional": true, "description": "These two are only set if the loginState is signUp", "typeRef": null}, {"name": "privacyPolicyUrl", "type": "string", "optional": true, "description": "", "typeRef": null}]); diff --git a/front_end/generated/protocol-mapping.d.ts b/front_end/generated/protocol-mapping.d.ts index 309b40db65..17b3b79f7b 100644 --- a/front_end/generated/protocol-mapping.d.ts +++ b/front_end/generated/protocol-mapping.d.ts @@ -4267,12 +4267,8 @@ export namespace ProtocolMapping { paramsType: [Protocol.FedCm.SelectAccountRequest]; returnType: void; }; - /** - * Only valid if the dialog type is ConfirmIdpLogin. Acts as if the user had - * clicked the continue button. - */ - 'FedCm.confirmIdpLogin': { - paramsType: [Protocol.FedCm.ConfirmIdpLoginRequest]; + 'FedCm.clickDialogButton': { + paramsType: [Protocol.FedCm.ClickDialogButtonRequest]; returnType: void; }; 'FedCm.dismissDialog': { diff --git a/front_end/generated/protocol-proxy-api.d.ts b/front_end/generated/protocol-proxy-api.d.ts index b3cf25cd3b..313f613733 100644 --- a/front_end/generated/protocol-proxy-api.d.ts +++ b/front_end/generated/protocol-proxy-api.d.ts @@ -3791,11 +3791,7 @@ declare namespace ProtocolProxyApi { invoke_selectAccount(params: Protocol.FedCm.SelectAccountRequest): Promise; - /** - * Only valid if the dialog type is ConfirmIdpLogin. Acts as if the user had - * clicked the continue button. - */ - invoke_confirmIdpLogin(params: Protocol.FedCm.ConfirmIdpLoginRequest): Promise; + invoke_clickDialogButton(params: Protocol.FedCm.ClickDialogButtonRequest): Promise; invoke_dismissDialog(params: Protocol.FedCm.DismissDialogRequest): Promise; diff --git a/front_end/generated/protocol.ts b/front_end/generated/protocol.ts index ba85a9e0df..e43efc784f 100644 --- a/front_end/generated/protocol.ts +++ b/front_end/generated/protocol.ts @@ -1100,6 +1100,8 @@ export namespace Audits { IdTokenHttpNotFound = 'IdTokenHttpNotFound', IdTokenNoResponse = 'IdTokenNoResponse', IdTokenInvalidResponse = 'IdTokenInvalidResponse', + IdTokenIdpErrorResponse = 'IdTokenIdpErrorResponse', + IdTokenCrossSiteIdpErrorResponse = 'IdTokenCrossSiteIdpErrorResponse', IdTokenInvalidRequest = 'IdTokenInvalidRequest', IdTokenInvalidContentType = 'IdTokenInvalidContentType', ErrorIdToken = 'ErrorIdToken', @@ -1650,7 +1652,7 @@ export namespace Browser { /** * Definition of PermissionDescriptor defined in the Permissions API: - * https://w3c.github.io/permissions/#dictdef-permissiondescriptor. + * https://w3c.github.io/permissions/#dom-permissiondescriptor. */ export interface PermissionDescriptor { /** @@ -2748,6 +2750,29 @@ export namespace CSS { syntax: string; } + /** + * CSS font-palette-values rule representation. + */ + export interface CSSFontPaletteValuesRule { + /** + * The css style sheet identifier (absent for user agent stylesheet and user-specified + * stylesheet rules) this rule came from. + */ + styleSheetId?: StyleSheetId; + /** + * Parent stylesheet's origin. + */ + origin: StyleSheetOrigin; + /** + * Associated font palette name. + */ + fontPaletteName: Value; + /** + * Associated style declaration. + */ + style: CSSStyle; + } + /** * CSS property at-rule representation. */ @@ -2968,6 +2993,10 @@ export namespace CSS { * A list of CSS property registrations matching this node. */ cssPropertyRegistrations?: CSSPropertyRegistration[]; + /** + * A font-palette-values rule matching this node. + */ + cssFontPaletteValuesRule?: CSSFontPaletteValuesRule; /** * Id of the first parent element that does not have display: contents. */ @@ -10964,6 +10993,7 @@ export namespace Page { Unload = 'unload', Usb = 'usb', VerticalScroll = 'vertical-scroll', + WebPrinting = 'web-printing', WebShare = 'web-share', WindowManagement = 'window-management', WindowPlacement = 'window-placement', @@ -13696,6 +13726,15 @@ export namespace Storage { ends: integer[]; } + export interface AttributionReportingTriggerSpec { + /** + * number instead of integer because not all uint32 can be represented by + * int + */ + triggerData: number[]; + eventReportWindows: AttributionReportingEventReportWindows; + } + export const enum AttributionReportingTriggerDataMatching { Exact = 'exact', Modulus = 'modulus', @@ -13707,7 +13746,7 @@ export namespace Storage { * duration in seconds */ expiry: integer; - eventReportWindows: AttributionReportingEventReportWindows; + triggerSpecs: AttributionReportingTriggerSpec[]; /** * duration in seconds */ @@ -16303,7 +16342,7 @@ export namespace FedCm { } /** - * Whether the dialog shown is an account chooser or an auto re-authentication dialog. + * The types of FedCM dialogs. */ export const enum DialogType { AccountChooser = 'AccountChooser', @@ -16311,6 +16350,13 @@ export namespace FedCm { ConfirmIdpLogin = 'ConfirmIdpLogin', } + /** + * The buttons on the FedCM dialog. + */ + export const enum DialogButton { + ConfirmIdpLoginContinue = 'ConfirmIdpLoginContinue', + } + /** * Corresponds to IdentityRequestAccount */ @@ -16344,8 +16390,9 @@ export namespace FedCm { accountIndex: integer; } - export interface ConfirmIdpLoginRequest { + export interface ClickDialogButtonRequest { dialogId: string; + dialogButton: DialogButton; } export interface DismissDialogRequest { diff --git a/third_party/blink/public/devtools_protocol/browser_protocol.json b/third_party/blink/public/devtools_protocol/browser_protocol.json index dff943ebad..9dc990f95e 100644 --- a/third_party/blink/public/devtools_protocol/browser_protocol.json +++ b/third_party/blink/public/devtools_protocol/browser_protocol.json @@ -1647,6 +1647,8 @@ "IdTokenHttpNotFound", "IdTokenNoResponse", "IdTokenInvalidResponse", + "IdTokenIdpErrorResponse", + "IdTokenCrossSiteIdpErrorResponse", "IdTokenInvalidRequest", "IdTokenInvalidContentType", "ErrorIdToken", @@ -2517,7 +2519,7 @@ }, { "id": "PermissionDescriptor", - "description": "Definition of PermissionDescriptor defined in the Permissions API:\nhttps://w3c.github.io/permissions/#dictdef-permissiondescriptor.", + "description": "Definition of PermissionDescriptor defined in the Permissions API:\nhttps://w3c.github.io/permissions/#dom-permissiondescriptor.", "experimental": true, "type": "object", "properties": [ @@ -4055,6 +4057,34 @@ } ] }, + { + "id": "CSSFontPaletteValuesRule", + "description": "CSS font-palette-values rule representation.", + "type": "object", + "properties": [ + { + "name": "styleSheetId", + "description": "The css style sheet identifier (absent for user agent stylesheet and user-specified\nstylesheet rules) this rule came from.", + "optional": true, + "$ref": "StyleSheetId" + }, + { + "name": "origin", + "description": "Parent stylesheet's origin.", + "$ref": "StyleSheetOrigin" + }, + { + "name": "fontPaletteName", + "description": "Associated font palette name.", + "$ref": "Value" + }, + { + "name": "style", + "description": "Associated style declaration.", + "$ref": "CSSStyle" + } + ] + }, { "id": "CSSPropertyRule", "description": "CSS property at-rule representation.", @@ -4399,6 +4429,12 @@ "$ref": "CSSPropertyRegistration" } }, + { + "name": "cssFontPaletteValuesRule", + "description": "A font-palette-values rule matching this node.", + "optional": true, + "$ref": "CSSFontPaletteValuesRule" + }, { "name": "parentLayoutNodeId", "description": "Id of the first parent element that does not have display: contents.", @@ -16263,6 +16299,7 @@ "unload", "usb", "vertical-scroll", + "web-printing", "web-share", "window-management", "window-placement", @@ -20464,6 +20501,25 @@ } ] }, + { + "id": "AttributionReportingTriggerSpec", + "experimental": true, + "type": "object", + "properties": [ + { + "name": "triggerData", + "description": "number instead of integer because not all uint32 can be represented by\nint", + "type": "array", + "items": { + "type": "number" + } + }, + { + "name": "eventReportWindows", + "$ref": "AttributionReportingEventReportWindows" + } + ] + }, { "id": "AttributionReportingTriggerDataMatching", "experimental": true, @@ -20488,8 +20544,11 @@ "type": "integer" }, { - "name": "eventReportWindows", - "$ref": "AttributionReportingEventReportWindows" + "name": "triggerSpecs", + "type": "array", + "items": { + "$ref": "AttributionReportingTriggerSpec" + } }, { "name": "aggregatableReportWindow", @@ -24526,7 +24585,7 @@ }, { "id": "DialogType", - "description": "Whether the dialog shown is an account chooser or an auto re-authentication dialog.", + "description": "The types of FedCM dialogs.", "type": "string", "enum": [ "AccountChooser", @@ -24534,6 +24593,14 @@ "ConfirmIdpLogin" ] }, + { + "id": "DialogButton", + "description": "The buttons on the FedCM dialog.", + "type": "string", + "enum": [ + "ConfirmIdpLoginContinue" + ] + }, { "id": "Account", "description": "Corresponds to IdentityRequestAccount", @@ -24646,12 +24713,15 @@ ] }, { - "name": "confirmIdpLogin", - "description": "Only valid if the dialog type is ConfirmIdpLogin. Acts as if the user had\nclicked the continue button.", + "name": "clickDialogButton", "parameters": [ { "name": "dialogId", "type": "string" + }, + { + "name": "dialogButton", + "$ref": "DialogButton" } ] }, diff --git a/third_party/blink/public/devtools_protocol/browser_protocol.pdl b/third_party/blink/public/devtools_protocol/browser_protocol.pdl index f1d0913513..8fabfc96d5 100644 --- a/third_party/blink/public/devtools_protocol/browser_protocol.pdl +++ b/third_party/blink/public/devtools_protocol/browser_protocol.pdl @@ -827,6 +827,8 @@ experimental domain Audits IdTokenHttpNotFound IdTokenNoResponse IdTokenInvalidResponse + IdTokenIdpErrorResponse + IdTokenCrossSiteIdpErrorResponse IdTokenInvalidRequest IdTokenInvalidContentType ErrorIdToken @@ -1249,7 +1251,7 @@ domain Browser prompt # Definition of PermissionDescriptor defined in the Permissions API: - # https://w3c.github.io/permissions/#dictdef-permissiondescriptor. + # https://w3c.github.io/permissions/#dom-permissiondescriptor. experimental type PermissionDescriptor extends object properties # Name of permission. @@ -1924,6 +1926,19 @@ experimental domain CSS string syntax + # CSS font-palette-values rule representation. + type CSSFontPaletteValuesRule extends object + properties + # The css style sheet identifier (absent for user agent stylesheet and user-specified + # stylesheet rules) this rule came from. + optional StyleSheetId styleSheetId + # Parent stylesheet's origin. + StyleSheetOrigin origin + # Associated font palette name. + Value fontPaletteName + # Associated style declaration. + CSSStyle style + # CSS property at-rule representation. type CSSPropertyRule extends object properties @@ -2068,6 +2083,8 @@ experimental domain CSS optional array of CSSPropertyRule cssPropertyRules # A list of CSS property registrations matching this node. optional array of CSSPropertyRegistration cssPropertyRegistrations + # A font-palette-values rule matching this node. + optional CSSFontPaletteValuesRule cssFontPaletteValuesRule # Id of the first parent element that does not have display: contents. experimental optional DOM.NodeId parentLayoutNodeId @@ -7627,6 +7644,7 @@ domain Page unload usb vertical-scroll + web-printing web-share # Alias for 'window-placement' (crbug.com/1328581). window-management @@ -9928,6 +9946,13 @@ experimental domain Storage # duration in seconds array of integer ends + experimental type AttributionReportingTriggerSpec extends object + properties + # number instead of integer because not all uint32 can be represented by + # int + array of number triggerData + AttributionReportingEventReportWindows eventReportWindows + experimental type AttributionReportingTriggerDataMatching extends string enum exact @@ -9938,7 +9963,7 @@ experimental domain Storage Network.TimeSinceEpoch time # duration in seconds integer expiry - AttributionReportingEventReportWindows eventReportWindows + array of AttributionReportingTriggerSpec triggerSpecs # duration in seconds integer aggregatableReportWindow AttributionReportingSourceType type @@ -11605,13 +11630,18 @@ experimental domain FedCm SignIn SignUp - # Whether the dialog shown is an account chooser or an auto re-authentication dialog. + # The types of FedCM dialogs. type DialogType extends string enum AccountChooser AutoReauthn ConfirmIdpLogin + # The buttons on the FedCM dialog. + type DialogButton extends string + enum + ConfirmIdpLoginContinue + # Corresponds to IdentityRequestAccount type Account extends object properties @@ -11651,11 +11681,10 @@ experimental domain FedCm string dialogId integer accountIndex - # Only valid if the dialog type is ConfirmIdpLogin. Acts as if the user had - # clicked the continue button. - command confirmIdpLogin + command clickDialogButton parameters string dialogId + DialogButton dialogButton command dismissDialog parameters