зеркало из https://github.com/mozilla/gecko-dev.git
4fc5b851c3
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 |
||
---|---|---|
.. | ||
pkijs | ||
README.md | ||
frame_appid_facet.html | ||
frame_appid_facet_insecure.html | ||
frame_appid_facet_subdomain.html | ||
frame_multiple_keys.html | ||
frame_no_token.html | ||
frame_register.html | ||
frame_register_sign.html | ||
mochitest.ini | ||
test_appid_facet.html | ||
test_appid_facet_insecure.html | ||
test_appid_facet_subdomain.html | ||
test_multiple_keys.html | ||
test_no_token.html | ||
test_register.html | ||
test_register_sign.html | ||
test_util_methods.html | ||
u2futil.js |
README.md
Note:
While conceptually similar to the tests for Web Authentication (dom/webauthn),
the tests for U2F require an iframe while window.u2f
remains hidden behind a
preference, though WebAuthn does not. The reason is that the window
object
doesn't mutate upon a call by SpecialPowers.setPrefEnv() the way that the
navigator
objects do, rather you have to load a different page with a different
window
object for the preference change to be honored.