From 3d227627ce4545947dd95395d4b1cb300a569671 Mon Sep 17 00:00:00 2001 From: Przemyslaw Gorszkowski Date: Wed, 19 Aug 2026 13:04:49 -0700 Subject: [PATCH] MEDIA_ERR_ABORTED after restore page with media from bfcache https://bugs.webkit.org/show_bug.cgi?id=319665 Reviewed by Alicia Boya Garcia and Nikolas Zimmermann. This bundles three related fixes uncovered while restoring pages containing a media element (e.g.: "video") from the back/forward cache: 1. HTMLMediaElement::suspend() destroyed the media player on entering the cache (via stopWithoutDestroyingMediaPlayer() -> userCancelledLoad()), so a restored page reported video.error.code == MEDIA_ERR_ABORTED. userCancelledLoad() now takes a destroyMediaPlayer flag, false for the BackForwardCache suspension path, so it early-returns instead of tearing the player down. 2. A