gecko-dev/dom
Alastor Wu 504a266d7c Bug 1329179 - only display 'play tab' icon for background tab. r=baku
When user open new tab and then go to the pasted URL (which has autoplaying
media), the "play tab" icon would be displayed briefly, and then change to the
"mute tab" icon.

That is the media element starts before calling nsDocument::PageShow() which
would resume all blocked media in the tab. Before that moment, even the tab is
in the foreground, but we doesn't resume the media yet.

Therefore, we need to check the document's visibility by ourself, and only show
the "play tab" icon for the background blocked tab.

MozReview-Commit-ID: Eg2SD5kpG0j

--HG--
extra : rebase_source : ccf25537904a10e17de2e70650b62fac8f5a3434
2017-01-17 16:30:22 +08:00
..
animation Bug 1326306 - Skip test_restyles.html on Android x86. r=gbrown 2017-02-02 12:55:59 +09:00
archivereader Bug 1334551 - add BUG_COMPONENT to dom/archivereader/* and dom/asmjscache/* files. r=overholt 2017-01-29 06:51:35 -05:00
asmjscache Bug 1334551 - add BUG_COMPONENT to dom/archivereader/* and dom/asmjscache/* files. r=overholt 2017-01-29 06:51:35 -05:00
audiochannel Bug 1329179 - only display 'play tab' icon for background tab. r=baku 2017-01-17 16:30:22 +08:00
base Merge m-c to autoland, a=merge 2017-02-02 16:45:43 -08:00
battery
bindings Merge m-c to autoland, a=merge 2017-02-02 16:45:43 -08:00
broadcastchannel Bug 1331599 - script-generated patch to replace removeEventListener calls with the once option when possible, r=jaws. 2017-01-25 07:01:52 +01:00
browser-element Bug 1332850 - Skip test_browserElement_inproc_AudioChannel_nested.html on Android for frequent failures; r=me 2017-01-27 09:17:17 -07:00
cache Bug 1335368 part 12. Remove the use of IsCallerChrome in FetchRequest. r=bkelly 2017-02-01 15:43:37 -05:00
canvas Merge mozilla-central to mozilla-inbound 2017-02-02 14:28:07 +01:00
commandhandler Bug 1309049 - move embedding/ files out of that directory, r=jst,mossop 2017-01-12 13:47:27 -08:00
console Bug 1328653 - Merging all the various *OriginAttributes to just one, r=huseby 2017-01-12 17:38:48 +01:00
crypto Bug 1331599 - script-generated patch to replace removeEventListener calls with the once option when possible, r=jaws. 2017-01-25 07:01:52 +01:00
devicestorage
encoding Bug 1335207: Add constexpr to data tables under dom/ for better codegen on Windows. r=ehsan 2017-02-01 15:42:33 +13:00
events Merge m-c to autoland, a=merge 2017-02-02 16:45:43 -08:00
fetch Bug 1335368 part 12. Remove the use of IsCallerChrome in FetchRequest. r=bkelly 2017-02-01 15:43:37 -05:00
file Bug 1335368 part 13. Remove the use of IsCallerChrome in dom/file. r=baku 2017-02-01 15:43:37 -05:00
filehandle Bug 1312319 - Add a NS_INLINE_DECL_PURE_VIRTUAL_REFCOUNTING macro and replace existing pure-virtual AddRef/Release declarations. r=froydnj 2017-01-25 14:51:34 -05:00
filesystem Backed out changeset 99587cc6ef23 (bug 1335536) for failing robocop testFilePicker on Android. r=backout 2017-02-01 19:08:22 +01:00
flyweb Bug 1312319 - Add a NS_INLINE_DECL_PURE_VIRTUAL_REFCOUNTING macro and replace existing pure-virtual AddRef/Release declarations. r=froydnj 2017-01-25 14:51:34 -05:00
gamepad Bug 1326507, remove NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTS, r=mccr8 2017-01-03 21:47:55 +02:00
geolocation Bug 1335291 - Change the console flag for insecure geo requests from warning to error. r=jdm 2017-01-30 18:23:14 -08:00
grid
html Bug 1333289. Part 2 - retrieve debugging data from MediaDecoder/MDSM. r=jya 2017-01-24 10:49:37 +08:00
imptests Bug 1334831 - script-generated patch to use .remove() instead of .parentNode.removeChild, r=jaws. 2017-01-30 08:10:22 +01:00
indexedDB Bug 1335368 part 14. Remove the use of IsCallerChrome in IDBFactory. r=smaug 2017-02-01 15:43:37 -05:00
interfaces Bug 1334957 part 2. Remove all the accessors from the XPCOM interface for NotifyPaintEvent. r=smaug 2017-02-02 12:48:48 -05:00
ipc Backed out changeset 2ad6a2821772 (bug 1335536) 2017-02-01 19:07:36 +01:00
json Bug 503613 - Remove old 'tail =' lines from xpcshell.ini files; r=gps 2017-01-18 10:30:39 +00:00
jsurl Backed out changeset 0d069e7395e9 (bug 1314045) for Windows build bustage: warning at Loader.cpp(1885). r=backout on a CLOSED TREE 2017-01-31 18:17:09 +01:00
locales Backed out changeset 95fe30082f2c (bug 1334564) 2017-02-02 16:51:18 +01:00
manifest Bug 1331599 - script-generated patch to replace removeEventListener calls with the once option when possible, r=jaws. 2017-01-25 07:01:52 +01:00
mathml
media Merge m-c to autoland, a=merge 2017-02-02 16:45:43 -08:00
messagechannel Bug 1334677 Make PostMessageRunnable handle the port being cycle collected. r=baku 2017-02-01 06:43:58 -08:00
network Bug 1335181 - add BUG_COMPONENT to netwerk/* and dom/network/* files. r=mcmanus 2017-02-02 06:33:47 -05:00
notification Bug 503613 - Remove old 'tail =' lines from xpcshell.ini files; r=gps 2017-01-18 10:30:39 +00:00
offline Bug 1328653 - Merging all the various *OriginAttributes to just one, r=huseby 2017-01-12 17:38:48 +01:00
performance Bug 1326507, remove NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTS, r=mccr8 2017-01-03 21:47:55 +02:00
permission
plugins merge mozilla-inbound to mozilla-central a=merge 2017-02-01 13:14:23 +01:00
power Bug 1331599 - script-generated patch to replace removeEventListener calls with the once option when possible, r=jaws. 2017-01-25 07:01:52 +01:00
presentation Bug 1333590 - 3. Change remaining Messaging calls to EventDispatcher calls; r=sebastian 2017-02-01 17:35:44 -05:00
promise Bug 1333112 - Fix windowClient.Navigate leak. r=bkelly 2017-01-26 21:37:17 +02:00
push Bug 1333590 - 3. Change remaining Messaging calls to EventDispatcher calls; r=sebastian 2017-02-01 17:35:44 -05:00
quota Bug 1335368 part 17. Get rid of IsCallerChrome in the quota manager service. r=bholley 2017-02-01 15:43:38 -05:00
res
secureelement Bug 503613 - Remove old 'tail =' lines from xpcshell.ini files; r=gps 2017-01-18 10:30:39 +00:00
security Merge m-i to m-c, a=merge 2017-01-28 13:09:00 -08:00
smil Bug 1322970 - Use primary frame for checking throttle instead of using style context. r=dholbert,hiro 2017-02-02 15:23:22 +09:00
storage Bug 1285898 - [e10s-multi] fixup PContent ordering via immediate event dispatch. r=baku 2017-01-31 03:42:38 -05:00
svg Bug 1322970 - Use primary frame for checking throttle instead of using style context. r=dholbert,hiro 2017-02-02 15:23:22 +09:00
system Bug 1334831 - script-generated patch to use .remove() instead of .parentNode.removeChild, r=jaws. 2017-01-30 08:10:22 +01:00
tests Merge inbound to central, a=merge 2017-02-02 16:39:24 -08:00
time
u2f Bug 1333592 - Fix a regression with U2F sign() called with multiple keys r=keeler 2017-01-26 15:18:50 -07:00
url Backed out changeset bfaa720977d2 (bug 1336018) for failing test_exception_messages.html. r=backout on a CLOSED TREE 2017-02-02 16:51:55 +01:00
vr Bug 1326507, remove NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTS, r=mccr8 2017-01-03 21:47:55 +02:00
webauthn Bug 1330138 - Differentiate prefs for u2f and webauthn apis; r=jcj r=baku 2017-01-19 14:18:32 -08:00
webbrowserpersist Bug 1332812. Remove some more unused or nearly-unused nsIDOMElement bits. r=froydnj 2017-02-02 10:32:58 -05:00
webidl Merge m-c to autoland, a=merge 2017-02-02 16:45:43 -08:00
workers Backed out changeset bf20544a7385 (bug 1336043) for failing wpt interfaces.worker.html. r=backout 2017-02-02 17:35:46 +01:00
worklet Bug 1335368 part 12. Remove the use of IsCallerChrome in FetchRequest. r=bkelly 2017-02-01 15:43:37 -05:00
xbl Bug 835981 part 6. Change nsIDOMXULElement::GetControllers consumers to nsXULElement. r=peterv 2017-02-02 10:32:58 -05:00
xhr Bug 1335365 - Add telemetry to see if we can remove moz-only XHR.reponseType, r=me CLOSED TREE 2017-01-31 18:06:14 +01:00
xml Bug 1335368 part 19. Get rid of IsCallerChrome in XMLDocument::Load. r=bholley 2017-02-01 15:43:38 -05:00
xslt Bug 1335368 part 20. Get rid of IsCallerChrome in XSLT. r=froydnj 2017-02-01 15:43:53 -05:00
xul Bug 1332812. Remove some more unused or nearly-unused nsIDOMElement bits. r=froydnj 2017-02-02 10:32:58 -05:00
jar.mn
moz.build Bug 1330138 - Divide U2F and WebAuthn into separate directories; r=jcj 2017-01-19 14:18:32 -08:00