gecko-dev/testing/mochitest
Jed Davis 2257145e1c Bug 1635451 - Minimize content processes' connections to the X server. r=jgilbert,stransky,nika
This patch launches content processes with the `MOZ_HEADLESS` env var set
if they're using GTK with an X11 display (and there's no other reason
they'd need GTK).

The goal is to avoid exhausting Xorg's default limit of 256 clients if
there are many content processes due to Fission.  If these conditions
are met, the content process doesn't need to eagerly connect to the X
server.  This does not affect the sandbox policy, and content processes
can still use X if needed for, e.g.,  WebGL.

The boolean pref `dom.ipc.avoid-gtk`, set by default, controls this
feature.  In the future it could also be extended to minimize GTK use
with Wayland displays.

Note that disabling `widget.non-native-theme.enabled`, which is also
enabled by default, will restore the use of X11 in all content processes
even if this pref is set; the alternative is that widgets wouldn't render
in that case.

This change will also save some memory for now-unnecessary instances of
GTK's global state, and improve content process startup time.

Remove also the temp pref dom.ipc.remote-mozIcon because it cannot work
anymore with the content process being headless.

Differential Revision: https://phabricator.services.mozilla.com/D112197
2021-07-06 07:42:42 +00:00
..
BrowserTestUtils Bug 1717025 - Remove unnecessary inclusions of Promise.jsm in test harnesses and tests. r=florian 2021-06-17 14:31:57 +00:00
MochiKit
baselinecoverage
chrome Bug 1717025 - Remove unnecessary inclusions of Promise.jsm in test harnesses and tests. r=florian 2021-06-17 14:31:57 +00:00
dynamic
embed
manifests
pywebsocket3
ssltunnel
static
tests Bug 1635451 - Minimize content processes' connections to the X server. r=jgilbert,stransky,nika 2021-07-06 07:42:42 +00:00
README.txt
ShutdownLeaksCollector.jsm
__init__.py
api.js
bisection.py
browser-harness.xhtml
browser-test.js Bug 1717025 - Remove unnecessary inclusions of Promise.jsm in test harnesses and tests. r=florian 2021-06-17 14:31:57 +00:00
chrome-harness.js
chunkifyTests.js
document-builder.sjs
favicon.ico
harness.xhtml
leaks.py
mach_commands.py Backed out 2 changesets (bug 1714688) for causing Bug 1717578. CLOSED TREE 2021-06-22 19:06:18 +03:00
mach_test_package_commands.py
manifest.json
manifest.webapp
manifestLibrary.js
mochitest-e10s-utils.js
mochitest_options.py Bug 1496997 - Remove dom.serviceWorkers.parent_intercept pref r=asuth,dom-workers-and-storage-reviewers,perftest-reviewers,jgraham,sparky,webdriver-reviewers,whimboo 2021-06-15 08:52:39 +00:00
moz.build Backed out 2 changesets (bug 1714688) for causing Bug 1717578. CLOSED TREE 2021-06-22 19:06:18 +03:00
pywebsocket_wrapper.py
redirect.html
runjunit.py
runtests.py Bug 1714406 - Run test-verify and test-coverage tasks with python 3; r=jmaher 2021-06-24 23:29:28 +00:00
runtestsremote.py
schema.json
server.js
shutdown-leaks-collector.js
start_desktop.js

README.txt

See https://developer.mozilla.org/en/docs/Mochitest for detailed information on running and writing mochitests.