This sampler demonstrates the bug from issue 40199280: a page should keep its focused element when it enters and restores from the back-forward cache.
Expected behavior: document.activeElement stays on the same
focused input before pagehide, during persisted
pagehide, and after BFCache restore.
history.back().Preserve focus when entering the back-forward cache
Keep DOM focus intact on persisted pagehide so BFCache restores
preserve document.activeElement.
Issue 40656738 is broader. This fix addresses the BFCache-specific focus loss overlap.