gecko-dev/toolkit
Chris Pearce 5d98d9108c Bug 1471485 - Hide autoplay permission doorhanger if user plays video. r=johannh
If we're showing a permission UI prompt for "autoplay-media", the user can
still actually play media without interacting with the doorhanger; if they
click a "play" button in the document, they'll "gesture activate" the document
and unblock autoplay and be able to start playback.

It doesn't make sense to keep showing the permission doorhanger to approve
autoplay when the page is already playing, as playback has already started, and
if they clicked on "block" then the site would receive a promise reject on the
promise returned on the first call to HTMLMediaElement.play() for which we were
showing the permission prompt for, even though the media is actually playing.
This will likely confuse JS video players.

So we should hide the permission prompt when playback in the page starts.

MozReview-Commit-ID: 1XU47AfT6vf

--HG--
extra : rebase_source : 3d5c164527e26ba8f58f0baac3474d5b2d7fb587
2018-07-03 11:17:16 +12:00
..
components Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-07-14 12:45:25 +03:00
content Bug 1471485 - Hide autoplay permission doorhanger if user plays video. r=johannh 2018-07-03 11:17:16 +12:00
crashreporter Bug 1460022: Part 10 - Update crash reporter to work with revised DLL interceptor interface; r=dmajor 2018-06-27 11:51:40 -06:00
forgetaboutsite Bug 1470109 - Move ServiceWorkerCleanUp.jsm into toolkit/components/cleardata, r=johannh 2018-06-21 16:50:10 +02:00
library Merge inbound to mozilla-central. a=merge 2018-07-10 12:45:13 +03:00
locales Merge inbound to mozilla-central. a=merge 2018-07-04 00:56:24 +03:00
modules Bug 1475012 - fix ordering of getTopFrecentSites in ActivityStreamProvider r=ursula 2018-07-11 12:26:39 -07:00
mozapps Backed out 7 changesets (bug 1420514) for breaking bc on different files on a CLOSED TREE 2018-07-12 21:22:32 +03:00
pluginproblem Bug 1456625 - Remove replacement XBL binding (Backout cb51f3bada90) r=Felipe 2018-05-24 18:23:48 +08:00
profile Bug 1472750 - Convert simple "listbox" instances to "richlistbox". r=bgrins 2018-07-09 10:38:42 +01:00
system Backed out changeset a7a1006e2f52 (bug 356831) for braking marionette on win asan on a CLOSED TREE 2018-07-10 18:42:01 +03:00
themes Merge inbound to mozilla-central. a=merge 2018-07-14 00:52:51 +03:00
xre Backed out 12 changesets (bug 1471025) for build bustages on dom/ipc/ContentProcess.cpp. CLOSED TREE 2018-07-13 22:11:24 +03:00
.eslintrc.js
moz.build Backed out changeset a7a1006e2f52 (bug 356831) for braking marionette on win asan on a CLOSED TREE 2018-07-10 18:42:01 +03:00
moz.configure Bug 1473436 - Disable elfhack on local builds. r=chmanchester 2018-07-05 09:23:56 +09:00
nss.configure
toolkit.mozbuild Bug 833098: Part 1 - Remove dead code in xpfe directory viewer. r=Mossop 2018-04-28 21:28:03 -07:00