Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 315a569a0143c548adb31ebb0716bab1c87d95ff
      
https://github.com/WebKit/WebKit/commit/315a569a0143c548adb31ebb0716bab1c87d95ff
  Author: Andy Estes <[email protected]>
  Date:   2026-09-10 (Thu, 10 Sep 2026)

  Changed paths:
    M Source/WebCore/html/HTMLMediaElement.cpp

  Log Message:
  -----------
  Mutating a media element's volume or muted properties under a user gesture 
should remove all behavior restrictions
https://bugs.webkit.org/show_bug.cgi?id=323815
rdar://186667719

Reviewed by Jer Noble.

Prior to this change, mutating a media element's volume or muted properties 
under a user gesture
would remove all behavior restrictions *except* 
RequireUserGestureToControlControlsManager, but
it's unclear there is a principled reason for excluding this restriction. By 
excluding it, unmuting
a video does not qualify it for features like Picture-in-Picture on iOS and 
docked mode on visionOS.

As an experiment, add a compile-time option to remove all restrictions during 
these user-driven
mutations.

* Source/WebCore/html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::audioTrackEnabledChanged):
(WebCore::HTMLMediaElement::setVolume):
(WebCore::HTMLMediaElement::setMutedInternal):

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



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

Reply via email to