From 8dd16259287f58f9273002717ec4d27e97127719 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 12 Jun 2024 07:43:14 +0200 Subject: Merging upstream version 127.0. Signed-off-by: Daniel Baumann --- security/manager/ssl/nsITLSSocketControl.idl | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'security/manager/ssl/nsITLSSocketControl.idl') diff --git a/security/manager/ssl/nsITLSSocketControl.idl b/security/manager/ssl/nsITLSSocketControl.idl index a0b6e47c73..361af98faa 100644 --- a/security/manager/ssl/nsITLSSocketControl.idl +++ b/security/manager/ssl/nsITLSSocketControl.idl @@ -23,8 +23,15 @@ interface nsIX509Cert; // thread (except for asyncGetSecurityInfo); [scriptable, builtinclass, uuid(418265c8-654e-4fbb-ba62-4eed27de1f03)] interface nsITLSSocketControl : nsISupports { - void proxyStartSSL(); - void StartTLS(); + [noscript] void proxyStartSSL(); + [noscript] void StartTLS(); + + /** + * Calls StartTLS on the socket thread, and resolves with the nsresult + * return value of that call. + */ + [implicit_jscontext,must_use] + Promise asyncStartTLS(); /* NPN (Next Protocol Negotiation) is a mechanism for negotiating the protocol to be spoken inside the SSL -- cgit v1.2.3