Commit Graph
498 Commits
Author SHA1 Message Date
Alexandru Marc 8db2734d98 Revert "Bug 2044028 - Clear Private Browsing OCSP-Cache on last private browsing exit r=keeler" for causing xpcshell failures @ test_ocsp_caching
This reverts commit 31efe74805.

Revert "Bug 2044028 - Isolate OCSP cache by full originAttributes r=keeler"

This reverts commit db101744a7.
2026-06-12 12:04:56 +00:00
Manuel Bucher 31efe74805 Bug 2044028 - Clear Private Browsing OCSP-Cache on last private browsing exit r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D304441
2026-06-12 11:11:43 +00:00
Dana Keeler bf7506cffc Bug 2043434 - simplify and clarify nsIPKCS11Token login-related APIs r=nkulatova,credential-management-reviewers,dimi
Differential Revision: https://phabricator.services.mozilla.com/D303942
2026-06-04 21:23:05 +00:00
Daniel Holbert a0b8609dc7 Bug 2043111: Use MakeRefPtr to do allocation for various RefPtr variables in security/. r=nss-reviewers,jschanck
Differential Revision: https://phabricator.services.mozilla.com/D302965
2026-05-28 21:20:32 +00:00
serge-sans-paille dad168d291 Bug 2041298 - Comply with clang-tidy's modernize-use-nullptr check for security/ r=jld
Differential Revision: https://phabricator.services.mozilla.com/D301772
2026-05-26 14:32:26 +00:00
Dana Keeler 8b3456fa29 Bug 2037682 - simplify getting the internal key token r=nkulatova,credential-management-reviewers,mconley,joschmidt
This removes nsIPK11TokenDB and introduces a more direct way of obtaining the
internal key token via:

  Cc["@mozilla.org/security/internalkeytoken;1"].createInstance(Ci.nsIPKCS11Token)

It also takes the opportunity to rename PKCS#11 token-related files,
interfaces, and classes (generally, removing any "ns" prefix and expanding
"PK11" to "PKCS11").

Differential Revision: https://phabricator.services.mozilla.com/D298998
2026-05-17 15:25:11 +00:00
Lars Eggert fd3f821ad1 Bug 2024146 - Persist the SSL session token cache across restarts r=valentin,necko-reviewers,keeler,emz
Serialize SSLTokensCache to ssl_tokens_cache.bin so TLS session tickets
survive browser restarts, enabling 0-RTT on first connections. A new Rust
crate handles zlib-compressed (Adler-32 integrity) bincode serialization
and atomic tmp→rename writes. Cert chain data is excluded from the
persisted format.

The cache writes to disk when the application is backgrounded (covering
Android OOM kills), daily when idle, and at graceful shutdown via
nsIAsyncShutdownBlocker, keeping all file I/O off the main thread. The
background read uses nsAutoLowPriorityIO to yield disk bandwidth to
startup-critical reads. Consumed and evicted tokens are removed from the
Rust shadow immediately, bounding its memory use independently of write
frequency.

The cache is always partitioned by top-level site via OriginAttributes,
matching cookie-partitioning semantics. CLEAR_TLS_TOKEN_CACHE is part of
CLEAR_COOKIES_AND_SITE_DATA and CLEAR_FORGET_ABOUT_SITE.

Differential Revision: https://phabricator.services.mozilla.com/D288348
2026-04-10 12:10:36 +00:00
Sandor Molnar afb728ed15 Revert "Bug 2024146 - Persist the SSL session token cache across restarts r=valentin,necko-reviewers,keeler,emz" for causing mochitest crashes
This reverts commit 617c3db6aa.
2026-04-09 17:45:31 +00:00
Lars Eggert 617c3db6aa Bug 2024146 - Persist the SSL session token cache across restarts r=valentin,necko-reviewers,keeler,emz
Serialize SSLTokensCache to ssl_tokens_cache.bin so TLS session tickets
survive browser restarts, enabling 0-RTT on first connections. A new Rust
crate handles zlib-compressed (Adler-32 integrity) bincode serialization
and atomic tmp→rename writes. Cert chain data is excluded from the
persisted format.

The cache writes to disk when the application is backgrounded (covering
Android OOM kills), daily when idle, and at graceful shutdown via
nsIAsyncShutdownBlocker, keeping all file I/O off the main thread. The
background read uses nsAutoLowPriorityIO to yield disk bandwidth to
startup-critical reads. Consumed and evicted tokens are removed from the
Rust shadow immediately, bounding its memory use independently of write
frequency.

