From bee23445a3c1aa204d7a48fd31850bc08633ba8b Mon Sep 17 00:00:00 2001
From: Marcos Caceres
- The [=default allowlist=] of `'self'` makes Web Share API available by
- default only in first-party contexts.
+ The [=default allowlist=] of [=default allowlist/'self'=] makes Web
+ Share API available by default only in first-party contexts.
Third-party can be allowed to use this API via an [^iframe^]'s
@@ -680,20 +680,28 @@
This specification defines a policy-controlled permission identified by
the string
Developers can use the means afforded by the [[[permissions-policy]]]
specification to control if and when a third-party context is [=allowed
to use=] this API.
text: "This is a text to share",
someFutureThing: "some future thing",
};
-
+
// Things that are not supported...
const unsupported = Object.entries(data).filter(([key, value]) => {
return !navigator.canShare({ [key]: value });
@@ -200,8 +200,8 @@
Enabling the API in third-party contexts
"web-share"
. Its
- default allowlist is [=default allowlist/'self'=].
+ [=default allowlist=] is [=default allowlist/'self'=], which means
+ third-party contexts are not [=allowed to use=] the API by default.
From ed052537bdf962db72b6d7fd778df42090f96341 Mon Sep 17 00:00:00 2001
From: Marcos Caceres
more available across all OSs over time, and is already widely
available on popular OSs across a range of devices.
+ + Future updates to this Recommendation may incorporate [new + features](https://www.w3.org/2021/Process-20211102/#allow-new-features). +