Skip to content

Commit a45baf0

Browse files
mikewestchromium-wpt-export-bot
authored andcommitted
[<geolocation> element] Fixing minor IDL misalignment.
We can rely on `[Reflect]` to correctly handle the boolean `autolocate` and `watch` attributes, and treat `position` and `error` as explicitly nullable. Bug: 461543463 Change-Id: Ia8918aa2fa69649cdf95110779271c67e73f10bb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7167053 Commit-Queue: Mike West <[email protected]> Reviewed-by: Thomas Nguyen <[email protected]> Cr-Commit-Position: refs/heads/main@{#1546990}
1 parent 47a8c17 commit a45baf0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interfaces/geolocation-element.tentative.idl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ interface mixin InPagePermissionMixin {
3030
interface HTMLGeolocationElement : HTMLElement {
3131
[HTMLConstructor] constructor();
3232

33-
readonly attribute GeolocationPosition position;
34-
readonly attribute GeolocationPositionError error;
33+
readonly attribute GeolocationPosition? position;
34+
readonly attribute GeolocationPositionError? error;
3535
[CEReactions, Reflect] attribute boolean autolocate;
3636
[CEReactions, Reflect] attribute boolean watch;
3737

0 commit comments

Comments
 (0)