gecko-dev/security/apps
Barret Rennie b0cbc31990 Bug 1510569 - Implement serializers for nsITransportSecurityInfo, nsIX509Cert, and nsIX509CertList r=froydnj,keeler,mayhemer
As part of the ongoing effort to port the nsIWebProgress events from
RemoteWebProgress / WebProgressChild to BrowserParent / BrowserChild, we need
to (de)serialize the nsITransportSecurityInfo instance across the IPC layer.
The existing code was calling `NS_SerializeToString` which has the overhead of
(a) allocating a buffer and also performing base64 encoding/decoding. This
patch adds `IPC::ParamTraits` implementations for `nsITransportSecurityInfo`,
`nsIX509Certificate`, and `nsIX509CertList` that (de)serializes the params
directly onto and off of the IPC message so that we don't go through the
overhead of allocating and encoding/decoding an additional buffer.

This (de)serialization will address the performance issues present in the
current implementation.

As a side effect, I also make nsITransportSecurityInfo a builtinclass XPCOM
interface, since the existing serialization code was assuming it was, there is
only one implementation, and it is in C++.

Differential Revision: https://phabricator.services.mozilla.com/D35090

--HG--
extra : moz-landing-system : lando
2019-08-28 18:55:31 +00:00
..
AppSignatureVerification.cpp bug 1555854 - avoid creating transient threads in PSM (particularly CryptoTask) r=KevinJacobs 2019-06-03 23:47:48 +00:00
AppTrustDomain.cpp Bug 1549015 - Removes privilegedPackageRoot r=keeler 2019-07-24 19:54:41 +00:00
AppTrustDomain.h Bug 1559520 - Removes nsIX509CertDB::DeveloperImportedRoot r=keeler 2019-07-22 13:16:13 +00:00
addons-public-intermediate.crt bug 1549249 - hard-code new add-on signing intermediate so it's always available r=jcj,kmag a=ryanvm 2019-05-06 10:42:52 -07:00
addons-public.crt
addons-stage.crt
gen_cert_header.py Bug 1549015 - Removes privilegedPackageRoot r=keeler 2019-07-24 19:54:41 +00:00
moz.build Bug 1510569 - Implement serializers for nsITransportSecurityInfo, nsIX509Cert, and nsIX509CertList r=froydnj,keeler,mayhemer 2019-08-28 18:55:31 +00:00