Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e4d9fe534f0de95c0d9a97e688011d04aa07fc24
      
https://github.com/WebKit/WebKit/commit/e4d9fe534f0de95c0d9a97e688011d04aa07fc24
  Author: Przemyslaw Gorszkowski <[email protected]>
  Date:   2026-07-09 (Thu, 09 Jul 2026)

  Changed paths:
    A 
LayoutTests/platform/wpe/fast/history/page-cache-video-media-disabled-expected.txt
    A LayoutTests/platform/wpe/fast/history/page-cache-video-media-disabled.html
    A 
LayoutTests/platform/wpe/fast/history/page-cache-video-media-enabled-expected.txt
    A LayoutTests/platform/wpe/fast/history/page-cache-video-media-enabled.html
    A LayoutTests/platform/wpe/fast/history/resources/page-cache-helper.html
    M Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml
    M Source/WebCore/history/BackForwardCache.cpp

  Log Message:
  -----------
  [WPE] don't put page with multimedia to bfCache on low-end devices
https://bugs.webkit.org/show_bug.cgi?id=318851

Reviewed by Alicia Boya Garcia.

Add a new WPE-only feature `BackForwardCacheWithMediaEnabled` that allows
applications to control whether pages containing audio or video elements
can be placed in the back/forward cache.

When disabled, pages with media elements are excluded from the back/forward
cache. This is particularly useful on low-end embedded devices with a limited
number of hardware decoders, where keeping a suspended media pipeline alive in
the cache may prevent other pages from acquiring the decoder.

The feature is enabled by default (preserving existing behavior).

Two new WPE layout tests verify the behavior:
- page-cache-video-media-disabled.html: verifies pages with media are not
  cached when the feature is disabled.
- page-cache-video-media-enabled.html: verifies pages with media can enter
  and be restored from the back/forward cache when the feature is enabled.

Tests: platform/wpe/fast/history/page-cache-video-media-disabled.html
       platform/wpe/fast/history/page-cache-video-media-enabled.html
* 
LayoutTests/platform/wpe/fast/history/page-cache-video-media-disabled-expected.txt:
 Added.
* LayoutTests/platform/wpe/fast/history/page-cache-video-media-disabled.html: 
Added.
* 
LayoutTests/platform/wpe/fast/history/page-cache-video-media-enabled-expected.txt:
 Added.
* LayoutTests/platform/wpe/fast/history/page-cache-video-media-enabled.html: 
Added.
* LayoutTests/platform/wpe/fast/history/resources/page-cache-helper.html: Added.
* Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml:
* Source/WebCore/history/BackForwardCache.cpp:
(WebCore::canCachePage):

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



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

Reply via email to