gecko-dev/browser/modules
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
..
test Bug 721211: consolidate home page retrieval code, make it support non-localized prefs, r=jaws 2018-05-28 12:38:01 +02:00
AboutNewTab.jsm Bug 1448918 - Create about:welcome page in preparation for firstrun migration. r=dmose 2018-04-23 15:47:57 -04:00
AsyncTabSwitcher.jsm Bug 1176019 - Don't let cache interfere with tab warming r=mconley 2018-05-15 09:31:13 -07:00
AttributionCode.jsm Bug 1440284 - change this.EXPORTED_SYMBOLS back to var EXPORTED_SYMBOLS in JS modules, r=mccr8. 2018-02-23 20:50:01 +01:00
BlockedSiteContent.jsm Bug 1448330 - Make nsIURI.clone a private method r=mayhemer 2018-06-14 13:05:43 +02:00
BrowserErrorReporter.jsm Bug 1470505: Disable browser error collection for webextension errors. r=Gijs 2018-07-09 18:27:22 +00:00
BrowserUsageTelemetry.jsm Bug 1465704 - Add follow_urlbar_link event telemetry for Savant Shield study; r=adw 2018-06-06 03:51:01 -07:00
BrowserWindowTracker.jsm Bug 1466071: Part 1: Prevent orderedWindows from changing while iterating. r=mikedeboer 2018-06-05 13:47:58 -07:00
ContentClick.jsm Bug 1452645 - Remove load in sidebar functionality. r=lina,mak 2018-06-06 21:00:45 +01:00
ContentCrashHandlers.jsm Bug 1366808: Add tests for about:restartrequired page. r=felipe 2018-05-08 10:32:06 -04:00
ContentLinkHandler.jsm Bug 1474431: Clear references to FaviconLoader and its channel when possible. r=mak 2018-07-10 13:44:05 +00:00
ContentMetaHandler.jsm Bug 1464548: Part 3 - Update callers to use defineLazyGlobalGetters. r=mccr8 2018-05-25 17:02:29 -07:00
ContentObservers.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
ContentSearch.jsm Bug 1437942 - Remove search engines from langpacks. r=adw 2018-06-04 16:45:50 -05:00
ContentWebRTC.jsm Bug 1452031 - Close fingerprint concern by removing code no longer needed to handle NotFoundError spec case. r=pehrsons 2018-04-10 01:49:15 -04:00
ContextMenu.jsm Bug 1365626 - Remove View MathML Source feature. r=mconley 2018-06-28 20:45:31 +00:00
ExtensionsUI.jsm Bug 1456243: Remove dead prompt-for-distribution-add-ons code. r=aswan 2018-05-17 18:56:50 -07:00
Feeds.jsm Bug 1463738 - Remove the Bookmark description UI. r=dao 2018-05-23 17:15:09 +01:00
FormSubmitObserver.jsm Bug 1461247 - Only load FormSubmitObserver.jsm when an invalidformsubmit notification happens. r=MattN 2018-05-25 14:22:13 -03:00
FormValidationHandler.jsm Bug 1440284 - change this.EXPORTED_SYMBOLS back to var EXPORTED_SYMBOLS in JS modules, r=mccr8. 2018-02-23 20:50:01 +01:00
HomePage.jsm Bug 721211: consolidate home page retrieval code, make it support non-localized prefs, r=jaws 2018-05-28 12:38:01 +02:00
LaterRun.jsm Bug 1440284 - change this.EXPORTED_SYMBOLS back to var EXPORTED_SYMBOLS in JS modules, r=mccr8. 2018-02-23 20:50:01 +01:00
LightweightThemeChildListener.jsm Backed out 2 changesets (bug 1347204) for ESlint failure on browser_ext_themes_ntp_colors. CLOSED TREE 2018-07-06 01:13:43 +03:00
LightWeightThemeWebInstallListener.jsm Bug 1462673 - Only load LightWeightThemeWebInstallListener when necessary. r=mconley 2018-05-25 14:22:14 -03:00
moz.build Bug 721211: consolidate home page retrieval code, make it support non-localized prefs, r=jaws 2018-05-28 12:38:01 +02:00
NetErrorContent.jsm Bug 1464552: Part 1 - Split net and cert error utils into separate JSM. r=felipe 2018-05-25 17:50:22 -07:00
OpenInTabsUtils.jsm Bug 1435910 - Part 0.1: Move PlacesUIUtils.confirmOpenInTabs into new OpenInTabsUtils.jsm and add promiseConfirmOpenInTabs. r=Gijs,dao 2018-02-28 10:36:42 +09:00
PageActions.jsm Bug 1363168 - Add support for OSX Share feature. r=Gijs,mstange 2018-03-12 09:16:51 +00:00
PageInfoListener.jsm Bug 1461444 - Only load the PageInfoListener content code when needed. r=johannh 2018-05-25 14:22:13 -03:00
PageStyleHandler.jsm Bug 1466256 - Fix how PageStyleHandler.jsm gets the message manager. r=Gijs 2018-06-18 15:11:00 -03:00
PermissionUI.jsm Bug 1471485 - Hide autoplay permission doorhanger if user plays video. r=johannh 2018-07-03 11:17:16 +12:00
PingCentre.jsm Bug 1464548: Part 3 - Update callers to use defineLazyGlobalGetters. r=mccr8 2018-05-25 17:02:29 -07:00
PluginContent.jsm Backed out 3 changesets (bug 1470023, bug 1469719, bug 1470965) for | toolkit/components/perfmonitoring/tests/browser/browser_compartments.js on a CLOSED TREE 2018-06-26 22:57:54 +03:00
ProcessHangMonitor.jsm Bug 1374741 - Within browser/ make openUILinkIn() provide the correct triggeringPrincipal. r=gijs 2018-02-21 14:28:48 +00:00
ReaderParent.jsm Bug 1456686: Part 1 - Fix unused and shadowed explicit imports. r=standard8 2018-04-24 20:18:09 -07:00
RemotePrompt.jsm Bug 1456686: Part 1 - Fix unused and shadowed explicit imports. r=standard8 2018-04-24 20:18:09 -07:00
Sanitizer.jsm Bug 1469518 - Ensure history sanitization for "today" reaches all the way back to exactly midnight. r=mak 2018-06-20 12:34:02 +01:00
SavantShieldStudy.jsm Bug 1465694 - Add tab event telemetry for Savant Shield study; r=dao 2018-06-06 03:44:48 -07:00
SchedulePressure.jsm Bug 1436423 - Reduce the schedule pressure limit closer to the values that users are reporting. r=mconley 2018-03-05 14:09:39 -05:00
SiteDataManager.jsm Bug 1450448 - Correctly handle non-initialized appCache in site data preferences. r=Gijs 2018-05-15 22:02:33 +02:00
SitePermissions.jsm Bug 1461656 - Ask permission when site wants to autoplay media. r=flod,johannh 2018-05-18 12:54:33 +01:00
TabsList.jsm Bug 1446101 - Part 4: Remove old alltabs code, rename alltabs-popup to newtab-popup r=dao 2018-06-06 16:34:49 -05:00
ThemeVariableMap.jsm Backed out 2 changesets (bug 1347204) for ESlint failure on browser_ext_themes_ntp_colors. CLOSED TREE 2018-07-06 01:13:43 +03:00
TransientPrefs.jsm Bug 1440284 - change this.EXPORTED_SYMBOLS back to var EXPORTED_SYMBOLS in JS modules, r=mccr8. 2018-02-23 20:50:01 +01:00
webrtcUI.jsm Bug 1459613 - Show extension name in PermissionUI / webrtcUI doorhangers and menus items. r=johannh 2018-05-16 19:32:42 +02:00
Windows8WindowFrameColor.jsm Bug 1440284 - change this.EXPORTED_SYMBOLS back to var EXPORTED_SYMBOLS in JS modules, r=mccr8. 2018-02-23 20:50:01 +01:00
WindowsJumpLists.jsm Bug 1425144 - Init Jump list on lazy idle thread (js) r=Gijs 2018-07-10 15:34:28 -07:00
WindowsPreviewPerTab.jsm Bug 1340498 - Update onVisits uses to 'page-visited' r=mak 2018-02-14 09:11:49 -08:00
ZoomUI.jsm Bug 1451115 Part 1: Make UpdateZoomUI not throw an exception if gBrowser is not set on window. r=mossop 2018-04-03 13:36:24 -07:00