Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2cd16cbf3e9b17bf07f9c76125393cc15d464b95
      
https://github.com/WebKit/WebKit/commit/2cd16cbf3e9b17bf07f9c76125393cc15d464b95
  Author: Jer Noble <[email protected]>
  Date:   2026-04-22 (Wed, 22 Apr 2026)

  Changed paths:
    M Source/WebCore/platform/graphics/avfoundation/AudioVideoRendererAVFObjC.h
    M Source/WebCore/platform/graphics/avfoundation/AudioVideoRendererAVFObjC.mm
    M Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj
    A Tools/TestWebKitAPI/Tests/WebCore/cocoa/AudioVideoRendererAVFObjCTests.mm

  Log Message:
  -----------
  REGRESSION(311380@main): Video disappears after tab switch
rdar://175257980
https://bugs.webkit.org/show_bug.cgi?id=312968

Reviewed by Jean-Yves Avenard.

When tearing down and recreating a video renderer, ensure a flush occurs if 
needed, causing
the SourceBuffer to provide media data for the current playback position.

Tests: Tools/TestWebKitAPI/Tests/WebCore/cocoa/AudioVideoRendererAVFObjCTests.mm

* Source/WebCore/platform/graphics/avfoundation/AudioVideoRendererAVFObjC.mm:
(WebCore::AudioVideoRendererAVFObjC::stageVideoRenderer):
* Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
* Tools/TestWebKitAPI/Tests/WebCore/cocoa/AudioVideoRendererAVFObjCTests.mm: 
Added.
(TestWebKitAPI::TEST_F(AudioVideoRendererAVFObjCTest, 
FlushToResumeOnVisibilityRestore)):

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



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

Reply via email to