This sampler demonstrates issue 40656738: when a focused link is clicked,
navigates to a second page, and then the browser goes back without BFCache,
the original page should restore document.activeElement to the
clicked link.
Expected behavior: after back navigation, the focused link with id
target is active again.
On an unpatched browser this sampler is expected to report FAIL
with activeElementAfterRestore: "". That means the bug was
reproduced successfully.
Run sampler.history.back().The investigated fix persists a minimal focused-element identity in session history for non-BFCache restores and re-applies focus when the document is recreated. This static sampler cannot apply that engine fix, so stock browsers will normally continue to show the failing result.
This is separate from 40199280, which is a BFCache-specific focus preservation issue.