IPDLResolverInner::ResolveOrReject asserts it runs on the actor's event
target (main thread for PSocketProcessChild). The previous code called
the resolver directly from a background-pool thread, which crashes in
debug builds (hit via bug 2035453). The socket process main thread is
not busy enough to warrant the extra dispatch, so serialize inline.
Differential Revision: https://phabricator.services.mozilla.com/D297312
Forks a child process to safely test Apple's private sendmsg_x/recvmsg_x
APIs via neqo-udp: verifies batched sends, ECN round-trips, and source
address metadata. If the probe succeeds, enables the fast path for all
subsequently created QUIC sockets in the socket process via IPC.
Records the result as a Glean boolean metric.
Differential Revision: https://phabricator.services.mozilla.com/D291709
Forks a child process to safely test Apple's private sendmsg_x/recvmsg_x
APIs via neqo-udp: verifies batched sends, ECN round-trips, and source
address metadata. If the probe succeeds, enables the fast path for all
subsequently created QUIC sockets in the socket process via IPC.
Records the result as a Glean boolean metric.
Differential Revision: https://phabricator.services.mozilla.com/D291709
When network.process.enabled is true (the desktop default), TLS handshakes
happen in the socket process, so SSLTokensCache::Put() is called there while
the parent process cache stays empty — nothing is ever persisted to disk and
0-RTT session resumption never fires after a restart.
This patch wires up the three missing data flows:
- Startup: parent loads ssl_tokens_cache.bin and forwards tokens to the
socket process via LoadSSLTokensCache.
- Runtime: socket process pushes its live cache to the parent on idle-daily
and application-background via SSLTokensCacheData; parent persists on the
next scheduled write.
- Shutdown: parent requests a final flush from the socket process via
FlushSSLTokensCache() before writing the file during ProfileBeforeChange.
Differential Revision: https://phabricator.services.mozilla.com/D294106
When network.process.enabled is true (the desktop default), TLS handshakes
happen in the socket process, so SSLTokensCache::Put() is called there while
the parent process cache stays empty — nothing is ever persisted to disk and
0-RTT session resumption never fires after a restart.
This patch wires up the three missing data flows:
- Startup: parent loads ssl_tokens_cache.bin and forwards tokens to the
socket process via LoadSSLTokensCache.
- Runtime: socket process pushes its live cache to the parent on idle-daily
and application-background via SSLTokensCacheData; parent persists on the
next scheduled write.
- Shutdown: parent requests a final flush from the socket process via
FlushSSLTokensCache() before writing the file during ProfileBeforeChange.
Differential Revision: https://phabricator.services.mozilla.com/D294106
When network.process.enabled is true (the desktop default), TLS handshakes
happen in the socket process, so SSLTokensCache::Put() is called there while
the parent process cache stays empty — nothing is ever persisted to disk and
0-RTT session resumption never fires after a restart.
This patch wires up the three missing data flows:
- Startup: parent loads ssl_tokens_cache.bin and forwards tokens to the
socket process via LoadSSLTokensCache.
- Runtime: socket process pushes its live cache to the parent on idle-daily
and application-background via SSLTokensCacheData; parent persists on the
next scheduled write.
- Shutdown: parent requests a final flush from the socket process via
FlushSSLTokensCache() before writing the file during ProfileBeforeChange.
Differential Revision: https://phabricator.services.mozilla.com/D294106
When network.process.enabled is true (the desktop default), TLS handshakes
happen in the socket process, so SSLTokensCache::Put() is called there while
the parent process cache stays empty — nothing is ever persisted to disk and
0-RTT session resumption never fires after a restart.
This patch wires up the three missing data flows:
- Startup: parent loads ssl_tokens_cache.bin and forwards tokens to the
socket process via LoadSSLTokensCache.
- Runtime: socket process pushes its live cache to the parent on idle-daily
and application-background via SSLTokensCacheData; parent persists on the
next scheduled write.
- Shutdown: parent requests a final flush from the socket process via
FlushSSLTokensCache() before writing the file during ProfileBeforeChange.
Differential Revision: https://phabricator.services.mozilla.com/D294106
Also, switch to using ChildImpl/ParentImpl=virtual. We could remove
those entirely, but that would involve moving files around.
Differential Revision: https://phabricator.services.mozilla.com/D290477
Also, switch to using ChildImpl/ParentImpl=virtual. We could remove
those entirely, but that would involve moving files around.
Differential Revision: https://phabricator.services.mozilla.com/D290477
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.
In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.
One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.
Most of the heavy lifting was done through:
$ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
$ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'
Differential Revision: https://phabricator.services.mozilla.com/D268706
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.
In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.
One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.
Most of the heavy lifting was done through:
$ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
$ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'
Differential Revision: https://phabricator.services.mozilla.com/D268706
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.
In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.
One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.
Most of the heavy lifting was done through:
$ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
$ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'
Differential Revision: https://phabricator.services.mozilla.com/D268706
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.
In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.
One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.
Most of the heavy lifting was done through:
$ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
$ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'
Differential Revision: https://phabricator.services.mozilla.com/D268706
See the previous commit, about content sandbox level 6, for details;
this is basically the same (except with one more ioctl allowlisted, and
controlled by a different pref).
This patch also adds some plumbing to get the socket sandbox level into
the code that constructs the policy, modeled on how it works for content
processes. (Previously the only levels of the socket process sandbox
were "on" and "off" so that wasn't necessary until now.)
Differential Revision: https://phabricator.services.mozilla.com/D249018
Looking at bug 1877605 made me realize we should define better when (startup) prefs
are set exactly.
This patch adds assertions to check startup prefs can only be set before `JS_Init` and
also fixes the embeddings to follow this new rule. This makes the JS shell and browser
behavior more consistent, and makes it possible to rely on pref values during startup.
Differential Revision: https://phabricator.services.mozilla.com/D200148