[webkit-changes] [WebKit/WebKit] f901c9: When invisible autoplay is restricted, videos with...

Jer Noble noreply at github.com
Thu Aug 29 14:43:11 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f901c971f13aea15e1b8bd09320c1962fdab0de8
      https://github.com/WebKit/WebKit/commit/f901c971f13aea15e1b8bd09320c1962fdab0de8
  Author: Jer Noble <jer.noble at apple.com>
  Date:   2024-08-29 (Thu, 29 Aug 2024)

  Changed paths:
    M LayoutTests/fast/mediastream/video-mediastream-restricted-invisible-autoplay-not-allowed.html
    A LayoutTests/media/video-restricted-invisible-autoplay-allowed-after-play-expected.txt
    A LayoutTests/media/video-restricted-invisible-autoplay-allowed-after-play.html
    M Source/WebCore/html/HTMLMediaElement.cpp

  Log Message:
  -----------
  When invisible autoplay is restricted, videos with autoplay=true are blocked from using play()
https://bugs.webkit.org/show_bug.cgi?id=278862
rdar://131877227

Reviewed by Mike Wyrzykowski.

Remove the InvisibleAutoplayNotPermitted restriction after play() is called, regardless of
whether a user gesture is present or not.

* LayoutTests/media/video-restricted-invisible-autoplay-allowed-after-play-expected.txt: Added.
* LayoutTests/media/video-restricted-invisible-autoplay-allowed-after-play.html: Added.
* Source/WebCore/html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::play):

Canonical link: https://commits.webkit.org/282927@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list