From 071ec0b3619d11a71b27dc5d7ad6c74040b7139c Mon Sep 17 00:00:00 2001 From: Tommy Steimel Date: Sat, 2 Dec 2023 10:02:56 +0000 Subject: [PATCH] Bug 1861547 [wpt PR 42797] - [document pip] Allow resizeTo()/resizeBy() via user gesture, a=testonly Automatic update from web-platform-tests [document pip] Allow resizeTo()/resizeBy() via user gesture Currently, we don't allow picture-in-picture windows to use the resizeTo() and resizeBy() APIs to prevent abuse. This CL adds a user gesture requirement to those APIs for document picture-in-picture windows to allow them to use those APIs while limiting the potential for abuse. Specification: https://github.com/WICG/document-picture-in-picture/pull/104 Bug: 1354325 Change-Id: I6eabb2e9b8923ec1fc395cb44e3cc00ad674f5da Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4980802 Reviewed-by: Daniel Cheng Reviewed-by: Fr Reviewed-by: Frank Liberato Reviewed-by: Scott Violet Commit-Queue: Tommy Steimel Cr-Commit-Position: refs/heads/main@{#1230725} -- wpt-commits: 7007ee235ed368079546dd0a8ef45a7dfa88305a wpt-pr: 42797 --- .../resize-requires-user-gesture.https.html | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 testing/web-platform/tests/document-picture-in-picture/resize-requires-user-gesture.https.html diff --git a/testing/web-platform/tests/document-picture-in-picture/resize-requires-user-gesture.https.html b/testing/web-platform/tests/document-picture-in-picture/resize-requires-user-gesture.https.html new file mode 100644 index 0000000000000..f6c4aa4989cd7 --- /dev/null +++ b/testing/web-platform/tests/document-picture-in-picture/resize-requires-user-gesture.https.html @@ -0,0 +1,22 @@ + +Test that calling resizeTo() or resizeBy() on a document + picture-in-picture window requires user gesture + + + + + + +