From 7649bcf66ac5e366156faae6a95462c6c31b22d5 Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Sat, 1 Aug 2020 01:10:35 +0000 Subject: [PATCH] Bug 1653268 [wpt PR 24628] - WebShare: Introduce web-share feature policy, a=testonly Automatic update from web-platform-tests WebShare: Introduce web-share feature policy share() requests fail with a rejected promise if the 'web-share' feature is not enabled. We define 'self' as the default feature policy for web-share. The spec has been updated https://github.com/w3c/web-share/pull/166 Intent to Ship https://groups.google.com/a/chromium.org/g/blink-dev/c/fgme9KOd8CU/m/TCYPKQAXAwAJ Bug: 1079104 Change-Id: Id4030448a54589eddb45185cbd6fd8970aee34c3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2299791 Commit-Queue: Eric Willigers Reviewed-by: Ian Clelland Reviewed-by: Daniel Murphy Reviewed-by: Dominick Ng Cr-Commit-Position: refs/heads/master{#789872} -- wpt-commits: 1bd9297b8aa6870267c0c0ad1fa445f897ddecd7 wpt-pr: 24628 UltraBlame original commit: a38778c7eacc05993acc592b72e85e34b9c3074f --- .../disabled-by-feature-policy.https.sub.html | 20 +++++++++++++++++++ ...d-by-feature-policy.https.sub.html.headers | 1 + 2 files changed, 21 insertions(+) create mode 100644 testing/web-platform/tests/web-share/disabled-by-feature-policy.https.sub.html create mode 100644 testing/web-platform/tests/web-share/disabled-by-feature-policy.https.sub.html.headers diff --git a/testing/web-platform/tests/web-share/disabled-by-feature-policy.https.sub.html b/testing/web-platform/tests/web-share/disabled-by-feature-policy.https.sub.html new file mode 100644 index 0000000000000..9c1893232997a --- /dev/null +++ b/testing/web-platform/tests/web-share/disabled-by-feature-policy.https.sub.html @@ -0,0 +1,20 @@ + + + + + WebShare Test: Can be disabled by feature policy + + + + + + + + + diff --git a/testing/web-platform/tests/web-share/disabled-by-feature-policy.https.sub.html.headers b/testing/web-platform/tests/web-share/disabled-by-feature-policy.https.sub.html.headers new file mode 100644 index 0000000000000..a9b2b95074245 --- /dev/null +++ b/testing/web-platform/tests/web-share/disabled-by-feature-policy.https.sub.html.headers @@ -0,0 +1 @@ +Feature-Policy: web-share 'none'