Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 253e840da33cac8b9d4403737379026ec24909a9
      
https://github.com/WebKit/WebKit/commit/253e840da33cac8b9d4403737379026ec24909a9
  Author: Ahmad Saleem <[email protected]>
  Date:   2026-07-23 (Thu, 23 Jul 2026)

  Changed paths:
    M Source/WebCore/platform/mediastream/MediaConstraints.cpp

  Log Message:
  -----------
  Remove dead code in isAllowedRequiredConstraintForDeviceSelection
https://bugs.webkit.org/show_bug.cgi?id=320011
rdar://182947898

Reviewed by Youenn Fablet.

deviceType can only be DeviceType::Camera by the time control reaches
the final return, since the Microphone case already returns true
above. The `deviceType == DeviceType::Microphone` disjunct was
therefore unreachable; drop it.

* Source/WebCore/platform/mediastream/MediaConstraints.cpp:
(WebCore::isAllowedRequiredConstraintForDeviceSelection):

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



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

Reply via email to