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
Go to file
Nicolas B. Pierron a4aef929a1 Bug 1698045 part 1 - Add xpc::SelfHostedShmem to hold shared memory for JS initialization. r=smaug,tcampbell,ipc-reviewers,jld
This change adds the ground work to share content provided by the JS engine of
the Parent process to initialize the JS engine of other threads and Content
processes.

The singleton class xpc::SelfHostedShmem is used to wrap the logic behind
holding the memory. The memory is initialized with `InitFromParent` or
`InitFromChild`. The memory is accessible using either the `Content` or
`Handle`.

The shared memory is transfered through the command line using
`mozilla::ipc::ExportSharedJSInit` and read using
`mozilla::ipc::ImportSharedJSInit` functions. The command line is used, as we
need the shared memory to be avilable for the JS engine initialization. The
command line is composed of a single command named `-jsInit` which is followed
by the handle (on Windows) and the length of the shared content.

The memory associated with the shared memory is cleared in `ShutdownXPCOM` after
closing all threads, and shuting down the JS engine. This is necessary as we
expect the JS engine to borrow content from the shared memory.

Differential Revision: https://phabricator.services.mozilla.com/D110576
2021-05-12 13:57:55 +00:00
.cargo Bug 1710095 - Update audioipc to 7537bfad for memmap -> memmap2 transition. r=chunmin,cubeb-reviewers,padenot 2021-05-10 20:40:40 +00:00
.vscode Bug 1701913 - Documentation regarding Remote Development over SSH using VS Code. r=marco 2021-03-30 14:44:51 +00:00
accessible Bug 1705542: Don't assume an OuterDoc RemoteAccessible has a child document. r=eeejay 2021-05-11 23:17:08 +00:00
browser Bug 1706308 Fix alignment of numbers on Import Summary Page. r=tgiles 2021-05-11 21:06:30 +00:00
build Bug 1710473 - Remove hal::SetProcessPrioritySupported(). r=gsvelto,geckoview-reviewers,aklotz 2021-05-10 19:59:24 +00:00
caps Bug 1706593: Update prePath to camel case in nsIPrincipal.idl r=Gijs 2021-04-30 11:16:31 +00:00
chrome
config Backed out 9 changesets (bug 1701695) for causing xpcshell failures in test_messagecontext.js. CLOSED TREE 2021-05-11 15:25:46 +03:00
devtools Bug 1710417 - [devtools] Update pretty-fast to 0.2.6. r=ladybenko. 2021-05-12 09:40:15 +00:00
docs Bug 1705403 - Replace FOG's Glean autodocs with link to Glean Dictionary r=janerik DONTBUILD 2021-05-10 13:33:09 +00:00
docshell Bug 1706272: Remove owning-process-can-set workaround for overrideDPPX. r=nika 2021-05-10 23:12:10 +00:00
dom Bug 1698045 part 1 - Add xpc::SelfHostedShmem to hold shared memory for JS initialization. r=smaug,tcampbell,ipc-reviewers,jld 2021-05-12 13:57:55 +00:00
editor Bug 1708670 - nsIEditor.pasteTransferable won't insert image/png if nsITransaferable uses nsIInputStream. r=masayuki 2021-05-11 09:47:09 +00:00
extensions Bug 1708116 - Use NetAddr::InitFromString instead of PR_StringToNetAddr r=necko-reviewers,dragana 2021-05-10 09:26:01 +00:00
gfx Bug 1609191 - Revert previous attempt to work around Adreno shader compilation crash. r=nical 2021-05-12 13:03:51 +00:00
gradle/wrapper
hal Bug 1710473 - Remove hal::SetProcessPrioritySupported(). r=gsvelto,geckoview-reviewers,aklotz 2021-05-10 19:59:24 +00:00
image Bug 1709622 - Remove no-op FLAG_WANT_DATA_SURFACE. r=tnikkel,jgilbert 2021-05-10 23:39:04 +00:00
intl Backed out 9 changesets (bug 1701695) for causing xpcshell failures in test_messagecontext.js. CLOSED TREE 2021-05-11 15:25:46 +03:00
ipc Bug 1698045 part 1 - Add xpc::SelfHostedShmem to hold shared memory for JS initialization. r=smaug,tcampbell,ipc-reviewers,jld 2021-05-12 13:57:55 +00:00
js Bug 1698045 part 1 - Add xpc::SelfHostedShmem to hold shared memory for JS initialization. r=smaug,tcampbell,ipc-reviewers,jld 2021-05-12 13:57:55 +00:00
layout Bug 1709491 Part 3 - Fix Subgrid::mMarginBorderPadding when the subgrid is a scroll frame. r=dholbert 2021-05-12 06:32:41 +00:00
media Bug 1710698: Temporarily disable updatebot for libdav1d r=freddyb 2021-05-11 18:52:53 +00:00
memory Backed out 10 changesets (bug 1696531) for causing mochitest failures in TypeError: cannot use a string pattern on a bytes-like object. CLOSED TREE 2021-05-06 23:57:56 +03:00
mfbt Bug 1710145 - Deduction guide RefPtr(already_AddRefed<T>) -> RefPtr<T> - r=kmag 2021-05-11 21:55:21 +00:00
mobile Bug 1709394 - Use split text data on binder call. r=geckoview-reviewers,agi 2021-05-12 12:45:49 +00:00
modules Bug 1629064 - pt 4. Add a pref for the maximum number of concurrent GCs r=smaug 2021-05-12 06:46:09 +00:00
mozglue Bug 1710757 - Fix baseprofiler native-frame output - r=florian 2021-05-12 10:22:55 +00:00
netwerk Backed out changeset 05c26697326a (bug 1710671) for multiple failures in obj-build/dist/include/mozilla/AlreadyAddRefed.h. CLOSED TREE 2021-05-12 16:32:28 +03:00
nsprpub Bug 1708093 - NSPR_4_31_BETA1. r=bbeurdouche UPGRADE_NSPR_RELEASE 2021-04-29 08:41:41 +00:00
other-licenses
parser Bug 1694662 - Remove appcache logic from content sink r=necko-reviewers,dragana 2021-04-30 07:20:18 +00:00
python Bug 1707829 - Go back to building http3server as a rust program. r=necko-reviewers,kershaw 2021-05-07 20:22:56 +00:00
remote Bug 1710000 - [remote] Allow the "remote-listening" observer to also print other messages to stderr. r=remote-protocol-reviewers,jgraham,jdescottes 2021-05-10 08:55:31 +00:00
security Bug 1647957 - Allow RDD and Socket processes to read /proc/self/{statm,smaps} on Linux r=gcp 2021-05-11 16:23:23 +00:00
services No Bug, mozilla-central repo-update HSTS HPKP remote-settings - a=repo-update r=jcristau 2021-05-10 10:48:04 +00:00
servo Bug 1709415 - Support -webkit-image-set as a parse-time alias to image-set(). r=karlcow,twisniewski 2021-05-12 10:15:37 +00:00
startupcache
storage Bug 1679522 - Fix include directives and forward declarations. r=andi,necko-reviewers,jgilbert 2021-03-25 10:19:44 +00:00
taskcluster Bug 1710148 - Modify backfill action to properly handle vismet tasks. r=jmaher 2021-05-10 19:11:59 +00:00
testing Bug 1710790 - Adjust WPT to expect bogo XML decl longer than a kilobyte to be honored. r=annevk 2021-05-12 10:26:29 +00:00
third_party Bug 1710095 - Update audioipc to 7537bfad for memmap -> memmap2 transition. r=chunmin,cubeb-reviewers,padenot 2021-05-10 20:40:40 +00:00
toolkit Bug 1022564 - Increase contrast of the arrow panel border in High Contrast mode. r=Itiel 2021-05-12 13:31:46 +00:00
tools Bug 1710607 - If not profiling, make ShutdownProfilerChild dispatch SYNC - r=canaltinova 2021-05-12 10:44:33 +00:00
uriloader Bug 1696473: End subframe loads for initial about:blank document on request error. r=nika 2021-05-07 01:39:45 +00:00
view
widget Bug 1609191 - Disable webrender on devices affected by Adreno shader compilation crash. r=nical 2021-05-12 13:03:51 +00:00
xpcom Bug 1698045 part 1 - Add xpc::SelfHostedShmem to hold shared memory for JS initialization. r=smaug,tcampbell,ipc-reviewers,jld 2021-05-12 13:57:55 +00:00
xpfe/appshell Bug 1706316 - Part 2: Remove nsIBaseWindow::setFocus; r=hsivonen 2021-05-10 20:05:12 +00:00
.arcconfig
.babel-eslint.rc.js Bug 1702166 - Update ESLint, Babel and associated modules to the latest versions. r=mossop,nchevobbe 2021-04-04 08:05:39 +00:00
.clang-format
.clang-format-ignore
.cron.yml Bug 1707937 - Consolidate live performance tests into a single schedule; r=perftest-reviewers,sparky 2021-05-05 11:45:03 +00:00
.eslintignore Bug 1682719 - [meta] Enables eslint on browser/extensions/screenshots. r=emalysz 2021-04-20 19:39:48 +00:00
.eslintrc.js Bug 1707711 - Stop using ChromeUtils.import(..., null) in testing/. r=kmag 2021-05-10 08:56:05 +00:00
.flake8 Bug 1622676 - Made dom/base flake8 compliant.r=championshuttler,sylvestre 2021-03-24 15:26:06 +00:00
.git-blame-ignore-revs
.gitattributes
.gitignore
.hg-annotate-ignore-revs
.hg-format-source
.hgignore Bug 1703105 - wasm: Move generate-spectest tool into tree. r=lth 2021-04-13 16:41:46 +00:00
.hgtags No bug - tagging a69c07c7da3a386e3baf4b7d604312d3fa974273 with FIREFOX_NIGHTLY_89_END a=release DONTBUILD CLOSED TREE 2021-04-19 19:08:56 +00:00
.lldbinit
.mailmap
.prettierignore
.prettierrc
.taskcluster.yml
.trackerignore
.yamllint
.ycm_extra_conf.py
aclocal.m4
AUTHORS
build.gradle
Cargo.lock Bug 1609191 - Revert previous attempt to work around Adreno shader compilation crash. r=nical 2021-05-12 13:03:51 +00:00
Cargo.toml Bug 1710099 - Update the minidump_writer_linux crate to replace the unmaintained memmap crate. r=gsvelto 2021-05-10 13:00:45 +00:00
client.mk
client.py No bug - fix client.py update_nss on python3. r=firefox-build-system-reviewers,mhentges,bbeurdouche 2021-05-05 16:59:09 +00:00
CLOBBER Bug 1705372 - Add new Amazon search engine definitions. r=daleharvey 2021-04-27 18:46:35 +00:00
configure.in
configure.py
GNUmakefile
gradle.properties
gradlew
gradlew.bat
LICENSE
mach Bug 1700419 - Remove py2commands logic from mach driver.r=ahal 2021-03-26 05:26:47 +00:00
mach.ps1
Makefile.in
moz.build Bug 1705403 - Replace FOG's Glean autodocs with link to Glean Dictionary r=janerik DONTBUILD 2021-05-10 13:33:09 +00:00
moz.configure Bug 1599574 - Avoid re-running clang-plugin tests. r=firefox-build-system-reviewers,andi,mhentges 2021-05-05 21:21:11 +00:00
mozilla-config.h.in
old-configure.in Bug 1377445 - Remove build dependencies on gtk+2. r=firefox-build-system-reviewers,mhentges 2021-04-20 01:57:03 +00:00
package-lock.json Bug 1556460 - Upgrade jsdoc version to 3.6.6. r=ahal 2021-04-16 16:17:26 +00:00
package.json Bug 1556460 - Upgrade jsdoc version to 3.6.6. r=ahal 2021-04-16 16:17:26 +00:00
README.txt
settings.gradle
substitute-local-geckoview.gradle
test.mozbuild

An explanation of the Firefox 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 Firefox from the source code and create the patch see:

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

If you have a question about developing Firefox, and can't find the solution
on https://firefox-source-docs.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 Firefox developers for
testing, may be buggy.