The cache is always partitioned by top-level site via OriginAttributes,
matching cookie-partitioning semantics. CLEAR_TLS_TOKEN_CACHE is part of
CLEAR_COOKIES_AND_SITE_DATA and CLEAR_FORGET_ABOUT_SITE.

Differential Revision: https://phabricator.services.mozilla.com/D288348
2026-04-09 14:05:24 +00:00
Norisz Fay 530fea9e6f Revert "Bug 2024146 - Persist the SSL session token cache across restarts r=valentin,necko-reviewers,keeler,emz" for causing xpcshell failures @ test_backgroundtask_profile_is_slim.js
This reverts commit 1413a2a78d.
2026-04-09 11:19:51 +00:00
Lars Eggert 1413a2a78d Bug 2024146 - Persist the SSL session token cache across restarts r=valentin,necko-reviewers,keeler,emz
Serialize SSLTokensCache to ssl_tokens_cache.bin so TLS session tickets
survive browser restarts, enabling 0-RTT on first connections. A new Rust
crate handles zlib-compressed (Adler-32 integrity) bincode serialization
and atomic tmp→rename writes. Cert chain data is excluded from the
persisted format.

The cache writes to disk when the application is backgrounded (covering
Android OOM kills), daily when idle, and at graceful shutdown via
nsIAsyncShutdownBlocker, keeping all file I/O off the main thread. The
background read uses nsAutoLowPriorityIO to yield disk bandwidth to
startup-critical reads. Consumed and evicted tokens are removed from the
Rust shadow immediately, bounding its memory use independently of write
frequency.

The cache is always partitioned by top-level site via OriginAttributes,
matching cookie-partitioning semantics. CLEAR_TLS_TOKEN_CACHE is part of
CLEAR_COOKIES_AND_SITE_DATA and CLEAR_FORGET_ABOUT_SITE.

Differential Revision: https://phabricator.services.mozilla.com/D288348
2026-04-09 10:07:02 +00:00
Silaghi b143316cf9 Revert "Bug 2024146 - Persist the SSL session token cache across restarts r=valentin,necko-reviewers,keeler,emz" for causing build bustages at SSLTokensCache
This reverts commit 0c36beb87e.
2026-04-09 07:08:37 +00:00
Lars Eggert 0c36beb87e Bug 2024146 - Persist the SSL session token cache across restarts r=valentin,necko-reviewers,keeler,emz
Serialize SSLTokensCache to ssl_tokens_cache.bin so TLS session tickets
survive browser restarts, enabling 0-RTT on first connections. A new Rust
crate handles zlib-compressed (Adler-32 integrity) bincode serialization
and atomic tmp→rename writes. Cert chain data is excluded from the
persisted format.

The cache writes to disk when the application is backgrounded (covering
Android OOM kills), daily when idle, and at graceful shutdown via
nsIAsyncShutdownBlocker, keeping all file I/O off the main thread. The
background read uses nsAutoLowPriorityIO to yield disk bandwidth to
startup-critical reads. Consumed and evicted tokens are removed from the
Rust shadow immediately, bounding its memory use independently of write
frequency.

The cache is always partitioned by top-level site via OriginAttributes,
matching cookie-partitioning semantics. CLEAR_TLS_TOKEN_CACHE is part of
CLEAR_COOKIES_AND_SITE_DATA and CLEAR_FORGET_ABOUT_SITE.

