mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 19:33:18 +00:00
a483dcca02
The Set* functions of nsICertStorage (SetRevocationByIssuerAndSerial, SetRevocationBySubjectAndPubKey, SetEnrollment, and SetWhitelist) are called on the main thread by the implementations that manage consuming remote security information. We don't want to block the main thread, so this patch modifies these functions to take a callback that will be called (on the original thread) when the operation in question has been completed on a background thread. The Get* functions of nsICertStorage (GetRevocationState, GetEnrollmentState, and GetWhitelistState) should only be called off the main thread. For the most part they are, but there are at least two main-thread certificate verifications that can cause these functions to be called on the main thread. These instances are in nsSiteSecurityService::ProcessPKPHeader and ContentSignatureVerifier::CreateContextInternal and will be dealt with in bug 1406854 bug 1534600, respectively. Differential Revision: https://phabricator.services.mozilla.com/D25174 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
apps | ||
certverifier | ||
ct | ||
manager | ||
nss | ||
sandbox | ||
.eslintrc.js | ||
generate_certdata.py | ||
generate_mapfile.py | ||
moz.build | ||
nss.symbols |