Bug 1573008 [wpt PR 18381] - Update interfaces/mediasession.idl, a=testonly
authorautofoolip <auto@foolip.org>
Wed, 14 Aug 2019 10:55:44 +0000
changeset 488103 49de28caecb8c577463d2f0ee8958b4ca4390b38
parent 488102 ba403caff520d01477d8eddd34e8253e3bb7904e
child 488104 3e2785bf3ff908eb5e233b6f96ef2fad8f09c501
push id36435
push usercbrindusan@mozilla.com
push dateThu, 15 Aug 2019 09:46:49 +0000
treeherdermozilla-central@0db07ff50ab5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1573008, 18381
milestone70.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1573008 [wpt PR 18381] - Update interfaces/mediasession.idl, a=testonly Automatic update from web-platform-tests Update interfaces/mediasession.idl (#18381) Source: https://github.com/tidoust/reffy-reports/blob/3336bd0/whatwg/idl/mediasession.idl Build: https://travis-ci.org/tidoust/reffy-reports/builds/570123391 -- wpt-commits: 9f428424dacec4acfc312887048dadf7208f5186 wpt-pr: 18381
testing/web-platform/tests/interfaces/mediasession.idl
--- a/testing/web-platform/tests/interfaces/mediasession.idl
+++ b/testing/web-platform/tests/interfaces/mediasession.idl
@@ -31,17 +31,17 @@ callback MediaSessionActionHandler = voi
 [Exposed=Window]
 interface MediaSession {
   attribute MediaMetadata? metadata;
 
   attribute MediaSessionPlaybackState playbackState;
 
   void setActionHandler(MediaSessionAction action, MediaSessionActionHandler? handler);
 
-  void setPositionState(MediaPositionState? state);
+  void setPositionState(optional MediaPositionState? state);
 };
 
 [Constructor(optional MediaMetadataInit init), Exposed=Window]
 interface MediaMetadata {
   attribute DOMString title;
   attribute DOMString artist;
   attribute DOMString album;
   attribute FrozenArray<MediaImage> artwork;
@@ -56,19 +56,19 @@ dictionary MediaMetadataInit {
 
 dictionary MediaImage {
   required USVString src;
   DOMString sizes = "";
   DOMString type = "";
 };
 
 dictionary MediaPositionState {
-  required double duration;
-  double playbackRate = 1.0;
-  double position = 0.0;
+  double duration;
+  double playbackRate;
+  double position;
 };
 
 dictionary MediaSessionActionDetails {
   required MediaSessionAction action;
 };
 
 dictionary MediaSessionSeekActionDetails : MediaSessionActionDetails {
   double? seekOffset;