From 43a97878ce14b72f0981164f87f2e35e14151312 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:22:09 +0200 Subject: Adding upstream version 110.0.1. Signed-off-by: Daniel Baumann --- ...without-user-activation-disabled-tentative.html | 51 +++++ ...hout-user-activation-enabled-tentative.sub.html | 51 +++++ .../experimental-features/resources/common.js | 94 ++++++++ .../feature-policy-trust-token-redemption.html | 55 +++++ ...s-without-user-activation-iframe-tentative.html | 47 ++++ .../resources/lazyload-contents.html | 13 ++ .../experimental-features/resources/lazyload.png | Bin 0 -> 20819 bytes .../vertical-scroll-scrollable-content.html | 16 ++ .../resources/vertical-scroll-scrollbar-ref.html | 13 ++ .../resources/vertical-scroll-scrollintoview.html | 45 ++++ .../resources/vertical-scroll-touch-action.html | 14 ++ .../resources/vertical-scroll-touch-block.html | 42 ++++ .../resources/vertical-scroll-wheel-block.html | 22 ++ .../resources/vertical-scroll.js | 25 +++ ...default-feature-policy.tentative.https.sub.html | 62 ++++++ ...tion-supported-by-feature-policy.tentative.html | 9 + ...-disabled-frame-no-scroll-manual.tentative.html | 113 ++++++++++ ...rtical-scroll-disabled-scrollbar-tentative.html | 4 + ...ertical-scroll-main-frame-manual.tentative.html | 46 ++++ ...scroll-main-frame-manual.tentative.html.headers | 1 + .../vertical-scroll-scrollintoview.tentative.html | 117 ++++++++++ ...tical-scroll-touch-action-manual.tentative.html | 103 +++++++++ ...rtical-scroll-touch-block-manual.tentative.html | 237 +++++++++++++++++++++ ...rtical-scroll-wheel-block-manual.tentative.html | 145 +++++++++++++ 24 files changed, 1325 insertions(+) create mode 100644 testing/web-platform/tests/feature-policy/experimental-features/focus-without-user-activation-disabled-tentative.html create mode 100644 testing/web-platform/tests/feature-policy/experimental-features/focus-without-user-activation-enabled-tentative.sub.html create mode 100644 testing/web-platform/tests/feature-policy/experimental-features/resources/common.js create mode 100644 testing/web-platform/tests/feature-policy/experimental-features/resources/feature-policy-trust-token-redemption.html create mode 100644 testing/web-platform/tests/feature-policy/experimental-features/resources/focus-without-user-activation-iframe-tentative.html create mode 100644 testing/web-platform/tests/feature-policy/experimental-features/resources/lazyload-contents.html create mode 100644 testing/web-platform/tests/feature-policy/experimental-features/resources/lazyload.png create mode 100644 testing/web-platform/tests/feature-policy/experimental-features/resources/vertical-scroll-scrollable-content.html create mode 100644 testing/web-platform/tests/feature-policy/experimental-features/resources/vertical-scroll-scrollbar-ref.html create mode 100644 testing/web-platform/tests/feature-policy/experimental-features/resources/vertical-scroll-scrollintoview.html create mode 100644 testing/web-platform/tests/feature-policy/experimental-features/resources/vertical-scroll-touch-action.html create mode 100644 testing/web-platform/tests/feature-policy/experimental-features/resources/vertical-scroll-touch-block.html create mode 100644 testing/web-platform/tests/feature-policy/experimental-features/resources/vertical-scroll-wheel-block.html create mode 100644 testing/web-platform/tests/feature-policy/experimental-features/resources/vertical-scroll.js create mode 100644 testing/web-platform/tests/feature-policy/experimental-features/trust-token-redemption-default-feature-policy.tentative.https.sub.html create mode 100644 testing/web-platform/tests/feature-policy/experimental-features/trust-token-redemption-supported-by-feature-policy.tentative.html create mode 100644 testing/web-platform/tests/feature-policy/experimental-features/vertical-scroll-disabled-frame-no-scroll-manual.tentative.html create mode 100644 testing/web-platform/tests/feature-policy/experimental-features/vertical-scroll-disabled-scrollbar-tentative.html create mode 100644 testing/web-platform/tests/feature-policy/experimental-features/vertical-scroll-main-frame-manual.tentative.html create mode 100644 testing/web-platform/tests/feature-policy/experimental-features/vertical-scroll-main-frame-manual.tentative.html.headers create mode 100644 testing/web-platform/tests/feature-policy/experimental-features/vertical-scroll-scrollintoview.tentative.html create mode 100644 testing/web-platform/tests/feature-policy/experimental-features/vertical-scroll-touch-action-manual.tentative.html create mode 100644 testing/web-platform/tests/feature-policy/experimental-features/vertical-scroll-touch-block-manual.tentative.html create mode 100644 testing/web-platform/tests/feature-policy/experimental-features/vertical-scroll-wheel-block-manual.tentative.html (limited to 'testing/web-platform/tests/feature-policy/experimental-features') diff --git a/testing/web-platform/tests/feature-policy/experimental-features/focus-without-user-activation-disabled-tentative.html b/testing/web-platform/tests/feature-policy/experimental-features/focus-without-user-activation-disabled-tentative.html new file mode 100644 index 0000000000..c4413f7804 --- /dev/null +++ b/testing/web-platform/tests/feature-policy/experimental-features/focus-without-user-activation-disabled-tentative.html @@ -0,0 +1,51 @@ + + + + + 'focus-without-user-activation' Policy : Correctly block automatic focus when policy disabled + + + + diff --git a/testing/web-platform/tests/feature-policy/experimental-features/focus-without-user-activation-enabled-tentative.sub.html b/testing/web-platform/tests/feature-policy/experimental-features/focus-without-user-activation-enabled-tentative.sub.html new file mode 100644 index 0000000000..411e4f2fa0 --- /dev/null +++ b/testing/web-platform/tests/feature-policy/experimental-features/focus-without-user-activation-enabled-tentative.sub.html @@ -0,0 +1,51 @@ + + + + + 'focus-without-user-activation' Policy : Correctly block automatic focus when policy disabled + + + + diff --git a/testing/web-platform/tests/feature-policy/experimental-features/resources/common.js b/testing/web-platform/tests/feature-policy/experimental-features/resources/common.js new file mode 100644 index 0000000000..4266e39495 --- /dev/null +++ b/testing/web-platform/tests/feature-policy/experimental-features/resources/common.js @@ -0,0 +1,94 @@ +const url_base = "/feature-policy/experimental-features/resources/"; +window.messageResponseCallback = null; + +function setFeatureState(iframe, feature, origins) { + iframe.setAttribute("allow", `${feature} ${origins};`); +} + +// Returns a promise which is resolved when the + + diff --git a/testing/web-platform/tests/feature-policy/experimental-features/resources/vertical-scroll-scrollintoview.html b/testing/web-platform/tests/feature-policy/experimental-features/resources/vertical-scroll-scrollintoview.html new file mode 100644 index 0000000000..7bed27c260 --- /dev/null +++ b/testing/web-platform/tests/feature-policy/experimental-features/resources/vertical-scroll-scrollintoview.html @@ -0,0 +1,45 @@ + + +
+
+ +
+ diff --git a/testing/web-platform/tests/feature-policy/experimental-features/resources/vertical-scroll-touch-action.html b/testing/web-platform/tests/feature-policy/experimental-features/resources/vertical-scroll-touch-action.html new file mode 100644 index 0000000000..51b715f30a --- /dev/null +++ b/testing/web-platform/tests/feature-policy/experimental-features/resources/vertical-scroll-touch-action.html @@ -0,0 +1,14 @@ + + + +

