Skip to content

Commit

Permalink
Fix example and add feedback to paragraph on prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-ivar committed Jun 26, 2024
1 parent 8a3de8f commit 8075bc0
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -194,14 +194,20 @@ spec: RFC8941; urlPrefix: https://datatracker.ietf.org/doc/html/rfc8941#
An iframe where the component "app1" should have camera access, "app2" should
have microphone access, and "app3" should have both might look like this:
<pre>
&lt;iframe allow="camera //app1.site.com //app3.site.com; microphone //app2.site.com"
src="//doc1.site.com" sandbox="allow-same-origin allow-scripts"&gt;&lt;/iframe&gt;
&lt;iframe
allow="camera https://app1.site.com https://app3.site.com;
microphone https://app2.site.com https://app3.site.com"
src="https://doc1.site.com"
sandbox="allow-same-origin allow-scripts"&gt;
&lt;/iframe&gt;
</pre>
<p>Iframe attributes can selectively enable features in certain frames, and
not in others, even if those contain documents from the [=same origin=].
The list of sandbox tokens might be longer in practice.</p>
<p>If the user already trusts PlatformCorp then
there might not be any additional permission prompt in this case.</p>
<p>Since browsers generally ask users to grant permissions to the top-level
domain, there might not be any additional permission prompt for the
components to request camera or microphone access if the user already
trusts PlatformCorp.</p>
</div>
</section>
<section>
Expand Down

0 comments on commit 8075bc0

Please sign in to comment.