Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 9323c3a2d44fe82b73da2d3feecce5ea971faa4c
      
https://github.com/WebKit/WebKit/commit/9323c3a2d44fe82b73da2d3feecce5ea971faa4c
  Author: Brent Fulgham <[email protected]>
  Date:   2026-08-11 (Tue, 11 Aug 2026)

  Changed paths:
    A 
LayoutTests/media/now-playing-info-position-without-seeking-support-expected.txt
    A LayoutTests/media/now-playing-info-position-without-seeking-support.html
    M Source/WebCore/html/MediaElementSession.cpp
    M Source/WebCore/platform/audio/cocoa/MediaSessionManagerCocoa.mm
    M Source/WebCore/platform/audio/glib/MediaSessionManagerGLib.cpp

  Log Message:
  -----------
  Support Live Activities for Netflix.com
https://bugs.webkit.org/show_bug.cgi?id=321042
<rdar://181140244>

Reviewed by Jean-Yves Avenard.

Because of the quirk added in Bug 172881, WebKit does not populate the duration 
and currentTime
components of the NowPlaying struct used by the Live Activities feature (e.g., 
see the
"Now Playing" widget in the control center on macOS Tahoe or newer).

We can retain the `supportsSeeking == false` behavior needed to avoid the 
issues that led
to the original Netflix Quirk while truthfully populating the NowPlaying struct 
so that
Live Activities shows the current play position.

Scrubbing in the Live Activities view (and TouchBar on relevant machine) is 
still disabled
for Netflix.

Test: media/now-playing-info-position-without-seeking-support.html

* 
LayoutTests/media/now-playing-info-position-without-seeking-support-expected.txt:
 Added.
* LayoutTests/media/now-playing-info-position-without-seeking-support.html: 
Added.
* Source/WebCore/html/MediaElementSession.cpp:
(WebCore::MediaElementSession::computeNowPlayingInfo const):
* Source/WebCore/platform/audio/cocoa/MediaSessionManagerCocoa.mm:
(WebCore::MediaSessionManagerCocoa::setNowPlayingInfo):
(WebCore::MediaSessionManagerCocoa::shouldUpdateNowPlaying):
(WebCore::MediaSessionManagerCocoa::updateNowPlayingInfo):
* Source/WebCore/platform/audio/glib/MediaSessionManagerGLib.cpp:
(WebCore::MediaSessionManagerGLib::updateNowPlayingInfo):

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



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

Reply via email to