⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 254260 in webkit


Ignore:
Timestamp:
Jan 9, 2020, 8:22:53 AM (7 years ago)
Author:
youenn@apple.com
Message:

REGRESSION: [ Mac ] webrtc/video-autoplay.html is a flaky failure
​https://bugs.webkit.org/show_bug.cgi?id=205893
<rdar://problem/58391046>

Reviewed by Eric Carlson.

  • webrtc/video-autoplay.html:

Speculative fix as I am not able to reproduce locally.
Hypothesis is that removing from DOM the video element is supposed to asynchronously pause the video element.
We should therefore ensure that the video element is paused before calling getUserMedia.

Location:
trunk/LayoutTests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r254258 r254260  
     12020-01-09  Youenn Fablet  <youenn@apple.com>
     2
     3        REGRESSION: [ Mac ] webrtc/video-autoplay.html is a flaky failure
     4        https://bugs.webkit.org/show_bug.cgi?id=205893
     5        <rdar://problem/58391046>
     6
     7        Reviewed by Eric Carlson.
     8
     9        * webrtc/video-autoplay.html:
     10        Speculative fix as I am not able to reproduce locally.
     11        Hypothesis is that removing from DOM the video element is supposed to asynchronously pause the video element.
     12        We should therefore ensure that the video element is paused before calling getUserMedia.
     13
    1142020-01-09  Miguel Gomez  <magomez@igalia.com>
    215
  • trunk/LayoutTests/webrtc/video-autoplay.html

    r253825 r254260  
    103103    removedVideo2.remove();
    104104
     105    let cptr = 0;
     106    while (++cptr < 20 && !removedVideo2.paused)
     107        await new Promise(resolve => setTimeout(resolve, 50));
     108    assert_true(removedVideo2.paused, "out of DOM video should get paused");
     109
    105110    video4.srcObject = await navigator.mediaDevices.getUserMedia({ video : true });
    106111
    … …  
    108113        await new Promise(resolve => setTimeout(resolve, 50));
    109114
    110     assert_true(removedVideo2.paused, "out of DOM video");
     115    assert_true(removedVideo2.paused, "out of DOM video should not restart after getUserMedia call");
    111116}, "Granting getUserMedia should not start paused media 2");
    112117
Note: See TracChangeset for help on using the changeset viewer.