зеркало из https://github.com/mozilla/gecko-dev.git
5d98d9108c
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 |
||
---|---|---|
.. | ||
components | ||
content | ||
crashreporter | ||
forgetaboutsite | ||
library | ||
locales | ||
modules | ||
mozapps | ||
pluginproblem | ||
profile | ||
system | ||
themes | ||
xre | ||
.eslintrc.js | ||
moz.build | ||
moz.configure | ||
nss.configure | ||
toolkit.mozbuild |