Skip to content

Commit

Permalink
Update to latest protocol definitions (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
mafredri committed Jun 4, 2022
1 parent 9d6eeb0 commit b079440
Show file tree
Hide file tree
Showing 14 changed files with 146 additions and 74 deletions.
15 changes: 11 additions & 4 deletions cdp.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

66 changes: 43 additions & 23 deletions cmd/cdpgen/protodef/js_protocol.json
Expand Up @@ -1557,7 +1557,6 @@
"CrossOriginWindowAlert",
"CrossOriginWindowConfirm",
"CSSSelectorInternalMediaControlsOverlayCastButton",
"CustomCursorIntersectsViewport",
"DeprecationExample",
"DocumentDomainSettingWithoutOriginAgentClusterHeader",
"EventPath",
Expand All @@ -1568,15 +1567,13 @@
"InsecurePrivateNetworkSubresourceRequest",
"LegacyConstraintGoogIPv6",
"LocalCSSFileExtensionRejected",
"MediaElementAudioSourceNode",
"MediaSourceAbortRemove",
"MediaSourceDurationTruncatingBuffered",
"NoSysexWebMIDIWithoutPermission",
"NotificationInsecureOrigin",
"NotificationPermissionRequestedIframe",
"ObsoleteWebRtcCipherSuite",
"PaymentRequestBasicCard",
"PaymentRequestShowWithoutGesture",
"PictureSourceSrc",
"PrefixedCancelAnimationFrame",
"PrefixedRequestAnimationFrame",
Expand All @@ -1594,7 +1591,6 @@
"RTCPeerConnectionComplexPlanBSdpUsingDefaultSdpSemantics",
"RTCPeerConnectionSdpSemanticsPlanB",
"RtcpMuxPolicyNegotiate",
"RTPDataChannel",
"SharedArrayBufferConstructedWithoutIsolation",
"TextToSpeech_DisallowedByAutoplay",
"V8SharedArrayBufferConstructedInExtensionWithoutIsolation",
Expand Down Expand Up @@ -4804,6 +4800,11 @@
"name": "compatibilityMode",
"optional": true,
"$ref": "CompatibilityMode"
},
{
"name": "assignedSlot",
"optional": true,
"$ref": "BackendNode"
}
]
},
Expand Down Expand Up @@ -7469,21 +7470,6 @@
"type": "string"
}
]
},
{
"name": "getStorageKeyForFrame",
"parameters": [
{
"name": "frameId",
"$ref": "Page.FrameId"
}
],
"returns": [
{
"name": "storageKey",
"$ref": "SerializedStorageKey"
}
]
}
],
"events": [
Expand Down Expand Up @@ -8318,6 +8304,17 @@
}
]
},
{
"name": "setHardwareConcurrencyOverride",
"experimental": true,
"parameters": [
{
"name": "hardwareConcurrency",
"description": "Hardware concurrency to report",
"type": "integer"
}
]
},
{
"name": "setUserAgentOverride",
"description": "Allows overriding user agent with the given string.",
Expand Down Expand Up @@ -15008,13 +15005,13 @@
"ambient-light-sensor",
"attribution-reporting",
"autoplay",
"bluetooth",
"browsing-topics",
"camera",
"ch-dpr",
"ch-device-memory",
"ch-downlink",
"ch-ect",
"ch-partitioned-cookies",
"ch-prefers-color-scheme",
"ch-rtt",
"ch-save-data",
Expand Down Expand Up @@ -15993,7 +15990,6 @@
"ContentMediaDevicesDispatcherHost",
"ContentWebBluetooth",
"ContentWebUSB",
"ContentMediaSession",
"ContentMediaSessionService",
"ContentScreenReader",
"EmbedderPopupBlockerTabHelper",
Expand Down Expand Up @@ -16585,7 +16581,7 @@
},
{
"name": "loaderId",
"description": "Loader identifier.",
"description": "Loader identifier. This is omitted in case of same-document navigation,\nas the previously committed loaderId would not change.",
"optional": true,
"$ref": "Network.LoaderId"
},
Expand Down Expand Up @@ -18930,6 +18926,22 @@
}
],
"commands": [
{
"name": "getStorageKeyForFrame",
"description": "Returns a storage key given a frame id.",
"parameters": [
{
"name": "frameId",
"$ref": "Page.FrameId"
}
],
"returns": [
{
"name": "storageKey",
"$ref": "SerializedStorageKey"
}
]
},
{
"name": "clearDataForOrigin",
"description": "Clears storage for origin.",
Expand Down Expand Up @@ -21492,7 +21504,15 @@
"commands": [
{
"name": "enable",
"description": "Enable the WebAuthn domain and start intercepting credential storage and\nretrieval with a virtual authenticator."
"description": "Enable the WebAuthn domain and start intercepting credential storage and\nretrieval with a virtual authenticator.",
"parameters": [
{
"name": "enableUI",
"description": "Whether to enable the WebAuthn user interface. Enabling the UI is\nrecommended for debugging and demo purposes, as it is closer to the real\nexperience. Disabling the UI is recommended for automated testing.\nSupported at the embedder's discretion if UI is available.\nDefaults to false.",
"optional": true,
"type": "boolean"
}
]
},
{
"name": "disable",
Expand Down
6 changes: 1 addition & 5 deletions protocol/audits/types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions protocol/dom/types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 0 additions & 21 deletions protocol/domstorage/command.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 0 additions & 14 deletions protocol/domstorage/domain.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions protocol/emulation/command.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b079440

Please sign in to comment.