Title: [218772] trunk/LayoutTests
Revision
218772
Author
[email protected]
Date
2017-06-23 16:08:45 -0700 (Fri, 23 Jun 2017)

Log Message

webrtc/routines.js should call createAnswer once setRemoteDescription promise is resolved
https://bugs.webkit.org/show_bug.cgi?id=173785

Patch by Youenn Fablet <[email protected]> on 2017-06-23
Reviewed by Alex Christensen.

* webrtc/routines.js:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (218771 => 218772)


--- trunk/LayoutTests/ChangeLog	2017-06-23 23:06:48 UTC (rev 218771)
+++ trunk/LayoutTests/ChangeLog	2017-06-23 23:08:45 UTC (rev 218772)
@@ -1,5 +1,14 @@
 2017-06-23  Youenn Fablet  <[email protected]>
 
+        webrtc/routines.js should call createAnswer once setRemoteDescription promise is resolved
+        https://bugs.webkit.org/show_bug.cgi?id=173785
+
+        Reviewed by Alex Christensen.
+
+        * webrtc/routines.js:
+
+2017-06-23  Youenn Fablet  <[email protected]>
+
         webrtc::WebRtcSession is not handling correctly its state when setLocalDescription fails and is called again
         https://bugs.webkit.org/show_bug.cgi?id=173783
 

Modified: trunk/LayoutTests/webrtc/routines.js (218771 => 218772)


--- trunk/LayoutTests/webrtc/routines.js	2017-06-23 23:06:48 UTC (rev 218771)
+++ trunk/LayoutTests/webrtc/routines.js	2017-06-23 23:08:45 UTC (rev 218772)
@@ -35,8 +35,9 @@
         options.observeOffer(desc);
 
     localConnection.setLocalDescription(desc);
-    remoteConnection.setRemoteDescription(desc);
-    remoteConnection.createAnswer().then((desc) => gotDescription2(desc, options), onCreateSessionDescriptionError);
+    remoteConnection.setRemoteDescription(desc).then(() => {
+        remoteConnection.createAnswer().then((desc) => gotDescription2(desc, options), onCreateSessionDescriptionError);
+    });
 }
 
 function gotDescription2(desc, options)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to