Differential Revision: https://phabricator.services.mozilla.com/D288348
2026-04-09 06:40:47 +00:00
Dana Keeler 24ce49b70a Bug 2026019 - remove unnecessary nsITokenPasswordDialogs interface and implementation r=nkulatova
Differential Revision: https://phabricator.services.mozilla.com/D289689
2026-03-29 00:53:40 +00:00
rperta c4aec0a2ff Revert "Bug 2026019 - remove unnecessary nsITokenPasswordDialogs interface and implementation r=nkulatova" for causing bc failures at browser_all_files_referenced.js
This reverts commit 958070d11d.
2026-03-27 22:24:01 +00:00
Dana Keeler 958070d11d Bug 2026019 - remove unnecessary nsITokenPasswordDialogs interface and implementation r=nkulatova
Differential Revision: https://phabricator.services.mozilla.com/D289689
2026-03-27 20:36:54 +00:00
Dana Keeler 203fae02db Bug 2007018 - add the ability to load PKCS#11 modules in the PKCS#11 module process r=jschanck,yjuglaret,extension-reviewers,robwu
Differential Revision: https://phabricator.services.mozilla.com/D277228
2026-03-20 05:25:42 +00:00
Sylvestre Ledru 5db00ce70c Bug 2023419 - Remove Emacs/Vim modelines from security/ r=emilio
replaced by .editorconfig
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D287866
2026-03-17 12:10:18 +00:00
Dana Keeler 251753418c Bug 2021456 - collect telemetry on how often NSS initialization fallbacks are used r=jschanck
Differential Revision: https://phabricator.services.mozilla.com/D287029
2026-03-11 18:06:12 +00:00
Emma Zuehlcke 662960128c Bug 2017877 - Switch to ClearSSLExternalAndInternalSessionCache on PBM exit to also clear socket process data. r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D284088
2026-02-27 14:12:22 +00:00
Dana Keeler c171348a1f Bug 2014517 - make PKCS#11 module operations asynchronous r=nkulatova,mkaply,extension-reviewers,robwu
This also introduces a shared serial background task queue for doing NSS
operations that are known to have threading issues. In the future, it may be
beneficial to perform more such operations on this queue (perhaps even NSS
initialization itself).

Differential Revision: https://phabricator.services.mozilla.com/D282022
2026-02-18 07:22:54 +00:00
Yannis Juglaret aaf7e907f7 Bug 2010278 - Guard all PKCS#11 utility process work behind NIGHTLY_BUILD. r=keeler
In the patches that add the PKCS#11 utility process in bug 1957156, some
of the work was guarded only by !MOZ_NO_SMART_CARDS, and some of the
work was additionally guarded by NIGHTLY_BUILD. This complicates things
without providing much value. Let's check both guards everywhere to
avoid these complications.

Differential Revision: https://phabricator.services.mozilla.com/D279000
2026-01-16 17:27:30 +00:00
Yannis Juglaret 542ed3916e Bug 1957156 - Define a LoadModule IPDL message in the PKCS#11 utility process. r=keeler,ipc-reviewers,nika
This patch defines a placeholder LoadModule IPDL message for
cross-process interaction between the main process and the PKCS#11
utility process. The correct implementation will come in future patches.

This is preliminary work guarded by a Nightly-only pref. It is intended
as a helpful basis for future work by Security Engineering. We don't
actually load the modules within the utility process for the moment.

Differential Revision: https://phabricator.services.mozilla.com/D271624
2026-01-13 09:30:40 +00:00
Yannis Juglaret 0b2624e1ad Bug 1957156 - Start the PKCS#11 module utility process behind a pref in Nightly. r=ipc-reviewers,keeler,nika
This patch adds code that starts the dedicated utility process for
PKCS#11 module loading in Nightly builds. We add a new pref to control
this behavior: security.utility_pkcs11_module_process.enabled

This is preliminary work intended as a helpful basis for future work by
Security Engineering. We don't actually load the modules within the
utility process for the moment.

Differential Revision: https://phabricator.services.mozilla.com/D270692
2026-01-13 09:30:37 +00:00
Atila Butkovits f1edecc8d8 Revert "Bug 1957156 - Define a LoadModule IPDL message in the PKCS#11 utility process. r=keeler,ipc-reviewers,nika" as requested for causing failures in macos signing jobs.
This reverts commit 5626a548d0.

Revert "Bug 1957156 - Start the PKCS#11 module utility process behind a pref in Nightly. r=ipc-reviewers,keeler,nika"

This reverts commit 17d106ca7c.

Revert "Bug 1957156 - Let the PKCS#11 process run a dedicated executable on macOS in Nightly. r=haik,nika"

This reverts commit a9b9132117.

Revert "Bug 1957156 - Add a new utility process kind for PKCS#11 module loading. r=haik,ipc-reviewers,fluent-reviewers,bolsson,keeler,nika"

This reverts commit 2485ac3023.

Revert "Bug 1957156 - Cleanup pass in utility code. r=ipc-reviewers,nika,haik"

This reverts commit 5760381119.
2025-12-23 18:12:41 +00:00
Yannis Juglaret 5626a548d0 Bug 1957156 - Define a LoadModule IPDL message in the PKCS#11 utility process. r=keeler,ipc-reviewers,nika
This patch defines a placeholder LoadModule IPDL message for
cross-process interaction between the main process and the PKCS#11
utility process. The correct implementation will come in future patches.

This is preliminary work guarded by a Nightly-only pref. It is intended
as a helpful basis for future work by Security Engineering. We don't
actually load the modules within the utility process for the moment.