This page blocks all 'touch-action'.

+ diff --git a/testing/web-platform/tests/feature-policy/experimental-features/resources/vertical-scroll-touch-block.html b/testing/web-platform/tests/feature-policy/experimental-features/resources/vertical-scroll-touch-block.html new file mode 100644 index 0000000000..4c204055af --- /dev/null +++ b/testing/web-platform/tests/feature-policy/experimental-features/resources/vertical-scroll-touch-block.html @@ -0,0 +1,42 @@ + + + +
+

This page blocks 'touchstart' and 'touchmove'.

+
+ + diff --git a/testing/web-platform/tests/feature-policy/experimental-features/resources/vertical-scroll-wheel-block.html b/testing/web-platform/tests/feature-policy/experimental-features/resources/vertical-scroll-wheel-block.html new file mode 100644 index 0000000000..21fc2b9b39 --- /dev/null +++ b/testing/web-platform/tests/feature-policy/experimental-features/resources/vertical-scroll-wheel-block.html @@ -0,0 +1,22 @@ + + + +

This page blocks all 'mouse-wheel'.

+ + diff --git a/testing/web-platform/tests/feature-policy/experimental-features/resources/vertical-scroll.js b/testing/web-platform/tests/feature-policy/experimental-features/resources/vertical-scroll.js new file mode 100644 index 0000000000..88835cc602 --- /dev/null +++ b/testing/web-platform/tests/feature-policy/experimental-features/resources/vertical-scroll.js @@ -0,0 +1,25 @@ +function rectMaxY(rect) { + return rect.height + rect.y; +} + +function rectMaxX(rect) { + return rect.width + rect.x; +} + +function isEmptyRect(rect) { + return !rect.width || !rect.height; +} + +// Returns true if the given rectangles intersect. +function rects_intersect(rect1, rect2) { + if (isEmptyRect(rect1) || isEmptyRect(rect2)) + return false; + return rect1.x < rectMaxX(rect2) && + rect2.x < rectMaxX(rect1) && + rect1.y < rectMaxY(rect2) && + rect2.y < rectMaxY(rect1); +} + +function rectToString(rect) { + return `Location: (${rect.x}, ${rect.y}) Size: (${rect.width}, ${rect.height})`; +} diff --git a/testing/web-platform/tests/feature-policy/experimental-features/trust-token-redemption-default-feature-policy.tentative.https.sub.html b/testing/web-platform/tests/feature-policy/experimental-features/trust-token-redemption-default-feature-policy.tentative.https.sub.html new file mode 100644 index 0000000000..134ccc084d --- /dev/null +++ b/testing/web-platform/tests/feature-policy/experimental-features/trust-token-redemption-default-feature-policy.tentative.https.sub.html @@ -0,0 +1,62 @@ + +Test that trust token redemption is enabled/disabled according to the feature policy + + + + + + + diff --git a/testing/web-platform/tests/feature-policy/experimental-features/trust-token-redemption-supported-by-feature-policy.tentative.html b/testing/web-platform/tests/feature-policy/experimental-features/trust-token-redemption-supported-by-feature-policy.tentative.html new file mode 100644 index 0000000000..e349eadc5d --- /dev/null +++ b/testing/web-platform/tests/feature-policy/experimental-features/trust-token-redemption-supported-by-feature-policy.tentative.html @@ -0,0 +1,9 @@ + +Test that trust token redemption is advertised in the feature list + + + diff --git a/testing/web-platform/tests/feature-policy/experimental-features/vertical-scroll-disabled-frame-no-scroll-manual.tentative.html b/testing/web-platform/tests/feature-policy/experimental-features/vertical-scroll-disabled-frame-no-scroll-manual.tentative.html new file mode 100644 index 0000000000..6f827c919a --- /dev/null +++ b/testing/web-platform/tests/feature-policy/experimental-features/vertical-scroll-disabled-frame-no-scroll-manual.tentative.html @@ -0,0 +1,113 @@ + + +vertical-scroll test for touch-action + + + + + + +
+

