gecko-dev/testing/profiles
Chris Pearce 2e3c4bd9af Bug 1478208 - Implement HTMLMediaElement.allowedToPlay. r=alwu,bz
Various web authors have expressed desire to know in advance whether autoplay
will work.

They want this in order to avoid paying the price for downloading media that
won't play. Or they want to take other action such as showing a poster image
instead.

This is of particular interest to Firefox, as we're planning on showing a
prompt to ask the user whether they would like a site to play. If sites want to
determine whether they can autoplay but avoid the prompt showing, they won't be
able to just call play() in Firefox and see whether it works, as that would
likely show the prompt if the user doesn't already have a stored permission.

We've been working out a spec here:
https://github.com/whatwg/html/issues/3617#issuecomment-398613484

This implements what is the consensus to date there;
HTMLMediaElement.allowedToPlay, which returns true when a play() call would not
be blocked with NotAllowedError by autoplay blocking policies.

MozReview-Commit-ID: AkBu0G7uCJ0

--HG--
extra : rebase_source : 3f31db79aa1e570fdd9fc7062d0ddac7c96a8931
2018-07-25 14:25:17 +12:00
..
common Bug 1478208 - Implement HTMLMediaElement.allowedToPlay. r=alwu,bz 2018-07-25 14:25:17 +12:00
perf Bug 1460912 - [testing/profiles] Use the 'common' profile in reftest r=gbrown 2018-05-14 10:56:41 -04:00
raptor Bug 1458571 - Use base testing/profiles in raptor, r=rwood 2018-05-04 11:19:49 -04:00
reftest Bug 1365045 - Introduce keywords for prefers-reduced-motion. r=heycam 2018-07-24 16:50:47 +09:00
unittest Bug 1476853 - Set autoplay to allowed for testing purposes. r=jmaher 2018-07-19 15:46:38 +12:00
moz.build Bug 1458571 - Make talos and raptor use the 'common' base profile, r=rwood 2018-05-10 15:31:31 -04:00
profile Bug 1460912 - [testing/profiles] Add a ./profile rm subcommand for removing prefs from a profile r=rwood 2018-05-14 21:43:47 -04:00
profiles.json Bug 1460912 - [testing/profiles] Use the 'common' profile in reftest r=gbrown 2018-05-14 10:56:41 -04:00