Просмотр исходного кода

Limits the early DTLS to Chrome because Firefox does not support instructing it about its RFC 4145 setup attribute value.

dev1
Lyubomir Marinov 9 лет назад
Родитель
Сommit
b96988fc10
1 измененных файлов: 10 добавлений и 0 удалений
  1. 10
    0
      modules/xmpp/JingleSessionPC.js

+ 10
- 0
modules/xmpp/JingleSessionPC.js Просмотреть файл

@@ -411,6 +411,16 @@ JingleSessionPC.prototype.createdAnswer = function (sdp, success, failure) {
411 411
  * @private
412 412
  */
413 413
 JingleSessionPC.prototype._fixAnswerRFC4145Setup = function (offer, answer) {
414
+    if (!RTCBrowserType.isChrome()) {
415
+        // It looks like Firefox doesn't agree with the fix (at least in its
416
+        // current implementation) because it effectively remains active even
417
+        // after we tell it to become passive. Apart from Firefox which I tested
418
+        // after the fix was deployed, I tested Chrome only. In order to prevent
419
+        // issues with other browsers, limit the fix to Chrome for the time
420
+        // being.
421
+        return;
422
+    }
423
+
414 424
     // XXX Videobridge is the (SDP) offerer and WebRTC (e.g. Chrome) is the
415 425
     // answerer (as orchestrated by Jicofo). In accord with
416 426
     // http://tools.ietf.org/html/rfc5245#section-5.2 and because both peers

Загрузка…
Отмена
Сохранить