Skip to content

Commit 9226ea5

Browse files
authored
Merge pull request #256 from w3c/PR_feedback
Editorial: address Proposed Recommendation Feedback
2 parents d5cf6ac + ed05253 commit 9226ea5

File tree

1 file changed

+22
-9
lines changed

1 file changed

+22
-9
lines changed

index.html

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@

7777
more available across all OSs over time, and is already widely
7878
available on popular OSs across a range of devices.
7979
p>
80+
<p>
81+
82+
Future updates to this Recommendation may incorporate [new
83+
features](https://www.w3.org/2021/Process-20211102/#allow-new-features).
84+
p>
8085
section>
8186
section>
8287
<section class="informative">
@@ -190,7 +195,7 @@

190195
text: "This is a text to share",
191196
someFutureThing: "some future thing",
192197
};
193-
198+
194199
// Things that are not supported...
195200
const unsupported = Object.entries(data).filter(([key, value]) => {
196201
return !navigator.canShare({ [key]: value });
@@ -200,8 +205,8 @@

200205
Enabling the API in third-party contexts
201206
h3>
202207
<p data-cite="permissions-policy">
203-
The [=default allowlist=] of `'self'` makes Web Share API available by
204-
default only in first-party contexts.
208+
The [=default allowlist=] of [=default allowlist/'self'=] makes Web
209+
Share API available by default only in first-party contexts.
205210
p>
206211
<p>
207212
Third-party can be allowed to use this API via an [^iframe^]'s
@@ -680,20 +685,28 @@

680685
<p>
681686
This specification defines a policy-controlled permission identified by
682687
the string <code><dfn class="permission">"web-share"dfn>code>. Its
683-
<a>default allowlista> is [=default allowlist/'self'=].
688+
[=default allowlist=] is [=default allowlist/'self'=], which means
689+
third-party contexts are not [=allowed to use=] the API by default.
684690
p>
685691
<p>
686692
Developers can use the means afforded by the [[[permissions-policy]]]
687693
specification to control if and when a third-party context is [=allowed
688694
to use=] this API.
689695
p>
690-
<div class="note">
696+
<aside class="note" title="Permissions Policy Implementation Status">
691697
<p>
692-
A <a>documenta>'s permission policy determines whether a
693-
{{Navigator/share()}} call immediately rejects with a
694-
{{"NotAllowedError"}} {{DOMException}}.
698+
Although user agents are unified in preventing the Web Share API from
699+
being used in third-party context, at the time of publication there
700+
are interoperability with relying on the [[[Permissions-Policy]]] to
701+
enable the API in third-party contexts. In particular, although
702+
the[^iframe/allow^] attribute is widely supported, the updated syntax
703+
for the [^iframe/allow^] attribute is not. Similarly, the
704+
`Permissions-Policy:` HTTP header is not yet widely supported.
705+
Developers are advised to check the implementation status of the
706+
[[[Permissions-Policy]]] specification before relying on it to enable
707+
the Web Share API in third-party contexts.
695708
p>
696-
div>
709+
aside>
697710
section>
698711
<section class="informative">
699712
<h2>

0 commit comments

Comments
 (0)