gecko-dev/dom/ipc/tests
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
..
JSProcessActor Bug 1676632 - Throw more descriptive actor errors. r=smaug,nika 2020-11-16 21:18:49 +00:00
JSWindowActor Bug 1708734 - Part 3: Add tests for createActor: false, r=kmag 2021-05-11 17:29:25 +00:00
.eslintrc.js
blob_verify.sjs
browser.ini Bug 1635451 - Minimize content processes' connections to the X server. r=jgilbert,stransky,nika 2021-07-06 07:42:42 +00:00
browser_CrashService_crash.js Bug 1633132: Add requestCompleteLog() to browser_CrashService_crash.js. 2020-09-30 20:30:51 +00:00
browser_ProcessPriorityManager.js Bug 1618547 - Support Fission in the process priority manager. r=kmag,gsvelto 2021-05-07 17:51:34 +00:00
browser_bug1646088.js
browser_bug1686194.js Bug 1686194 - Fire pagetitlechanged when initialized with an empty string r=smaug 2021-01-28 17:24:09 +00:00
browser_cancel_content_js.js Bug 1666196 - Part 2: Change to same domain navigation. r=smaug 2020-09-21 10:09:35 +00:00
browser_crash_oopiframe.js Bug 1686570 - Add a tooltip for crashed subframes. r=flod,fluent-reviewers 2021-06-24 15:57:17 +00:00
browser_domainPolicy.js
browser_gc_schedule.js Bug 1712614 - Allow passing a GC reason through pokeGC and runNextCollectorSlice for testing, to allow removing a special case in the code r=pbone,smaug 2021-05-26 21:01:50 +00:00
browser_memory_distribution_telemetry.js
browser_very_fission.js Bug 1635451 - Minimize content processes' connections to the X server. r=jgilbert,stransky,nika 2021-07-06 07:42:42 +00:00
chrome.ini
file_broadcast_currenturi_onload.html Bug 1663757 - Part 5: Add a test for CanonicalBrowsingContext.currentURI, r=annyG 2021-03-09 15:29:41 +00:00
file_cancel_content_js.html
file_cross_frame.html Bug 1618547 - Support Fission in the process priority manager. r=kmag,gsvelto 2021-05-07 17:51:34 +00:00
file_disableScript.html
file_domainPolicy_base.html
file_dummy.html Bug 1618547 - Support Fission in the process priority manager. r=kmag,gsvelto 2021-05-07 17:51:34 +00:00
mochitest.ini Bug 1709526 - Fix all the lint errors for .ini files in dom/ r=jmaher 2021-05-06 01:29:31 +00:00
process_error.xhtml
test_Preallocated.html
test_bcg_processes.html
test_blob_sliced_from_child_process.js Bug 1646560: Part 1 - Move some XPCShell content helpers to generic shared module. r=nika 2021-06-15 04:40:10 +00:00
test_blob_sliced_from_parent_process.js Bug 1646560: Part 1 - Move some XPCShell content helpers to generic shared module. r=nika 2021-06-15 04:40:10 +00:00
test_browsingcontext_currenturi.html Bug 1697988: Fix race in test_browsingcontext_currenturi.html. r=mccr8 2021-04-08 00:51:46 +00:00
test_bug1086684.js Bug 1646560: Part 1 - Move some XPCShell content helpers to generic shared module. r=nika 2021-06-15 04:40:10 +00:00
test_child_docshell.js Bug 1646560: Part 1 - Move some XPCShell content helpers to generic shared module. r=nika 2021-06-15 04:40:10 +00:00
test_process_error.xhtml
test_process_error_oom.xhtml
test_sharedMap.js Bug 1646560: Part 1 - Move some XPCShell content helpers to generic shared module. r=nika 2021-06-15 04:40:10 +00:00
test_temporaryfile_stream.html
test_window_open_discarded_bc.html Bug 1678330: Ensure nested SpinEventLoopUntil(OrShutdown) calls are traceable to the originating source in case of crash. r=nika,extension-reviewers 2021-03-02 22:11:58 +00:00
xpcshell.ini