Bug 1733862 [wpt PR 31084] - [WPT] BFCache: focus should be kept around BFCache,...
commit6ee5694d85805c04ca4baf2b2e016a1005b29453
authorHiroshige Hayashizaki <hiroshige@chromium.org>
Sun, 13 Feb 2022 21:41:59 +0000 (13 21:41 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Sat, 26 Feb 2022 11:57:46 +0000 (26 11:57 +0000)
treedff09116af0408dce351f4841384a412706d2a81
parent7a4c9c4f6459fa523e3543c5d603b444099e972d
Bug 1733862 [wpt PR 31084] - [WPT] BFCache: focus should be kept around BFCache, a=testonly

Automatic update from web-platform-tests
[WPT] BFCache: focus should be kept around BFCache

This CL adds a test to confirm that,
when page gets into and out of BFCache,

- Focus should be kept and
- blur/focus events are not fired.

The current results are

Safari: Pass
Firefox: Focus remains the same but blur/focus events are fired.
Chrome: Focus is lost.

See https://github.com/whatwg/html/pull/6696
for other status and implementation bug links etc.

Bug: 11074151253728, https://github.com/whatwg/html/issues/5878
Change-Id: I2bb9a420de19f24d7010917f7e6ce54cba8212fb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3198456
Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org>
Cr-Commit-Position: refs/heads/main@{#968703}

--

wpt-commits: a1e49a05bf46345316fd04bb4b22e5e7e8d9bc70
wpt-pr: 31084
testing/web-platform/tests/html/browsers/browsing-the-web/back-forward-cache/focus.html [new file with mode: 0644]