From 22cc4b28a58e38b9da61deb1c9275270b51ef196 Mon Sep 17 00:00:00 2001 From: Tommy Steimel Date: Thu, 26 Oct 2023 18:36:18 -0700 Subject: [PATCH] [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 --- .../resize-requires-user-gesture.https.html | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 document-picture-in-picture/resize-requires-user-gesture.https.html diff --git a/document-picture-in-picture/resize-requires-user-gesture.https.html b/document-picture-in-picture/resize-requires-user-gesture.https.html new file mode 100644 index 00000000000000..f6c4aa4989cd78 --- /dev/null +++ b/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 + + + + + + +