Skip to content

Commit 587cd8c

Browse files
fix(cddl): fix CDDL syntax for emulation.SetGeolocationOverrideParameters
1 parent 5e3b177 commit 587cd8c

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

index.bs

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5624,14 +5624,23 @@ The <dfn export for=commands>emulation.setGeolocationOverride</dfn> command modi
56245624
params: emulation.SetGeolocationOverrideParameters
56255625
)
56265626

5627-
emulation.SetGeolocationOverrideParameters = {
5628-
(
5629-
(coordinates: emulation.GeolocationCoordinates / null) //
5630-
(error: emulation.GeolocationPositionError)
5631-
),
5627+
emulation.SetGeolocationOverrideParameters = (
5628+
emulation.SetGeolocationOverrideSuccessParameters /
5629+
emulation.SetGeolocationOverrideErrorParameters
5630+
)
5631+
5632+
emulation.SetGeolocationOverrideBaseParameters = (
56325633
? contexts: [+browsingContext.BrowsingContext],
56335634
? userContexts: [+browser.UserContext],
5634-
}
5635+
)
5636+
5637+
emulation.SetGeolocationOverrideSuccessParameters = {
5638+
coordinates: emulation.GeolocationCoordinates / null
5639+
} & emulation.SetGeolocationOverrideBaseParameters
5640+
5641+
emulation.SetGeolocationOverrideErrorParameters = {
5642+
error: emulation.GeolocationPositionError
5643+
} & emulation.SetGeolocationOverrideBaseParameters
56355644

56365645
emulation.GeolocationCoordinates = {
56375646
latitude: -90.0..90.0,

0 commit comments

Comments
 (0)