From 679cfd4a0960e1cef19f964a2f049f4a223367fa Mon Sep 17 00:00:00 2001 From: Lingqi Chi Date: Tue, 19 Oct 2021 03:53:55 -0700 Subject: [PATCH] Prerender: upstream wpt_internal/prerender/restriction-focus.html The behavior is described in https://jeremyroman.github.io/alternate-loading-modes/prerendering.html#interaction-with-system-focus Bug: 1253158 Change-Id: I292298355d0880160bf78837ed0a8413585f3078 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3229409 Reviewed-by: Hiroki Nakagawa Commit-Queue: Lingqi Chi Cr-Commit-Position: refs/heads/main@{#932946} --- .../prerender/resources/prerender-focus.html | 25 +++++++++++++ .../prerender/restriction-focus.html | 37 +++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 speculation-rules/prerender/resources/prerender-focus.html create mode 100644 speculation-rules/prerender/restriction-focus.html diff --git a/speculation-rules/prerender/resources/prerender-focus.html b/speculation-rules/prerender/resources/prerender-focus.html new file mode 100644 index 00000000000000..f6a79533e560c8 --- /dev/null +++ b/speculation-rules/prerender/resources/prerender-focus.html @@ -0,0 +1,25 @@ + +Check the focus state of prerendering pages + + + + + + diff --git a/speculation-rules/prerender/restriction-focus.html b/speculation-rules/prerender/restriction-focus.html new file mode 100644 index 00000000000000..b6576eb15a29e6 --- /dev/null +++ b/speculation-rules/prerender/restriction-focus.html @@ -0,0 +1,37 @@ + +Prerendering documents are not focused + + + + + + + +