From 814615ad3577140103cc6bd86ef6d7091dba8229 Mon Sep 17 00:00:00 2001 From: Simon Eisenmann Date: Wed, 17 Feb 2016 19:00:14 +0100 Subject: [PATCH] Firefox 44 has fixed gUM permission indicator, so limiting workaround to 43 and lower. --- static/js/mediastream/usermedia.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/mediastream/usermedia.js b/static/js/mediastream/usermedia.js index ab4601a5..0fa33f0c 100644 --- a/static/js/mediastream/usermedia.js +++ b/static/js/mediastream/usermedia.js @@ -35,8 +35,8 @@ define(['jquery', 'underscore', 'audiocontext', 'mediastream/dummystream', 'webr _.each(tracks, function(t) { t.stop(); }); - if (window.webrtcDetectedBrowser === "firefox") { - // Always call stop for Firefox as long as it is available. + if (window.webrtcDetectedBrowser === "firefox" && window.webrtcDetectedVersion < 44) { + // Always call stop for older Firefox < 44 to make sure gUM is correctly cleaned up. // https://bugzilla.mozilla.org/show_bug.cgi?id=1192170 if (stream.stop) { stream.stop();