Spacers below to make page scrollable

+
+
+
+

EOF

+ + diff --git a/testing/web-platform/tests/feature-policy/experimental-features/vertical-scroll-disabled-scrollbar-tentative.html b/testing/web-platform/tests/feature-policy/experimental-features/vertical-scroll-disabled-scrollbar-tentative.html new file mode 100644 index 0000000000..6036234de1 --- /dev/null +++ b/testing/web-platform/tests/feature-policy/experimental-features/vertical-scroll-disabled-scrollbar-tentative.html @@ -0,0 +1,4 @@ + +vertical-scroll test for vertical scrollbar + + diff --git a/testing/web-platform/tests/feature-policy/experimental-features/vertical-scroll-main-frame-manual.tentative.html b/testing/web-platform/tests/feature-policy/experimental-features/vertical-scroll-main-frame-manual.tentative.html new file mode 100644 index 0000000000..34cf142d45 --- /dev/null +++ b/testing/web-platform/tests/feature-policy/experimental-features/vertical-scroll-main-frame-manual.tentative.html @@ -0,0 +1,46 @@ + +Ensure 'vertical-scroll' does not affect main frame + + + + + +

Making sure there is room for vertical scroll

+
+
+

EOP

+ diff --git a/testing/web-platform/tests/feature-policy/experimental-features/vertical-scroll-main-frame-manual.tentative.html.headers b/testing/web-platform/tests/feature-policy/experimental-features/vertical-scroll-main-frame-manual.tentative.html.headers new file mode 100644 index 0000000000..44072fce56 --- /dev/null +++ b/testing/web-platform/tests/feature-policy/experimental-features/vertical-scroll-main-frame-manual.tentative.html.headers @@ -0,0 +1 @@ +Feature-Policy: vertical-scroll 'none' diff --git a/testing/web-platform/tests/feature-policy/experimental-features/vertical-scroll-scrollintoview.tentative.html b/testing/web-platform/tests/feature-policy/experimental-features/vertical-scroll-scrollintoview.tentative.html new file mode 100644 index 0000000000..689685a497 --- /dev/null +++ b/testing/web-platform/tests/feature-policy/experimental-features/vertical-scroll-scrollintoview.tentative.html @@ -0,0 +1,117 @@ + + + + + + +

