Set getUserMedia permission to true by default on WTR
[WebKit-https.git] / LayoutTests / fast / mediastream / delayed-permission-allowed.html
index ecb45a1..c3d4891 100644 (file)
@@ -14,6 +14,9 @@ function allowPermission() {
         testRunner.setUserMediaPermission(true);
 }
 
+if (window.testRunner)
+    testRunner.resetUserMediaPermission();
+
 var options = {audio: true, video: true};
 navigator.mediaDevices.getUserMedia(options)
     .then(stream => {