Bug 1400019 - Don't assert on illegal WebAuthn algo names r=keeler

The algorithm names provided to the WebAuthn methods have to either be a
string, or (potentially) a WebCrypto object. Right now we only work with
strings, but there's no good reason to assert that, we can just let the
action fail.

This patch removes the assert to help out the fuzzing team.

MozReview-Commit-ID: 9dc8m0a2gZK

--HG--
extra : rebase_source : 649a7f4928679405fe445ac533eee2cfccaedd25
This commit is contained in:
J.C. Jones 2017-09-14 18:37:34 -07:00
Родитель b124cf4bf5
Коммит 8b00bef83f
1 изменённых файлов: 0 добавлений и 2 удалений

Просмотреть файл

@ -56,8 +56,6 @@ static nsresult
GetAlgorithmName(const OOS& aAlgorithm,
/* out */ nsString& aName)
{
MOZ_ASSERT(aAlgorithm.IsString()); // TODO: remove assertion when we coerce.
if (aAlgorithm.IsString()) {
// If string, then treat as algorithm name
aName.Assign(aAlgorithm.GetAsString());