An <iframe> further below which is not allowed to block scroll.

+
+ +

Making sure there is room for vertical scroll

+ diff --git a/testing/web-platform/tests/feature-policy/experimental-features/vertical-scroll-touch-action-manual.tentative.html b/testing/web-platform/tests/feature-policy/experimental-features/vertical-scroll-touch-action-manual.tentative.html new file mode 100644 index 0000000000..c1b5f1d076 --- /dev/null +++ b/testing/web-platform/tests/feature-policy/experimental-features/vertical-scroll-touch-action-manual.tentative.html @@ -0,0 +1,103 @@ + + +vertical-scroll test for touch-action + + + + + + +
+

Spacers below to make page scrollable

+
+
+
+

EOF

+ + diff --git a/testing/web-platform/tests/feature-policy/experimental-features/vertical-scroll-touch-block-manual.tentative.html b/testing/web-platform/tests/feature-policy/experimental-features/vertical-scroll-touch-block-manual.tentative.html new file mode 100644 index 0000000000..82f6ca527f --- /dev/null +++ b/testing/web-platform/tests/feature-policy/experimental-features/vertical-scroll-touch-block-manual.tentative.html @@ -0,0 +1,237 @@ + +vertical-scroll test for touch-action + + + + + + +
+

Spacers below to make page scrollable

+
+
+
+

EOF

+ + diff --git a/testing/web-platform/tests/feature-policy/experimental-features/vertical-scroll-wheel-block-manual.tentative.html b/testing/web-platform/tests/feature-policy/experimental-features/vertical-scroll-wheel-block-manual.tentative.html new file mode 100644 index 0000000000..398aa1f5af --- /dev/null +++ b/testing/web-platform/tests/feature-policy/experimental-features/vertical-scroll-wheel-block-manual.tentative.html @@ -0,0 +1,145 @@ + +vertical-scroll test for 'mousewheel' + + + + + + +
+

Spacers below to make page scrollable

+
+
+
+

EOF

+ -- cgit v1.2.3