Title: [241079] branches/safari-607-branch/Tools
Revision
241079
Author
[email protected]
Date
2019-02-06 14:17:23 -0800 (Wed, 06 Feb 2019)

Log Message

Cherry-pick r240856. rdar://problem/47774509

    API Test broken: TestWebKitAPI.WebKit2.GetUserMediaReprompt
    https://bugs.webkit.org/show_bug.cgi?id=194155

    Reviewed by Eric Carlson.

    * TestWebKitAPI/Tests/WebKit/getUserMedia.html:
    Revert use of async functions as it seems it cannot be evaluated from TestWebKitAPI.
    Keep calling enumerateDevices to continue cover https://bugs.webkit.org/show_bug.cgi?id=194106.

    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@240856 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Modified Paths

Diff

Modified: branches/safari-607-branch/Tools/ChangeLog (241078 => 241079)


--- branches/safari-607-branch/Tools/ChangeLog	2019-02-06 22:17:21 UTC (rev 241078)
+++ branches/safari-607-branch/Tools/ChangeLog	2019-02-06 22:17:23 UTC (rev 241079)
@@ -1,5 +1,32 @@
 2019-02-05  Alan Coon  <[email protected]>
 
+        Cherry-pick r240856. rdar://problem/47774509
+
+    API Test broken: TestWebKitAPI.WebKit2.GetUserMediaReprompt
+    https://bugs.webkit.org/show_bug.cgi?id=194155
+    
+    Reviewed by Eric Carlson.
+    
+    * TestWebKitAPI/Tests/WebKit/getUserMedia.html:
+    Revert use of async functions as it seems it cannot be evaluated from TestWebKitAPI.
+    Keep calling enumerateDevices to continue cover https://bugs.webkit.org/show_bug.cgi?id=194106.
+    
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@240856 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2019-02-01  Youenn Fablet  <[email protected]>
+
+            API Test broken: TestWebKitAPI.WebKit2.GetUserMediaReprompt
+            https://bugs.webkit.org/show_bug.cgi?id=194155
+
+            Reviewed by Eric Carlson.
+
+            * TestWebKitAPI/Tests/WebKit/getUserMedia.html:
+            Revert use of async functions as it seems it cannot be evaluated from TestWebKitAPI.
+            Keep calling enumerateDevices to continue cover https://bugs.webkit.org/show_bug.cgi?id=194106.
+
+2019-02-05  Alan Coon  <[email protected]>
+
         Cherry-pick r240818. rdar://problem/47774549
 
     Page zoom level is lost after a process swap or a crash

Modified: branches/safari-607-branch/Tools/TestWebKitAPI/Tests/WebKit/getUserMedia.html (241078 => 241079)


--- branches/safari-607-branch/Tools/TestWebKitAPI/Tests/WebKit/getUserMedia.html	2019-02-06 22:17:21 UTC (rev 241078)
+++ branches/safari-607-branch/Tools/TestWebKitAPI/Tests/WebKit/getUserMedia.html	2019-02-06 22:17:23 UTC (rev 241079)
@@ -5,16 +5,15 @@
 
             let stream = null;
 
-            async function promptForCapture()
+            function promptForCapture()
             {
-                try {
-                    await navigator.mediaDevices.enumerateDevices();
-                    const stream = await navigator.mediaDevices.getUserMedia({ audio: false, video: true })
+                navigator.mediaDevices.enumerateDevices().then(() => {
+                    return navigator.mediaDevices.getUserMedia({ audio: false, video: true })
+                }).then((s) => {
+                    stream = s;
                     video.srcObject = stream;
                     console.log("Got user media");
-                } catch(error) {
-                    console.log(`Failed with error: ${error}`);
-                }
+                }).catch((error) => console.log(`Failed with error: ${error}`));
             }
 
             function stop(kind)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to