Read-only Git mirror of the Mercurial gecko repositories at https://hg.mozilla.org. How to contribute: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
Перейти к файлу
alwu f6f59cedd1 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
2020-04-20 21:19:56 +00:00
.cargo Bug 1631448 - mach vendor rust. r=chunmin,kinetik 2020-04-20 21:59:17 +00:00
.vscode
accessible Backed out 3 changesets (bug 1625864) for causing mochitest failures in test_update.html 2020-04-20 22:31:26 +03:00
browser Bug 1631944 - Add Lockwise as a keyword for login and password preferences. r=jaws,fluent-reviewers 2020-04-21 23:49:21 +00:00
build Bug 1631627 - Change 1stage clang-cl to 2stage. r=dmajor 2020-04-21 18:47:55 +00:00
caps Backed out changeset a2bff0eef797 (bug 1623417) for causing xpcshell failures in test_permmanager_matchesuri.js CLOSED TREE 2020-04-20 20:09:23 +03:00
chrome Bug 1620542 - Automatically fix ESLint errors in .eslintrc.js files. r=mossop 2020-03-07 10:09:44 +00:00
config Bug 1604615 - Use cargo linker wrapper for native sanitizer builds, but don't set problematic flags. r=glandium 2020-04-21 10:31:53 +00:00
devtools Bug 1630957 - Provide settings menu for debugger UI to allow disabling JavaScript r=jlast,Honza 2020-04-21 21:55:42 +00:00
docs Backed out 3 changesets (bug 1622836, bug 1271842) for mochitest failures on test_prompt.html. CLOSED TREE 2020-04-21 22:06:48 +03:00
docshell Bug 1625615 - part0 : create and set the flag `suspendMediaWhenInactive` on docShell. r=baku,farre 2020-04-20 21:19:56 +00:00
dom Bug 1625615 - part0 : create and set the flag `suspendMediaWhenInactive` on docShell. r=baku,farre 2020-04-20 21:19:56 +00:00
editor Bug 1549945 - Avoid the need for import-globals-from when (x)html files load scripts via /tests/. r=mossop 2020-04-20 16:15:11 +00:00
extensions Backed out changeset a2bff0eef797 (bug 1623417) for causing xpcshell failures in test_permmanager_matchesuri.js CLOSED TREE 2020-04-20 20:09:23 +03:00
gfx Bug 1631753 - Rename DCLayer to DCTile r=gw 2020-04-21 19:40:55 +00:00
gradle/wrapper
hal Bug 1626456 - Remove stray nsAutoPtr.h includes. r=KrisWright 2020-04-03 21:05:46 +00:00
image Bug 1619847 - update reftest annotation for pal8v4.bmp for 899 pixel difference. r=jmaher 2020-04-21 10:16:49 +00:00
intl Bug 1629435 - Using bool literals instead of integer literals. r=sylvestre 2020-04-14 15:17:44 +00:00
ipc Backed out 2 changesets (bug 1626174, bug 1625876) for build bustages at LibrarySandboxPreload.cpp and OggDemuxer.cpp. CLOSED TREE 2020-04-21 19:29:02 +03:00
js Bug 1631508 - Fix LEffectiveAddress on ARM64 r=jandem 2020-04-21 06:12:52 +00:00
layout Bug 1580565 - Part 4: Use WindowContext to manage BrowsingContext cached status, r=farre 2020-04-22 01:37:55 +00:00
media Backed out 2 changesets (bug 1626174, bug 1625876) for build bustages at LibrarySandboxPreload.cpp and OggDemuxer.cpp. CLOSED TREE 2020-04-21 19:29:02 +03:00
memory Backed out 2 changesets (bug 1628527) for causing wpt failures and a spike in bug 1622119. CLOSED TREE 2020-04-21 23:12:09 +03:00
mfbt Bug 1626772 - Fixes for gcc 9 warnings r=botond 2020-04-10 20:40:03 +00:00
mobile Bug 1631206 - Update NavigationDelegateTest.extensionProcessSwitching to check whether or not extension process is enabled. r=agi 2020-04-21 23:07:57 +00:00
modules Bug 1631776 - Convert some imagedocument prefs to static prefs. r=smaug 2020-04-21 15:40:55 +00:00
mozglue Bug 1630895 - Infer categories for Java frames. r=gerald 2020-04-17 23:30:10 +00:00
netwerk Bug 1623849 - Stop DocumentLoadListener from copying INHIBIT_PERSISTENT_CACHING to the content process channel. r=mayhemer,necko-reviewers 2020-04-22 00:34:53 +00:00
nsprpub Bug 1600803 - NSPR_4_25_RTM for Firefox 74. r=kjacobs UPGRADE_NSPR_RELEASE 2020-02-03 12:17:20 +00:00
other-licenses Bug 1596812 Part 3 - Compiled binary for the WebBrowser plugin. r=agashlin 2020-04-20 03:06:07 +00:00
parser Bug 1581691 - make transform-origin a mapped CSS attribute r=heycam,hsivonen 2020-04-18 05:10:29 +00:00
python Bug 1631944 - Add Lockwise as a keyword for login and password preferences. r=jaws,fluent-reviewers 2020-04-21 23:49:21 +00:00
remote Bug 1623965 - Improve error message when binary not found while testing. r=glandium,remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,Bebe,whimboo 2020-04-21 11:58:04 +00:00
security Bug 1631835 - Remove the limit of 3 attempts for authenticating with the OS account to allow for environments where more than three invalid auth attempts are allowed. r=MattN 2020-04-21 19:32:18 +00:00
services No Bug, mozilla-central repo-update HSTS HPKP remote-settings - a=repo-update r=RyanVM 2020-04-20 16:44:01 +00:00
servo Bug 1631232 - Ensure that we hold an actual reference to the root, not to a field of a node we can just GC below. r=nox 2020-04-20 11:07:22 +00:00
startupcache Bug 1614795 - use the background task queue for startupcache writes, r=dthayer,decoder 2020-04-15 20:43:44 +00:00
storage Bug 1620594 - Part 1: Rework NS_ReleaseOnMainThreadSystemGroup. r=nika 2020-04-07 15:16:23 +00:00
taskcluster Bug 1630350 - apply mach try filter to try syntax selector r=jmaher,gbrown 2020-04-21 19:51:25 +00:00
testing Bug 1630772 - further metadata updates. a=test-only 2020-04-22 03:29:00 +03:00
third_party Bug 1627802 - Delete legacy PyECC library from tree r=glandium 2020-04-08 21:55:57 +00:00
toolkit Bug 1625615 - part0 : create and set the flag `suspendMediaWhenInactive` on docShell. r=baku,farre 2020-04-20 21:19:56 +00:00
tools Bug 1630350 - apply mach try filter to try syntax selector r=jmaher,gbrown 2020-04-21 19:51:25 +00:00
uriloader Backed out 19 changesets (bug 1602318) for causing multiple failures 2020-04-21 03:46:41 +03:00
view Bug 1626456 - Remove stray nsAutoPtr.h includes. r=KrisWright 2020-04-03 21:05:46 +00:00
widget Bug 1632002. Re-enable WebRender on Gen7.5 in Nightly. 2020-04-22 01:18:23 +00:00
xpcom Bug 1580565 - Part 6: Add a unique ID to each BrowsingContextGroup, r=kmag 2020-04-22 01:38:05 +00:00
xpfe/appshell Bug 1580565 - Part 3: Simplify API for creating independent BCs, r=farre 2020-04-22 01:37:52 +00:00
.arcconfig
.babel-eslint.rc.js Bug 1622328 - add license info to all eslintrc files r=Standard8,webcompat-reviewers,miketaylr 2020-03-19 13:47:51 +00:00
.clang-format
.clang-format-ignore Bug 1466070 - Integrate clang-format into mozlint r=linter-reviewers,ahal 2020-04-15 20:39:32 +00:00
.cron.yml Bug 1630009: Re-use on-push builds for generating conditioned profiles; r=jmaher 2020-04-14 20:23:14 +00:00
.eslintignore Bug 1628982 - Activate the condprofile on desktop + GV r=Bebe,perftest-reviewers,whimboo 2020-04-16 14:01:55 +00:00
.eslintrc.js Bug 1631358 - remove CPOW support in the message manager, r=mccr8 2020-04-21 14:07:57 +00:00
.flake8 Bug 1622687 - toolkit/crashreporter/: Make it flake8 compliant r=gsvelto,rstewart 2020-04-16 14:40:31 +00:00
.gdbinit Bug 1627398 Part 5 - Support dumping frame trees in CSS pixels for gdb and lldb. r=heycam 2020-04-07 23:42:38 +00:00
.gdbinit_python
.git-blame-ignore-revs
.gitattributes
.gitignore Bug 1614314 - Use GitHub as upstream for the Java code of the HTML parser. r=alchen 2020-02-10 15:05:17 +00:00
.hg-annotate-ignore-revs
.hg-format-source
.hgignore Bug 1627854 - Add documentation for spec-test importing. r=lth 2020-04-09 20:34:31 +00:00
.hgtags No bug - tagging 3cc678e923e6f105437db28740c8223fd4940c8d with FIREFOX_NIGHTLY_76_END a=release DONTBUILD CLOSED TREE 2020-04-06 14:28:44 +00:00
.lldbinit
.mailmap
.prettierignore Bug 1609671 - Inspect binding should try to get the sourcemapped location while inspecting a function. r=jdescottes,vporof 2020-01-24 12:58:24 +00:00
.prettierrc Bug 1620218 - Update Prettier to 1.18.2 and other ESLint modules to the latest versions. r=mossop 2020-03-08 21:45:23 +00:00
.taskcluster.yml Bug 1626795: Use revision rather than push-id to look up existing tasks; r=aki 2020-04-10 22:29:39 +00:00
.trackerignore
.yamllint
.ycm_extra_conf.py
AUTHORS
CLOBBER Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2020-04-06 14:28:50 +00:00
Cargo.lock Bug 1604615 - Optimize webrender shaders at build time. r=gw 2020-04-21 10:32:03 +00:00
Cargo.toml Bug 1629891 - Fix spirv-cross revision in root Cargo.toml overrides r=bbouvier 2020-04-14 17:18:05 +00:00
GNUmakefile
LEGAL
LICENSE
Makefile.in Bug 1621436 - Run process_install_manifest with python3. r=rstewart 2020-04-09 00:21:12 +00:00
README.txt Bug 1617846 - Replace IRC with matrix.r=firefox-source-docs-reviewers,sylvestre 2020-02-25 11:39:53 +00:00
aclocal.m4
build.gradle Bug 1627354: Part 2 - Update gradle files to set buildToolsVersion; r=nalexander 2020-04-04 03:15:56 +00:00
client.mk
client.py
configure.in Bug 1627163 - Switch python configure to python 3. r=firefox-build-system-reviewers,rstewart 2020-04-07 18:31:56 +00:00
configure.py Bug 1631633 - Generate config.status deterministically. r=rstewart 2020-04-21 21:32:30 +00:00
gradle.properties
gradlew
gradlew.bat
mach Bug 1617748 - Run `./mach build`, `./mach build-backend`, `./mach configure` with Python 3 r=dmajor 2020-04-04 20:38:01 +00:00
moz.build Bug 1625216 - Migration the bugzilla doc in-tree from github r=emceeaich 2020-03-28 00:40:49 +00:00
moz.configure Bug 1626951 - Disable new pass manager on aarch64-windows builds without LTO. r=dmajor 2020-04-03 14:27:45 +00:00
mozilla-config.h.in
old-configure.in Bug 1629594 - land NSS 50dcc34d470d UPGRADE_NSS_RELEASE, r=jcj 2020-04-14 17:53:38 +00:00
package-lock.json Bug 1622717: When parsing an AST allow the chosen parser to override the default scope manager and visitor keys. r=Standard8 2020-03-23 12:58:28 +00:00
package.json Bug 1622717: When parsing an AST allow the chosen parser to override the default scope manager and visitor keys. r=Standard8 2020-03-23 12:58:28 +00:00
settings.gradle
substitute-local-geckoview.gradle
test.mozbuild

README.txt

An explanation of the Mozilla Source Code Directory Structure and links to
project pages with documentation can be found at:

    https://firefox-source-docs.mozilla.org/contributing/directory_structure.html

For information on how to build Mozilla from the source code and create the patch see:

    https://firefox-source-docs.mozilla.org/contributing/how_to_contribute_firefox.html

If you have a question about developing Mozilla, and can't find the solution
on https://developer.mozilla.org, you can try asking your question on Matrix at chat.mozilla.org in `Introduction` (https://chat.mozilla.org/#/room/#introduction:mozilla.org) channel.


Nightly development builds can be downloaded from:

    https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/
            - or -
    https://www.mozilla.org/firefox/channel/desktop/#nightly

Keep in mind that nightly builds, which are used by Mozilla developers for
testing, may be buggy.