From 0821a3727c3f692ec62419b064fea308ac1b0358 Mon Sep 17 00:00:00 2001 From: Hiroshige Hayashizaki Date: Tue, 8 Feb 2022 18:21:05 -0800 Subject: [PATCH] [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: 1107415, 1253728, 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 Commit-Queue: Hiroshige Hayashizaki Cr-Commit-Position: refs/heads/main@{#968703} --- .../back-forward-cache/focus.html | 73 +++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 html/browsers/browsing-the-web/back-forward-cache/focus.html diff --git a/html/browsers/browsing-the-web/back-forward-cache/focus.html b/html/browsers/browsing-the-web/back-forward-cache/focus.html new file mode 100644 index 000000000000000..3901a5417ddc871 --- /dev/null +++ b/html/browsers/browsing-the-web/back-forward-cache/focus.html @@ -0,0 +1,73 @@ + + + + + + + + +