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

Changeset 254605 in webkit


Ignore:
Timestamp:
Jan 15, 2020, 11:15:30 AM (7 years ago)
Author:
Alan Coon
Message:

Cherry-pick r254260. rdar://problem/58552882

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.

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

Location:
branches/safari-609-branch/LayoutTests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-609-branch/LayoutTests/ChangeLog

    r254598 r254605  
     12020-01-14  Alan Coon  <alancoon@apple.com>
     2
     3        Cherry-pick r254260. rdar://problem/58552882
     4
     5    REGRESSION: [ Mac ] webrtc/video-autoplay.html is a flaky failure
     6    https://bugs.webkit.org/show_bug.cgi?id=205893
     7    <rdar://problem/58391046>
     8   
     9    Reviewed by Eric Carlson.
     10   
     11    * webrtc/video-autoplay.html:
     12    Speculative fix as I am not able to reproduce locally.
     13    Hypothesis is that removing from DOM the video element is supposed to asynchronously pause the video element.
     14    We should therefore ensure that the video element is paused before calling getUserMedia.
     15   
     16   
     17    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@254260 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     18
     19    2020-01-09  Youenn Fablet  <youenn@apple.com>
     20
     21            REGRESSION: [ Mac ] webrtc/video-autoplay.html is a flaky failure
     22            https://bugs.webkit.org/show_bug.cgi?id=205893
     23            <rdar://problem/58391046>
     24
     25            Reviewed by Eric Carlson.
     26
     27            * webrtc/video-autoplay.html:
     28            Speculative fix as I am not able to reproduce locally.
     29            Hypothesis is that removing from DOM the video element is supposed to asynchronously pause the video element.
     30            We should therefore ensure that the video element is paused before calling getUserMedia.
     31
    1322020-01-14  Alan Coon  <alancoon@apple.com>
    233
  • branches/safari-609-branch/LayoutTests/webrtc/video-autoplay.html

    r253825 r254605  
    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.