From 97980ca09278300767b6df01d91b29bd36e6b9f6 Mon Sep 17 00:00:00 2001 From: Youenn Fablet Date: Wed, 10 Jan 2024 16:05:33 +0100 Subject: [PATCH] Reverting defaulting of values from WebIDL --- index.bs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/index.bs b/index.bs index c9babdd..ec5ccb2 100644 --- a/index.bs +++ b/index.bs @@ -890,11 +890,17 @@ interface MediaSession { If state's duration is negative or NaN, throw a TypeError. +
  • + If state's position is not present, set it to zero. +
  • If state's position is negative or greater than duration, throw a TypeError.
  • +
  • + If state's playbackRate is not present, set it to 1.0. +
  • If state's playbackRate is zero, throw a TypeError. @@ -1197,8 +1203,8 @@ dictionary dictionary MediaPositionState { unrestricted double duration; - double playbackRate = 1.0; - double position = 0.0; + double playbackRate; + double position; };