gecko-dev/dom/u2f
J.C. Jones 4fc5b851c3 Bug 1335899 - Tolerate token failures in U2F.cpp r=keeler
If there's a second token (say, USB anyone?) that fails early, U2F.cpp's
U2FStatus object should not be told to "stop" unless it's actually done.

So basically, in the promise failures for U2F::Sign and U2F::Register, don't
call Stop - let the stop come implicitly when no tokens respond correctly.

This changes U2FStatus to be used the same way WebAuthn does its WebAuthnRequest
object, for the same purpose.

- Review updates from Keeler; thanks!


MozReview-Commit-ID: HaTKopFakDB

--HG--
extra : rebase_source : f55918f76117abb0f120b21a742c3705c2640225
2017-02-01 15:00:34 -07:00
..
tests Bug 1335899 - Tolerate token failures in U2F.cpp r=keeler 2017-02-01 15:00:34 -07:00
moz.build Bug 1330138 - Remove unused USBToken class from U2F API; r=jcj 2017-01-19 14:18:32 -08:00
U2F.cpp Bug 1335899 - Tolerate token failures in U2F.cpp r=keeler 2017-02-01 15:00:34 -07:00
U2F.h Bug 1333592 - Fix a regression with U2F sign() called with multiple keys r=keeler 2017-01-26 15:18:50 -07:00
U2FAuthenticator.h Bug 1330138 - Remove unused USBToken class from U2F API; r=jcj 2017-01-19 14:18:32 -08:00