Differential Revision: https://phabricator.services.mozilla.com/D271624
2025-12-17 15:23:51 +00:00
Yannis Juglaret 17d106ca7c Bug 1957156 - Start the PKCS#11 module utility process behind a pref in Nightly. r=ipc-reviewers,keeler,nika
This patch adds code that starts the dedicated utility process for
PKCS#11 module loading in Nightly builds. We add a new pref to control
this behavior: security.utility_pkcs11_module_process.enabled

This is preliminary work intended as a helpful basis for future work by
Security Engineering. We don't actually load the modules within the
utility process for the moment.

Differential Revision: https://phabricator.services.mozilla.com/D270692
2025-12-17 15:23:48 +00:00
serge-sans-paille 5507f1c19a Bug 1995522 - Cleanup remaining unused mfbt includes r=emilio,necko-reviewers,media-playback-reviewers,webrtc-reviewers,profiler-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,layout-reviewers,dom-worker-reviewers,emz,mstange,TYLin,alwu,pehrsons,dom-storage-reviewers,valentin,jari,jwatt,hsingh,edenchuang,janv
Those are the remaining parts required before we land the new mhbt
header inclusion linter

Differential Revision: https://phabricator.services.mozilla.com/D270812
2025-11-16 10:27:57 +00:00
Cristina Horotan 17287b2ae8 Revert "Bug 1995522 - Cleanup remaining unused mfbt includes r=emilio,necko-reviewers,media-playback-reviewers,webrtc-reviewers,profiler-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,layout-reviewers,dom-worker-reviewers,emz,mstange,TYLin,alwu,pehrsons,dom-storage-reviewers,valentin,jari,jwatt,hsingh,edenchuang,janv" for causing conflict on reverting Bug 1998267
This reverts commit d0eaaff18d.
2025-11-15 17:02:19 +00:00
serge-sans-paille d0eaaff18d Bug 1995522 - Cleanup remaining unused mfbt includes r=emilio,necko-reviewers,media-playback-reviewers,webrtc-reviewers,profiler-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,layout-reviewers,dom-worker-reviewers,emz,mstange,TYLin,alwu,pehrsons,dom-storage-reviewers,valentin,jari,jwatt,hsingh,edenchuang,janv
Those are the remaining parts required before we land the new mhbt
header inclusion linter

Differential Revision: https://phabricator.services.mozilla.com/D270812
2025-11-14 12:08:52 +00:00
Jeff Muizelaar a9bdd0b61d Bug 1996304 - Rename AUTO_PROFILER_TRACING_MARKER to AUTO_PROFILER_MARKER. r=mstange,profiler-reviewers,layout-reviewers,emilio
This also drops the category argument. The category string was confusing
because it ends up a field of the marker and not the actual category which is
an enum. Having the category as a field isn't really helpful.

This also sets us up for unifying AUTO_PROFILER_MARKER and
AUTO_PROFILER_MARKER_UNTYPED which become basically the same.

Differential Revision: https://phabricator.services.mozilla.com/D269992
2025-11-01 18:52:58 +00:00
Cristian Tuns dc43a0df23 Revert "Bug 1996304 - Rename AUTO_PROFILER_TRACING_MARKER to AUTO_PROFILER_MARKER. r=mstange,profiler-reviewers,layout-reviewers,emilio" for causing gtest failures in GeckoProfiler.Markers
This reverts commit 3f41ce3a69.
2025-11-01 10:51:36 +00:00
Jeff Muizelaar 3f41ce3a69 Bug 1996304 - Rename AUTO_PROFILER_TRACING_MARKER to AUTO_PROFILER_MARKER. r=mstange,profiler-reviewers,layout-reviewers,emilio
This also drops the category argument. The category string was confusing
because it ends up a field of the marker and not the actual category which is
an enum. Having the category as a field isn't really helpful.

This also sets us up for unifying AUTO_PROFILER_MARKER and
AUTO_PROFILER_MARKER_UNTYPED which become basically the same.

Differential Revision: https://phabricator.services.mozilla.com/D269992
2025-11-01 02:29:14 +00:00
Sandor Molnar 493110acba Revert "Bug 1996304 - Rename AUTO_PROFILER_TRACING_MARKER to AUTO_PROFILER_MARKER. r=mstange,profiler-reviewers,layout-reviewers,emilio" for causing cppunit perma failures
This reverts commit eba2838e1b.
2025-10-31 23:54:16 +00:00
Jeff Muizelaar eba2838e1b Bug 1996304 - Rename AUTO_PROFILER_TRACING_MARKER to AUTO_PROFILER_MARKER. r=mstange,profiler-reviewers,layout-reviewers,emilio
This also drops the category argument. The category string was confusing
because it ends up a field of the marker and not the actual category which is
an enum. Having the category as a field isn't really helpful.

