gecko-dev/toolkit/content
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
..
aboutwebrtc
gmp-sources
tests Bug 1471485 - Hide autoplay permission doorhanger if user plays video. r=johannh 2018-07-03 11:17:16 +12:00
widgets Backed out changeset e711420b85f7 (bug 1461793) for causing bug 1474538 2018-07-11 12:14:26 +02:00
.eslintrc.js
about.js
aboutAbout.js
aboutAbout.xhtml
aboutMozilla.css
aboutNetworking.js Bug 1377570 - Enable RCWN on mobile. r=valentin 2018-05-27 03:59:00 +03:00
aboutNetworking.xhtml
aboutProfiles.js
aboutProfiles.xhtml
aboutRights-unbranded.xhtml
aboutRights.js
aboutRights.xhtml
aboutServiceWorkers.js Bug 1456035: Part 4 - Convert callers of XPCOMUtils.generateQI to ChromeUtils.generateQI. r=mccr8 2018-04-22 20:55:06 -07:00
aboutServiceWorkers.xhtml
aboutSupport.js Bug 1465952 - about:support displays JSON of successfully parsed policies r=Felipe 2018-06-25 19:45:16 +05:30
aboutSupport.xhtml
aboutTelemetry.css
aboutTelemetry.js Bug 1472715 - Show actual state of Telemetry upload on about:telemetry r=gfritzsche 2018-07-10 11:21:13 +00:00
aboutTelemetry.xhtml bug 1470493 - Render "event" ping events in about:telemetry r=janerik 2018-07-02 08:55:12 +00:00
aboutUrlClassifier.css
aboutUrlClassifier.js
aboutUrlClassifier.xhtml
autocomplete.css Bug 1473832 - Load "autocomplete.css" and "autocomplete-item.css" as document stylesheets. r=bgrins 2018-07-06 10:11:25 +01:00
browser-child.js Bug 1456035: Part 5 - Convert manual QueryInterface to ChromeUtils.generateQI. r=mccr8 2018-04-23 12:58:34 -07:00
browser-content.js Bug 1472580 - Gesture activate documents which are played via the tab audio indicator. r=mconley 2018-07-04 09:32:22 +12:00
buildconfig.css
buildconfig.html
components.css Bug 1470870 - Load "menu.css" as a document stylesheet. r=bgrins 2018-07-13 10:20:21 +01:00
contentAreaUtils.js Bug 1469916, r=ckerschb,jkt 2018-06-22 15:41:39 +01:00
customElements.js Bug 1450813 - Create print preview toolbar as customized built-in Custom Element;r=mconley,timdream 2018-07-02 13:33:09 -07:00
datepicker.xhtml
directionDetector.html
editMenuCommands.inc.xul
editMenuKeys.inc.xul
editMenuOverlay.js
filepicker.properties
globalOverlay.js
jar.mn Merge mozilla-inbound to mozilla-central. a=merge 2018-06-28 13:04:23 +03:00
license.html Bug 1467515 - Update license text regarding English dictionary r=mhoye 2018-06-07 19:30:45 +02:00
macWindowMenu.js
minimal-xul.css Bug 1448126 - Part 2 - Remove the "scale" binding and its supporting platform code. r=bgrins 2018-06-24 17:19:25 +01:00
moz.build Bug 1459278 - Use Core::XUL instead of obsolete Core::XP Toolkit/Widgets: XUL for file meta data. r=froydnj 2018-05-07 10:56:19 +03:00
mozilla.xhtml
plugins.css
plugins.html Bug 1463663 - Prefix exported functions of the RemotePageManager with RPM. r=mossop 2018-06-27 09:08:32 +02:00
preferencesBindings.js Bug 1472716 - Part 2 - Convert the listbox in "languages.xul" to "richlistbox". r=jaws,gandalf 2018-07-10 15:07:15 +01:00
process-content.js Bug 1474990 - Remove the 'Memory usage of Subprocesses' table from about:performance, r=mconley. 2018-07-12 20:01:23 +02:00
resetProfile.css
resetProfile.js
resetProfile.xul
resetProfileProgress.xul
textbox.css
timepicker.xhtml
TopLevelVideoDocument.js Bug 1474574 - Ensure <video> is the only focusable element in TopLevelVideoDocument r=Gijs 2018-07-11 11:51:48 +08:00
treeUtils.js
viewZoomOverlay.js
widgets.css Bug 1470870 - Load "menu.css" as a document stylesheet. r=bgrins 2018-07-13 10:20:21 +01:00
xul.css Bug 1474258 - Remove the "listheader" binding and move the remaining styles to "richlistbox.css". r=bgrins 2018-07-09 12:45:41 +01:00