Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling of nested browsing contexts. #249

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 69 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,8 @@ <h2>
The terms <dfn><a href=
"http://www.w3.org/TR/html5/browsers.html#browsing-context">browsing
context</a></dfn>, <dfn><a href=
"https://www.w3.org/TR/html5/browsers.html#nested-browsing-contexts">nested
browsing context</a></dfn>, <dfn><a href=
"http://www.w3.org/TR/html5/webappapis.html#event-handlers">event
handler</a></dfn>, <dfn><a href=
"http://www.w3.org/TR/html5/webappapis.html#event-handler-event-type">event
Expand All @@ -331,6 +333,12 @@ <h2>
browsing context</a></dfn>, <dfn><a href=
"http://www.w3.org/TR/html5/browsers.html#session-history">session
history</a></dfn>, <dfn><a href=
"https://www.w3.org/TR/html5/browsers.html#sandboxing-flag-set">sandboxing
flag set</a></dfn>, <dfn><a href=
"https://www.w3.org/TR/html5/browsers.html#active-sandboxing-flag-set">active
sandboxing flag set</a></dfn>, <dfn><a href=
"https://www.w3.org/TR/html5/browsers.html#parse-a-sandboxing-directive">
parse a sandboxing directive</a></dfn>, <dfn><a href=
"http://www.w3.org/TR/html5/browsers.html#sandboxed-auxiliary-navigation-browsing-context-flag">
sandboxed auxiliary navigation browsing context flag</a></dfn>,
<dfn><a href=
Expand Down Expand Up @@ -712,7 +720,7 @@ <h3>
</h3>
<pre class="idl">
partial interface Navigator {
[SameObject] readonly attribute Presentation presentation;
[SameObject] readonly attribute Presentation? presentation;
};

interface Presentation {
Expand All @@ -723,7 +731,10 @@ <h3>
</pre>
<p>
The <dfn for="Navigator"><code>presentation</code></dfn> attribute is
used to retrieve an instance of the <a>Presentation</a> interface.
used to retrieve an instance of the <a><code>Presentation</code></a>
interface. If <a>presentation is disabled</a>, the attribute MUST
return null. Otherwise, it MUST return the
<a><code>Presentation</code></a> instance.
</p>
<section>
<h4>
Expand Down Expand Up @@ -2278,6 +2289,51 @@ <h4>
</table>
</section>
</section>
<section>
<h3>
Sandboxing and the <code>allow-presentation</code> keyword
</h3>
<p>
This specification adds a new token, <code>allow-presentation</code>,
to the set of tokens allowed in the <code>sandbox</code> attribute of
an <code>iframe</code>. It adds a corresponding new flag to the
<a>sandboxing flag set</a>:
</p>
<dl>
<dt>
The <dfn id=
"sandboxed-presentation-browsing-context-flag">sandboxed
presentation browsing context flag</dfn>
</dt>
<dd>
This flag disables the Presentation API.
</dd>
</dl>
<p>
It amends the <a>parse a sandboxing directive</a> algorithm by adding
an item to step 3:
</p>
<ul>
<li>The <a>sandboxed presentation browsing context flag</a>, unless
<var>tokens</var> contains the <dfn id=
"attr-iframe-sandbox-allow-presentation"><code>allow-presentation</code></dfn>
keyword.
</li>
</ul>
<p>
<dfn>Presentation is disabled</dfn> in a browsing context when the
document object's <a>active sandboxing flag set</a> does not have the
<a>sandboxed presentation browsing context flag</a> set.
</p>
<div class="note">
A <a>nested browsing context</a> created by an <code>iframe</code>
with its <code>sandbox</code> attribute set will act as if
<a>presentation is disabled</a>, unless that attribute includes the
<code>allow-presentation</code> keyword. This allows pages to embed
potentially untrustworthy content and deny it the ability to request
presentation from the user or query for screen availability.
</div>
</section>
</section>
<section>
<h2>
Expand Down Expand Up @@ -2330,6 +2386,17 @@ <h3>
"PresentationConnection">send</a>()</code> that the receiving
application could verify corresponds an authorized entity.
</p>
<h3>
User interface guidelines
</h3>
<p>
When the user is asked permission to use a <a>presentation display</a>
during the steps to <a>start a presentation</a>, the <a>controlling
user agent</a> should make it clear what origin is requesting
presentation. This will help the user understand what content is
requesting presentation, especially when the request is initiated from
a <a>nested browsing context</a>.
</p>
<h3>
Device Access
</h3>
Expand Down Expand Up @@ -2363,7 +2430,6 @@ <h3>
The set of presentations known to the user agent should be cleared when
the user requests to "clear browsing data."
</p>
<div class="issue" data-number="14"></div>
<div class="issue">
The spec should clarify what is to happen to the set of known
presentations in "incognito" (private browsing context) mode.
Expand All @@ -2378,7 +2444,6 @@ <h3>
confidentiality and authenticity between corresponding <a>presentation
connections</a>.
</p>
<div class="issue" data-number="80"></div>
</section>
<section>
<h2>
Expand Down