Bug 1353762 - Revert RTCCertificate changes and remove unnecessary null-check r=keeler

This commit is contained in:
Tim Taubert 2017-08-31 16:14:37 +02:00
parent cf9abbf1f4
commit 178ae7e0b0
2 changed files with 1 additions and 5 deletions

View File

@ -58,7 +58,7 @@ SubtleCrypto::RecordTelemetryOnce() {
RefPtr<WebCryptoTask> task = \
WebCryptoTask::Create ## Operation ## Task(__VA_ARGS__); \
if (!task) { \
aRv.Throw(NS_ERROR_OUT_OF_MEMORY); \
aRv.Throw(NS_ERROR_NULL_POINTER); \
return nullptr; \
} \
task->DispatchWithPromise(p); \

View File

@ -280,10 +280,6 @@ RTCCertificate::GenerateCertificate(
RefPtr<WebCryptoTask> task =
new GenerateRTCCertificateTask(global, aGlobal.Context(),
aOptions, usages, expires);
if (!task) {
aRv.Throw(NS_ERROR_OUT_OF_MEMORY);
return nullptr;
}
task->DispatchWithPromise(p);
return p.forget();
}