Bug 207326

Summary: Do not process newly gathered ICE candidates if document is suspended
Product: WebKit Reporter: youenn fablet <youennf>
Component: WebRTCAssignee: youenn fablet <youennf>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, cdumez, commit-queue, eric.carlson, ews-watchlist, glenn, hta, jer.noble, philipj, sergio, tommyw, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch for landing none

Description youenn fablet 2020-02-06 04:58:19 PST
Do not process newly gathered ICE candidates if document is suspended
Comment 1 youenn fablet 2020-02-06 04:58:40 PST
<rdar://problem/57336453>
Comment 2 youenn fablet 2020-02-06 05:32:27 PST
Created attachment 389943 [details]
Patch
Comment 3 Eric Carlson 2020-02-06 05:48:11 PST
Comment on attachment 389943 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=389943&action=review

> Source/WebCore/Modules/mediastream/PeerConnectionBackend.cpp:441
> +        ALWAYS_LOG(LOGIDENTIFIER, "Gathered ice candidate:", sdp);

"LOGIDENTIFIER" produces an unexpected method name when executed inside of a lambda, so you might want to pass the value as a parameter.
Comment 4 youenn fablet 2020-02-06 07:46:31 PST
(In reply to Eric Carlson from comment #3)
> Comment on attachment 389943 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=389943&action=review
> 
> > Source/WebCore/Modules/mediastream/PeerConnectionBackend.cpp:441
> > +        ALWAYS_LOG(LOGIDENTIFIER, "Gathered ice candidate:", sdp);
> 
> "LOGIDENTIFIER" produces an unexpected method name when executed inside of a
> lambda, so you might want to pass the value as a parameter.

Makes sense will fix it.
Comment 5 Alex Christensen 2020-02-06 08:09:38 PST
Comment on attachment 389943 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=389943&action=review

> Source/WebCore/testing/MockLibWebRTCPeerConnection.cpp:95
> +    int m_delay { 0 };

unsigned.
Also, delay makes me think "Seconds" but this is run loop iterations.
Comment 6 youenn fablet 2020-02-06 23:31:01 PST
Created attachment 390058 [details]
Patch for landing
Comment 7 WebKit Commit Bot 2020-02-07 00:46:37 PST
Comment on attachment 390058 [details]
Patch for landing

Clearing flags on attachment: 390058

Committed r256009: <https://trac.webkit.org/changeset/256009>
Comment 8 WebKit Commit Bot 2020-02-07 00:46:38 PST
All reviewed patches have been landed.  Closing bug.