summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/document-picture-in-picture/support
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/document-picture-in-picture/support')
-rw-r--r--testing/web-platform/tests/document-picture-in-picture/support/focus-opener.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/testing/web-platform/tests/document-picture-in-picture/support/focus-opener.js b/testing/web-platform/tests/document-picture-in-picture/support/focus-opener.js
new file mode 100644
index 0000000000..679eef3b22
--- /dev/null
+++ b/testing/web-platform/tests/document-picture-in-picture/support/focus-opener.js
@@ -0,0 +1,3 @@
+// This script runs in the document picture-in-picture window to focus its
+// opener window.
+opener.focus();