Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 4b246bba0575c6caf84bf74ad00b6abef60da93a
      
https://github.com/WebKit/WebKit/commit/4b246bba0575c6caf84bf74ad00b6abef60da93a
  Author: Carlos Garcia Campos <[email protected]>
  Date:   2026-01-19 (Mon, 19 Jan 2026)

  Changed paths:
    M LayoutTests/platform/wpe-legacy-api/TestExpectations
    M LayoutTests/platform/wpe/TestExpectations
    M Source/WebKit/UIProcess/wpe/AcceleratedBackingStore.cpp
    M Source/WebKit/UIProcess/wpe/AcceleratedBackingStore.h
    M Tools/WebKitTestRunner/wpe/PlatformWebViewClientWPE.cpp
    M Tools/WebKitTestRunner/wpe/PlatformWebViewClientWPE.h

  Log Message:
  -----------
  [WPE] WPE Platform: stop rendering when the view is removed from the toplevel
https://bugs.webkit.org/show_bug.cgi?id=305630

Reviewed by Adrian Perez de Castro.

The web process rendering is properly stopped because the view is
unmapped when removed from the toplevel, but the UI process still tries
to render any pending buffer. AcceleratedBackingStore now checks if the
view has a toplevel before rendering the pending buffer and monitors the
view toplevel property. When the view gets a toplevel and there's a
pending buffer it calls renderPendingBuffer().
This patch also implements addToWindow/removeFromWindow in WKTR.

Fixes: media/no-fullscreen-when-hidden.html

* LayoutTests/platform/wpe-legacy-api/TestExpectations:
* LayoutTests/platform/wpe/TestExpectations:
* Source/WebKit/UIProcess/wpe/AcceleratedBackingStore.cpp:
(WebKit::m_legacyMainFrameProcess):
(WebKit::AcceleratedBackingStore::renderPendingBuffer):
(WebKit::AcceleratedBackingStore::bufferRendered):
(WebKit::AcceleratedBackingStore::toplevelChanged):
* Source/WebKit/UIProcess/wpe/AcceleratedBackingStore.h:
* Tools/WebKitTestRunner/wpe/PlatformWebViewClientWPE.cpp:
(WTR::PlatformWebViewClientWPE::PlatformWebViewClientWPE):
(WTR::toplevelContainsView):
(WTR::PlatformWebViewClientWPE::addToWindow):
(WTR::PlatformWebViewClientWPE::removeFromWindow):
(WTR::PlatformWebViewClientWPE::size):
(WTR::PlatformWebViewClientWPE::resize):
* Tools/WebKitTestRunner/wpe/PlatformWebViewClientWPE.h:

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



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

Reply via email to