Bug 259599

Summary: ICE candidate gathering results in redundant candidates with equal priorities violating RFC8445
Product: WebKit Reporter: jbookshar
Component: WebRTCAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: Safari 16   
Hardware: iPhone / iPad   
OS: iOS 16   
Attachments:
Description Flags
SDP Data none

jbookshar
Reported 2023-07-28 09:58:18 PDT
Created attachment 467145 [details] SDP Data When we make a WebRTC call and disconnect this first call and then make a second call without closing the browser tab the ICE candidate gathering results in redundant candidates with equal priorities violating RFC8445 section 5.1.2. Each candidate for a data stream MUST have a unique priority that MUST be a positive integer between 1 and (2**31 - 1). I have included the SDP.log file which contains the good call's SDP first followed by the failure call's SDP. We can provide a test environment for reproducing this. Steps to reproduce: Open Safari app and make first call. Disconnect first call after it is verified working. Press home button once to return to home screen. Switch context to another app like "Notes". Press home button once to return to home screen. Switch back to Safari app. Press home button once to return to home screen. Switch context to another app like "Notes". Press home button once to return to home screen. Switch back to Safari app. Make second call and this will result in redundant candidates.
Attachments
SDP Data (30.33 KB, text/plain)
2023-07-28 09:58 PDT, jbookshar
no flags
Radar WebKit Bug Importer
Comment 1 2023-08-04 09:59:14 PDT
youenn fablet
Comment 2 2023-08-21 04:23:35 PDT
@jbookshar, I am missing some information on how you setup the calls. For instance, whether there several peer connections, or only one that gets updated and renegotiation happens. Would you be able to make a reduced test case? Or get access to your web site?
jbookshar
Comment 3 2023-08-21 09:49:57 PDT
Thanks for the response Youenn. I will send you an email directly to provide test access to our system.
jbookshar
Comment 4 2023-08-28 13:37:37 PDT
Hello Youenn, I sent you test details on Mon 8/28/2023 4:04 PM with this subject line. RE: Bug 259599 - ICE candidate gathering results in redundant candidates with equal priorities violating RFC8445
Note You need to log in before you can comment on or make changes to this bug.