Skip to content
  • ap@apple.com's avatar
    Layout Test media/click-volume-bar-not-pausing.html is flaky · b233ab4d
    ap@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=122126
    
    Reviewed by Darin Adler.
    
    Speculative partial fix.
    
    I'm not sure if it's possible to make this test completely controlled without
    DOMFrameContentLoaded support - we need to do work when the <video> element is
    already present, but playback hasn't started yet. As media documents use autoplay,
    there is a race between load and playing events.
    
    * media/click-volume-bar-not-pausing-expected.txt:
    * media/click-volume-bar-not-pausing.html:
      - Add video URL after initial content fully loads to avoid races with that.
      - Added some state logging for clarity.
      - Only listen for "playing" event once. If playback already started, we have a
      playing event already queued, and would add another one with pause()/play().
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156699 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    b233ab4d