gecko-dev/modules/libpref
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
..
init Bug 1478208 - Implement HTMLMediaElement.allowedToPlay. r=alwu,bz 2018-07-25 14:25:17 +12:00
parser Bug 440908 - Add support for sticky and locked attributes to default prefs. r=glandium 2018-03-02 15:31:40 +11:00
test Bug 1477904: Correctly handle static var caches with changed default values. r=njn 2018-07-23 22:50:03 -07:00
greprefs.js Bug 1448077 - move DevTools prefs from libpref/init/all.js to devtools/shared;r=jryans 2018-04-06 12:22:53 +02:00
moz.build Backed out 13 changesets (bug 1471025) for reftest failures on variation-format-hint-1a.html; bc failures performance/browser_preferences_usage.js; wpt failures on format-specifiers-variations.html. CLOSED TREE 2018-07-14 01:16:06 +03:00
nsIPrefBranch.idl Bug 1472523: Part 4 - Avoid unnecessary domain string duplication in preference observers. r=njn 2018-07-04 14:52:48 -07:00
nsIPrefLocalizedString.idl
nsIPrefService.idl Bug 1471025: Part 1 - Store preference access counts in a separate hashtable. r=njn 2018-07-02 23:33:28 -07:00
nsIRelativeFilePref.idl
Preferences.cpp Backed out changeset 9035ff3757ac (bug 1415980) at request from froydnj on the suspicion that it's going to break MSVC builds when it gets merged to central. 2018-07-31 01:19:49 +03:00
Preferences.h Bug 1473631: Part 0b - Add helper for registering instance methods as pref callbacks. r=njn 2018-07-13 18:54:11 -07:00
SharedPrefMap.cpp Bug 1477904: Correctly handle static var caches with changed default values. r=njn 2018-07-23 22:50:03 -07:00
SharedPrefMap.h Bug 1477904: Correctly handle static var caches with changed default values. r=njn 2018-07-23 22:50:03 -07:00
StaticPrefs.h Bug 1472523: Part 1 - Avoid string copies in preference callbacks. r=njn 2018-06-30 23:06:17 -07:00