Skip to content

Commit 814615a

Browse files
committed
Firefox 44 has fixed gUM permission indicator, so limiting workaround to 43 and lower.
1 parent e81527f commit 814615a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

static/js/mediastream/usermedia.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ define(['jquery', 'underscore', 'audiocontext', 'mediastream/dummystream', 'webr
3535
_.each(tracks, function(t) {
3636
t.stop();
3737
});
38-
if (window.webrtcDetectedBrowser === "firefox") {
39-
// Always call stop for Firefox as long as it is available.
38+
if (window.webrtcDetectedBrowser === "firefox" && window.webrtcDetectedVersion < 44) {
39+
// Always call stop for older Firefox < 44 to make sure gUM is correctly cleaned up.
4040
// https://bugzilla.mozilla.org/show_bug.cgi?id=1192170
4141
if (stream.stop) {
4242
stream.stop();

0 commit comments

Comments
 (0)