gecko-dev/security
J.C. Jones 2afc1ad18b Bug 1245527 - Rewrite U2F.cpp to use U2FTokenManager. r=keeler, r=ttaubert
- This patch reworks the U2F module to asynchronously call U2FManager,
  which in turn handles constructing and managing the U2FTokenManager
  via IPC.
- Add U2FTransaction{Parent,Child} implementations to mirror similar ones for
  WebAuthn
- Rewrite all tests to compensate for U2F executing asynchronously now.
  - Used async tasks, used the manifest parameters for scheme, and generally
    made these cleaner.
- The mochitest "pref =" functionality from Bug 1328830 doesn't support Android
  yet, causing breakage on Android. Rework the tests to go back to the old way
  of using iframes to test U2F.


NOTE TO REVIEWERS:
 Since this is huge, I recommend the following:

 keeler - please review U2F.cpp/h, the tests, and the security-prefs.js. Most
          of the U2F logic is still in U2F.cpp like before, but there's been
          some reworking of how it is called.

 ttaubert - please review U2FManager, the Transaction classes, build changes,
            and the changes to nsGlobalWindow. All of these should be very
            similar to the WebAuthn code it's patterned off.


MozReview-Commit-ID: C1ZN2ch66Rm

--HG--
extra : rebase_source : 5a2c52b0340c13f471af5040b998eb7e661b1981
2017-09-11 12:56:59 -07:00
..
apps Bug 1384835 (part 3, attempt 2) - Remove the Preferences::Get*CString() variants that return nsAdoptingCString. r=froydnj. 2017-07-31 14:28:48 +10:00
certverifier Bug 1366511: Part 3 - Add mozilla::ToResult() to convert other result types to equivalent Result. r=nbp,ehsan 2017-08-29 21:28:31 -07:00
manager Bug 1245527 - Rewrite U2F.cpp to use U2FTokenManager. r=keeler, r=ttaubert 2017-09-11 12:56:59 -07:00
nss Bug 1386955 - land NSS 4bf658832d89 UPGRADE_NSS_RELEASE, r=me 2017-09-05 12:52:00 +02:00
pkix Bug 1369806: Fix up pkix test to correctly pass zero to CreateEncodedBasicConstraints (which takes a pointer-to-long, rather than a long). r=keeler 2017-06-02 13:21:53 -07:00
sandbox merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-09-12 11:35:15 +02:00
.eslintrc.js Bug 1392119 - Enable the ESLint no-caller rule across mozilla-central r=standard8 2017-08-23 13:38:24 +01:00
generate_certdata.py Bug 1345368 - adapt to new NSS certdata.py, r=ted 2017-06-06 09:59:42 +02:00
generate_mapfile.py Bug 1350362 Fix NSS Build System for MinGW r=ted 2017-05-12 11:39:00 -05:00
moz.build Bug 1350362 Fix NSS Build System for MinGW r=ted 2017-05-12 11:39:00 -05:00
nss.symbols bug 1393143 - remove a few unused attributes and methods on PKCS#11 interfaces r=Cykesiopka 2017-08-17 16:11:57 -07:00