gecko-dev/toolkit
alwu 4634c817c4 Bug 1625615 - part0 : create and set the flag suspendMediaWhenInactive on docShell. r=baku,farre
Implemecurnt a flag `suspendMediaWhenInactive` on the docShell that indicates media in that shell should be suspended when the shell is inactive. Currently, only GeckoView is using this flag.

---

The reason of implementing this flag is because in bug1577890 we remove the old way to suspend/resume the media, and I thought setting docshell to inactive is enough to suspend the media because we already have a mechanism which would suspend/resume media when document becomes inactive/active [1].

However, the active state of document is actually different from what I thought it was. Setting docshell to inactive won't change the document's active state, because that indicates if the document is the current active document for the docshell [2] (docshell can have multiple documents), instead of indicating if the docshell is active or not.

Therefore, we have to add another flag to indicate if the docshell wants to suspend its media when it's inactive, in order to use current mechanism to suspend/resume media.

[1] https://searchfox.org/mozilla-central/rev/4d2a9d5dc8f0e65807ee66e2b04c64596c643b7a/dom/html/HTMLMediaElement.cpp#6453
[2] https://searchfox.org/mozilla-central/rev/4d2a9d5dc8f0e65807ee66e2b04c64596c643b7a/dom/base/Document.h#2627-2633

Differential Revision: https://phabricator.services.mozilla.com/D69669

--HG--
extra : moz-landing-system : lando
2020-04-15 18:13:29 +00:00
..
actors Backed out 5 changesets (bug 1615588) for browser-chrome failures e.g. browser_beforeunload_duplicate_dialogs.js. CLOSED TREE 2020-04-10 21:19:15 +03:00
components Bug 1594529 - Create LoadInfo for subdocuments directly in parent process with DocumentChannel. r=mattwoodrow,nika 2020-04-15 18:53:06 +00:00
content Bug 1625615 - part0 : create and set the flag suspendMediaWhenInactive on docShell. r=baku,farre 2020-04-15 18:13:29 +00:00
crashreporter Bug 1629300 - Add back CreateNotificationPipeForChild for Tier3 after bug 1623961. r=KrisWright 2020-04-13 21:38:51 +00:00
docs Bug 1618910 - Set up Firefox on Glean documentation r=janerik 2020-03-12 13:56:47 +00:00
forgetaboutsite Bug 1621756 - Don't send the Push UAID if there are no push subscriptions. r=englehardt 2020-03-30 18:21:09 +00:00
library Bug 1628132 - P3: Update cubeb-coreaudio to 0f62d38. r=kinetik 2020-04-14 00:44:24 +00:00
locales Bug 1625497 - Change tab name of certificate viewer to Certificate for <Common Name>. r=johannh,fluent-reviewers 2020-04-15 06:52:08 +00:00
modules Bug 1628409 p2 - Make OS data available in filter context during FirstStartup r=rhelmer 2020-04-13 19:09:40 +00:00
mozapps Bug 1544890 - Disable addon-abuse-report-xulframe if AbuseReporter.openDialogDisabled is false. r=mstriemer 2020-04-15 14:54:45 +00:00
pluginproblem
profile Bug 1608191 - Port profileDowngrade.dtd to Fluent, r=fluent-reviewers,flod,Gijs 2020-04-08 18:56:45 +00:00
system Bug 1627635 - Websocket connects to DIRECT instead of Proxy-HTTP/HTTPS with SystemProxySettings on Linux r=valentin 2020-04-06 16:37:53 +00:00
themes Bug 1630201 - Merge browser/themes/shared/preferences and browser/themes/shared/incontentprefs. r=jaws 2020-04-15 19:59:46 +00:00
xre Bug 1628709 - add --full-version r=mossop 2020-04-09 16:16:24 +00:00
.eslintrc.js Bug 1622328 - add license info to all eslintrc files r=Standard8,webcompat-reviewers,miketaylr 2020-03-19 13:47:51 +00:00
l10n-registry.manifest
moz.build Bug 1602463 Part 3 - Windows default browser agent. r=agashlin,bytesized,nalexander 2020-03-16 20:16:25 +00:00
moz.configure Bug 1628153 - Require libvpx >= 1.8.0. r=dminor 2020-04-08 12:01:53 +00:00
toolkit.mozbuild