mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 07:13:20 +00:00
Bug 1353762 - Revert RTCCertificate changes and remove unnecessary null-check r=keeler
This commit is contained in:
parent
cf9abbf1f4
commit
178ae7e0b0
@ -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); \
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user