Auto merge of #24885 - shnmorimoto:implement_mediasession_set_positon_state, r=ferjm

Implement mediasession set positon state

<!-- Please describe your changes on the following line: -->

fix #24808

> Bonus points if you want to tweak the existing UI by adding a progress bar, and the info about the current position and total duration.

I haven't implemented this yet.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #24808 (GitHub issue number if applicable)

<!-- Either: -->
- [x] There are tests for these changes OR

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
This commit is contained in:
bors-servo 2019-12-03 12:13:06 -05:00 committed by GitHub
commit f31a88d85d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 183 additions and 34 deletions

View file

@ -1,13 +1,4 @@
[idlharness.window.html]
[MediaSession interface: calling setPositionState(MediaPositionState) on navigator.mediaSession with too few arguments must throw TypeError]
expected: FAIL
[MediaSession interface: navigator.mediaSession must inherit property "setPositionState(MediaPositionState)" with the proper type]
expected: FAIL
[MediaSession interface: operation setPositionState(MediaPositionState)]
expected: FAIL
[MediaMetadata interface: attribute artwork]
expected: FAIL

View file

@ -1,19 +0,0 @@
[positionstate.html]
[Test setPositionState with a null value]
expected: FAIL
[Test setPositionState with zero duration]
expected: FAIL
[Test setPositionState with a valid value for forward playback]
expected: FAIL
[Test setPositionState with optional position]
expected: FAIL
[Test setPositionState with only duration]
expected: FAIL
[Test setPositionState with optional playback rate]
expected: FAIL