Commit 178ae7e0 authored by Tim Taubert's avatar Tim Taubert
Browse files

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

parent cf9abbf1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);                                         \
+0 −4
Original line number Diff line number Diff line
@@ -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();
}