@@ -28,11 +28,6 @@ WebAuthnTransactionChild::RecvConfirmRegister(const uint64_t& aTransactionId,
2828 return IPC_FAIL_NO_REASON (this );
2929 }
3030
31- // We don't own the reference to mManager. We need to prevent its refcount
32- // going to 0 while we call anything that can reach the call to
33- // StopListeningForVisibilityEvents in WebAuthnManager::ClearTransaction
34- // (often via WebAuthnManager::RejectTransaction).
35- RefPtr<WebAuthnManagerBase> kungFuDeathGrip (mManager );
3631 mManager ->FinishMakeCredential (aTransactionId, aResult);
3732 return IPC_OK ();
3833}
@@ -45,11 +40,6 @@ WebAuthnTransactionChild::RecvConfirmSign(const uint64_t& aTransactionId,
4540 return IPC_FAIL_NO_REASON (this );
4641 }
4742
48- // We don't own the reference to mManager. We need to prevent its refcount
49- // going to 0 while we call anything that can reach the call to
50- // StopListeningForVisibilityEvents in WebAuthnManager::ClearTransaction
51- // (often via WebAuthnManager::RejectTransaction).
52- RefPtr<WebAuthnManagerBase> kungFuDeathGrip (mManager );
5343 mManager ->FinishGetAssertion (aTransactionId, aResult);
5444 return IPC_OK ();
5545}
@@ -62,11 +52,6 @@ WebAuthnTransactionChild::RecvAbort(const uint64_t& aTransactionId,
6252 return IPC_FAIL_NO_REASON (this );
6353 }
6454
65- // We don't own the reference to mManager. We need to prevent its refcount
66- // going to 0 while we call anything that can reach the call to
67- // StopListeningForVisibilityEvents in WebAuthnManager::ClearTransaction
68- // (often via WebAuthnManager::RejectTransaction).
69- RefPtr<WebAuthnManagerBase> kungFuDeathGrip (mManager );
7055 mManager ->RequestAborted (aTransactionId, aError);
7156 return IPC_OK ();
7257}
0 commit comments