Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d58d0a3ae2a04845ab8b975e917d5685c8b67611
      
https://github.com/WebKit/WebKit/commit/d58d0a3ae2a04845ab8b975e917d5685c8b67611
  Author: Per Arne Vollan <[email protected]>
  Date:   2026-09-11 (Fri, 11 Sep 2026)

  Changed paths:
    M Source/WebKit/WebProcess/WebPage/RemoteLayerTree/PlatformCALayerRemote.mm
    M Source/WebKit/WebProcess/WebPage/RemoteLayerTree/RemoteLayerTreeContext.h
    M Source/WebKit/WebProcess/WebPage/RemoteLayerTree/RemoteLayerTreeContext.mm
    M Source/WebKit/WebProcess/cocoa/VideoPresentationManager.h
    M Source/WebKit/WebProcess/cocoa/VideoPresentationManager.mm

  Log Message:
  -----------
  [Site Isolation] Video in cross-origin iframe is sometimes not rendering 
after navigating back
https://bugs.webkit.org/show_bug.cgi?id=323760
rdar://187019361

Reviewed by Sihui Liu.

When navigating back to a page with a cross-origin iframe, the drawing area will
in some cases
change, and we need to move PlatformCALayerRemote objects to the new context in
PlatformCALayerRemote::moveToContext. For the layer hosting to be set up 
correctly, we need
to call the layerDidEnterContext method in RemoteLayerTreeContext that takes the
HTMLVideoElement as argument.

No new tests, since we currently don't have a way to verify that the hosting is 
correctly set up.

* Source/WebKit/WebProcess/WebPage/RemoteLayerTree/PlatformCALayerRemote.mm:
(WebKit::PlatformCALayerRemote::moveToContext):
* Source/WebKit/WebProcess/WebPage/RemoteLayerTree/RemoteLayerTreeContext.h:
* Source/WebKit/WebProcess/WebPage/RemoteLayerTree/RemoteLayerTreeContext.mm:
(WebKit::RemoteLayerTreeContext::videoElementForLayer const):
* Source/WebKit/WebProcess/cocoa/VideoPresentationManager.h:
* Source/WebKit/WebProcess/cocoa/VideoPresentationManager.mm:
(WebKit::VideoPresentationManager::videoElementForContext const):

Canonical link:
https://flagged.apple.com:443/proxy?t2=DA3F1V2rE8&o=aHR0cHM6Ly9jb21taXRzLndlYmtpdC5vcmcvMzIwOTI2QG1haW4=&emid=fddef085-ec66-4059-8c42-10503fa5ea18&c=11



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

Reply via email to