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..98088fec65cd5 --- /dev/null +++ b/testing/web-platform/tests/web-share/disabled-by-feature-policy.https.sub.html @@ -0,0 +1,176 @@ +< +! +DOCTYPE +html +> +< +html +> +< +head +> +< +meta +charset += +" +utf +- +8 +" +/ +> +< +title +> +WebShare +Test +: +Can +be +disabled +by +feature +policy +< +/ +title +> +< +script +src += +" +/ +resources +/ +testharness +. +js +" +> +< +/ +script +> +< +script +src += +" +/ +resources +/ +testharnessreport +. +js +" +> +< +/ +script +> +< +script +src += +" +/ +resources +/ +testdriver +. +js +" +> +< +/ +script +> +< +script +src += +" +/ +resources +/ +testdriver +- +vendor +. +js +" +> +< +/ +script +> +< +/ +head +> +< +body +> +< +script +> +promise_test +( +async +t += +> +{ +await +test_driver +. +bless +( +" +web +share +" +) +; +await +promise_rejects_dom +( +t +" +NotAllowedError +" +navigator +. +share +( +{ +} +) +) +; +} +" +share +can +be +disabled +by +feature +policy +" +) +; +< +/ +script +> +< +/ +body +> +< +/ +html +> 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..3fc03b0928503 --- /dev/null +++ b/testing/web-platform/tests/web-share/disabled-by-feature-policy.https.sub.html.headers @@ -0,0 +1,10 @@ +Feature +- +Policy +: +web +- +share +' +none +'