This also sets us up for unifying AUTO_PROFILER_MARKER and
AUTO_PROFILER_MARKER_UNTYPED which become basically the same.

Differential Revision: https://phabricator.services.mozilla.com/D269992
2025-10-31 20:32:15 +00:00
Alexandru Marc 3eee106683 Revert "Bug 1996304 - Rename AUTO_PROFILER_TRACING_MARKER to AUTO_PROFILER_MARKER. r=mstange,profiler-reviewers,layout-reviewers,emilio" for causing build bustages @ ETWTools.h
This reverts commit 38cd0df829.
2025-10-31 16:17:31 +00:00
Jeff Muizelaar 38cd0df829 Bug 1996304 - Rename AUTO_PROFILER_TRACING_MARKER to AUTO_PROFILER_MARKER. r=mstange,profiler-reviewers,layout-reviewers,emilio
This also drops the category argument. The category string was confusing
because it ends up a field of the marker and not the actual category which is
an enum. Having the category as a field isn't really helpful.

This also sets us up for unifying AUTO_PROFILER_MARKER and
AUTO_PROFILER_MARKER_UNTYPED which become basically the same.

Differential Revision: https://phabricator.services.mozilla.com/D269992
2025-10-31 15:39:08 +00:00
serge-sans-paille c1ab9b472a Bug 1996908 - Remove unused mfbt inclusion in security/** r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D270365
2025-10-29 07:59:57 +00:00
serge-sans-paille 1667ec582b Bug 1995723 - Remove unused inclusion of mozilla/ArrayUtils.h r=necko-reviewers,application-update-reviewers,media-playback-reviewers,profiler-reviewers,win-reviewers,firefox-svg-reviewers,layout-reviewers,gstoll,canaltinova,bytesized,alwu,dholbert
Differential Revision: https://phabricator.services.mozilla.com/D269573
2025-10-23 07:30:37 +00:00
serge-sans-paille 7662b3abdc Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
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
2025-10-21 19:36:01 +00:00
Cristina Horotan 8a1b1970b7 Revert "Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch" for causing Gtest failures on AlreadyAddRefed.h
This reverts commit e98adca292.
2025-10-21 16:16:29 +00:00
serge-sans-paille e98adca292 Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
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
2025-10-21 15:05:17 +00:00
Cristina Horotan aab924e90d Revert "Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch" for causing build bustage at nsBrowserApp.cpp
This reverts commit fd0ffa193c.
2025-10-21 10:44:13 +00:00
serge-sans-paille fd0ffa193c Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
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
2025-10-21 09:44:11 +00:00
Narcis Beleuzu e1e6bbb1c9 Revert "Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch" for causing bustages on Document.cpp
This reverts commit b23c15e927.
2025-10-21 06:34:58 +00:00
serge-sans-paille b23c15e927 Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
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
2025-10-21 06:01:36 +00:00
John M. Schanck 1a07c2d013 Bug 1987787 - remove confirm revocations mode for CRLite. r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D264460
2025-09-15 21:05:37 +00:00
John M. Schanck f329e8e804 Bug 1980431 - remove NetscapeStepUpMatchesServerAuth from TrustDomains. r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D259431
2025-08-07 20:55:11 +00:00
John M. Schanck 6f37cb7b85 Bug 1966733 - disable the SSL_DB_LOAD_CERTIFICATE_CHAIN option. r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D249643
2025-05-19 23:34:44 +00:00
Dana Keeler 38d8ac7c5a Bug 1962280 - osclientcerts: avoid unnecessary background thread dispatches r=jschanck
On macOS and Windows, the underlying implementations of the OS APIs that
provide access to keys and certificates are not necessarily thread-safe. Before
this patch, essentially all calls into osclientcerts would be synchronously
forwarded to a single background thread. Unfortunately, the cost of dispatching
and waiting for all of these events was non-trivial, particularly when the vast
majority of them should essentially be no-ops (e.g. when NSS is looking for CA
certificates or trust information, etc.). This patch reworks the implementation
to only dispatch operations involving OS APIs to the background thread.

Differential Revision: https://phabricator.services.mozilla.com/D246520
2025-04-30 01:03:54 +00:00