diff --git a/dom/media/webrtc/tests/mochitests/test_getUserMedia_basicWindowshare.html b/dom/media/webrtc/tests/mochitests/test_getUserMedia_basicWindowshare.html index 4d7129067076..9fa764594b84 100644 --- a/dom/media/webrtc/tests/mochitests/test_getUserMedia_basicWindowshare.html +++ b/dom/media/webrtc/tests/mochitests/test_getUserMedia_basicWindowshare.html @@ -15,8 +15,8 @@ * cycle for an screenshare MediaStream on a video HTMLMediaElement. */ runTest(async function () { - var testVideo = createMediaElement('video', 'testVideo'); - var constraints = { + const testVideo = createMediaElement('video', 'testVideo'); + const constraints = { video: { mozMediaSource: "window", mediaSource: "window"