Skip to content

Commit

Permalink
[e] (0) (This should have no normative effect.) Prepare the spec for …
Browse files Browse the repository at this point in the history
…fullscreen.

Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=18840
Affected topics: HTML

git-svn-id: http://svn.whatwg.org/webapps@7351 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Sep 15, 2012
1 parent 3ddd97c commit 8359fee
Show file tree
Hide file tree
Showing 3 changed files with 169 additions and 153 deletions.
108 changes: 56 additions & 52 deletions complete.html
Expand Up @@ -70780,59 +70780,63 @@ <h4 id=navigating-across-documents><span class=secno>6.6.1 </span>Navigating acr

<p><dfn id=create-a-document-object title="create a Document object">Creating a new
<code>Document</code> object</dfn>: when a <code><a href=#document>Document</a></code>
is created as part of the above steps, the user agent has a couple
of additional requirements to follow as part of creating the new
object:</p>

<p>First, a new <code><a href=#window>Window</a></code> object must be created and
associated with the <code><a href=#document>Document</a></code>, with one exception: if
the <a href=#browsing-context>browsing context</a>'s only entry in its
<a href=#session-history>session history</a> is the <code><a href=#about:blank>about:blank</a></code>
<code><a href=#document>Document</a></code> that was added when the <a href=#browsing-context>browsing
context</a> was created, and navigation is occurring with
<a href=#replacement-enabled>replacement enabled</a>, and that <code><a href=#document>Document</a></code>
has the <a href=#same-origin>same origin</a> as the new <code><a href=#document>Document</a></code>,
then the <code><a href=#window>Window</a></code> object of that <code><a href=#document>Document</a></code>
must be used instead, and the <code title=dom-document><a href=#dom-document-0>document</a></code> attribute of the
<code><a href=#window>Window</a></code> object must be changed to point to the new
<code><a href=#document>Document</a></code> instead.</p>

<p>Second, the <code><a href=#document>Document</a></code>'s <a href=#active-sandboxing-flag-set>active sandboxing
flag set</a> must be populated with the union of the flags that
are present in the following <a href=#sandboxing-flag-set title="sandboxing flag
set">sandboxing flag sets</a> at the time the
<code><a href=#document>Document</a></code> object is created:</p>

<ul><li><p>If the <code><a href=#document>Document</a></code>'s <a href=#browsing-context>browsing
context</a> is a <a href=#top-level-browsing-context>top-level browsing context</a>,
then: the flags set on the <a href=#browsing-context>browsing context</a>'s
<a href=#popup-sandboxing-flag-set>popup sandboxing flag set</a>.</li>

<li><p>If the <code><a href=#document>Document</a></code>'s <a href=#browsing-context>browsing
context</a> is a <a href=#nested-browsing-context>nested browsing context</a>, then:
the flags set on the <a href=#browsing-context>browsing context</a>'s
<a href=#iframe-sandboxing-flag-set><code>iframe</code> sandboxing flag set</a>.</li>

<li><p>If the <code><a href=#document>Document</a></code>'s <a href=#browsing-context>browsing
context</a> is a <a href=#nested-browsing-context>nested browsing context</a>, then:
the flags set on the <a href=#browsing-context>browsing context</a>'s <a href=#parent-browsing-context>parent
browsing context</a>'s <a href=#active-document>active document</a>'s
<a href=#active-sandboxing-flag-set>active sandboxing flag set</a>.</li>

<li><p>The flags set on the resource's <a href=#forced-sandboxing-flag-set>forced sandboxing
flag set</a>.</li>

</ul><p>Each resource obtained by this <a href=#navigate title=navigate>navigation algorithm</a> has a <dfn id=forced-sandboxing-flag-set> forced
sandboxing flag set</dfn>, which is a <a href=#sandboxing-flag-set>sandboxing flag
set</a>. A resource by default has no flags set in its
<a href=#forced-sandboxing-flag-set>forced sandboxing flag set</a>, but other specifications
can define that certain flags are set.</p>

<p class=note>In particular, the <a href=#forced-sandboxing-flag-set>forced sandboxing flag
set</a> is used by the Content Security Policy specification.
<a href=#refsCSP>[CSP]</a></p>
is created as part of the above steps, the user agent must
additionally run the following algorithm as part of creating the
new object:</p>

<ol><li><p>Create a new <code><a href=#window>Window</a></code> object, and associate it
with the <code><a href=#document>Document</a></code>, with one exception: if the
<a href=#browsing-context>browsing context</a>'s only entry in its <a href=#session-history>session
history</a> is the <code><a href=#about:blank>about:blank</a></code>
<code><a href=#document>Document</a></code> that was added when the <a href=#browsing-context>browsing
context</a> was created, and navigation is occurring with
<a href=#replacement-enabled>replacement enabled</a>, and that <code><a href=#document>Document</a></code>
has the <a href=#same-origin>same origin</a> as the new
<code><a href=#document>Document</a></code>, then use the <code><a href=#window>Window</a></code> object of
that <code><a href=#document>Document</a></code> instead, and change the <code title=dom-document><a href=#dom-document-0>document</a></code> attribute of the
<code><a href=#window>Window</a></code> object to point to the new
<code><a href=#document>Document</a></code>.</p>

</li>
<li>

<p>Populate <code><a href=#document>Document</a></code>'s <a href=#active-sandboxing-flag-set>active sandboxing flag
set</a> with the union of the flags that are present in the
following <a href=#sandboxing-flag-set title="sandboxing flag set">sandboxing flag
sets</a> at the time the <code><a href=#document>Document</a></code> object is
created:</p>

<ul><li><p>If the <code><a href=#document>Document</a></code>'s <a href=#browsing-context>browsing
context</a> is a <a href=#top-level-browsing-context>top-level browsing context</a>,
then: the flags set on the <a href=#browsing-context>browsing context</a>'s
<a href=#popup-sandboxing-flag-set>popup sandboxing flag set</a>.</li>

<li><p>If the <code><a href=#document>Document</a></code>'s <a href=#browsing-context>browsing
context</a> is a <a href=#nested-browsing-context>nested browsing context</a>, then:
the flags set on the <a href=#browsing-context>browsing context</a>'s
<a href=#iframe-sandboxing-flag-set><code>iframe</code> sandboxing flag set</a>.</li>

<li><p>If the <code><a href=#document>Document</a></code>'s <a href=#browsing-context>browsing
context</a> is a <a href=#nested-browsing-context>nested browsing context</a>, then:
the flags set on the <a href=#browsing-context>browsing context</a>'s <a href=#parent-browsing-context>parent
browsing context</a>'s <a href=#active-document>active document</a>'s
<a href=#active-sandboxing-flag-set>active sandboxing flag set</a>.</li>

<li><p>The flags set on the resource's <a href=#forced-sandboxing-flag-set>forced sandboxing
flag set</a>.</li>

</ul><p>Each resource obtained by this <a href=#navigate title=navigate>navigation algorithm</a> has a <dfn id=forced-sandboxing-flag-set>forced
sandboxing flag set</dfn>, which is a <a href=#sandboxing-flag-set>sandboxing flag
set</a>. A resource by default has no flags set in its
<a href=#forced-sandboxing-flag-set>forced sandboxing flag set</a>, but other
specifications can define that certain flags are set.</p>

<p class=note>In particular, the <a href=#forced-sandboxing-flag-set>forced sandboxing flag
set</a> is used by the Content Security Policy specification.
<a href=#refsCSP>[CSP]</a></p>

</li>

</ol></li>

<li id=navigate-non-Document>

Expand Down
108 changes: 56 additions & 52 deletions index
Expand Up @@ -70780,59 +70780,63 @@ State: &lt;OUTPUT NAME=I&gt;1&lt;/OUTPUT&gt; &lt;INPUT VALUE="Increment" TYPE=BU

<p><dfn id=create-a-document-object title="create a Document object">Creating a new
<code>Document</code> object</dfn>: when a <code><a href=#document>Document</a></code>
is created as part of the above steps, the user agent has a couple
of additional requirements to follow as part of creating the new
object:</p>

<p>First, a new <code><a href=#window>Window</a></code> object must be created and
associated with the <code><a href=#document>Document</a></code>, with one exception: if
the <a href=#browsing-context>browsing context</a>'s only entry in its
<a href=#session-history>session history</a> is the <code><a href=#about:blank>about:blank</a></code>
<code><a href=#document>Document</a></code> that was added when the <a href=#browsing-context>browsing
context</a> was created, and navigation is occurring with
<a href=#replacement-enabled>replacement enabled</a>, and that <code><a href=#document>Document</a></code>
has the <a href=#same-origin>same origin</a> as the new <code><a href=#document>Document</a></code>,
then the <code><a href=#window>Window</a></code> object of that <code><a href=#document>Document</a></code>
must be used instead, and the <code title=dom-document><a href=#dom-document-0>document</a></code> attribute of the
<code><a href=#window>Window</a></code> object must be changed to point to the new
<code><a href=#document>Document</a></code> instead.</p>

<p>Second, the <code><a href=#document>Document</a></code>'s <a href=#active-sandboxing-flag-set>active sandboxing
flag set</a> must be populated with the union of the flags that
are present in the following <a href=#sandboxing-flag-set title="sandboxing flag
set">sandboxing flag sets</a> at the time the
<code><a href=#document>Document</a></code> object is created:</p>

<ul><li><p>If the <code><a href=#document>Document</a></code>'s <a href=#browsing-context>browsing
context</a> is a <a href=#top-level-browsing-context>top-level browsing context</a>,
then: the flags set on the <a href=#browsing-context>browsing context</a>'s
<a href=#popup-sandboxing-flag-set>popup sandboxing flag set</a>.</li>

<li><p>If the <code><a href=#document>Document</a></code>'s <a href=#browsing-context>browsing
context</a> is a <a href=#nested-browsing-context>nested browsing context</a>, then:
the flags set on the <a href=#browsing-context>browsing context</a>'s
<a href=#iframe-sandboxing-flag-set><code>iframe</code> sandboxing flag set</a>.</li>

<li><p>If the <code><a href=#document>Document</a></code>'s <a href=#browsing-context>browsing
context</a> is a <a href=#nested-browsing-context>nested browsing context</a>, then:
the flags set on the <a href=#browsing-context>browsing context</a>'s <a href=#parent-browsing-context>parent
browsing context</a>'s <a href=#active-document>active document</a>'s
<a href=#active-sandboxing-flag-set>active sandboxing flag set</a>.</li>

<li><p>The flags set on the resource's <a href=#forced-sandboxing-flag-set>forced sandboxing
flag set</a>.</li>

</ul><p>Each resource obtained by this <a href=#navigate title=navigate>navigation algorithm</a> has a <dfn id=forced-sandboxing-flag-set> forced
sandboxing flag set</dfn>, which is a <a href=#sandboxing-flag-set>sandboxing flag
set</a>. A resource by default has no flags set in its
<a href=#forced-sandboxing-flag-set>forced sandboxing flag set</a>, but other specifications
can define that certain flags are set.</p>

<p class=note>In particular, the <a href=#forced-sandboxing-flag-set>forced sandboxing flag
set</a> is used by the Content Security Policy specification.
<a href=#refsCSP>[CSP]</a></p>
is created as part of the above steps, the user agent must
additionally run the following algorithm as part of creating the
new object:</p>

<ol><li><p>Create a new <code><a href=#window>Window</a></code> object, and associate it
with the <code><a href=#document>Document</a></code>, with one exception: if the
<a href=#browsing-context>browsing context</a>'s only entry in its <a href=#session-history>session
history</a> is the <code><a href=#about:blank>about:blank</a></code>
<code><a href=#document>Document</a></code> that was added when the <a href=#browsing-context>browsing
context</a> was created, and navigation is occurring with
<a href=#replacement-enabled>replacement enabled</a>, and that <code><a href=#document>Document</a></code>
has the <a href=#same-origin>same origin</a> as the new
<code><a href=#document>Document</a></code>, then use the <code><a href=#window>Window</a></code> object of
that <code><a href=#document>Document</a></code> instead, and change the <code title=dom-document><a href=#dom-document-0>document</a></code> attribute of the
<code><a href=#window>Window</a></code> object to point to the new
<code><a href=#document>Document</a></code>.</p>

</li>
<li>

<p>Populate <code><a href=#document>Document</a></code>'s <a href=#active-sandboxing-flag-set>active sandboxing flag
set</a> with the union of the flags that are present in the
following <a href=#sandboxing-flag-set title="sandboxing flag set">sandboxing flag
sets</a> at the time the <code><a href=#document>Document</a></code> object is
created:</p>

<ul><li><p>If the <code><a href=#document>Document</a></code>'s <a href=#browsing-context>browsing
context</a> is a <a href=#top-level-browsing-context>top-level browsing context</a>,
then: the flags set on the <a href=#browsing-context>browsing context</a>'s
<a href=#popup-sandboxing-flag-set>popup sandboxing flag set</a>.</li>

<li><p>If the <code><a href=#document>Document</a></code>'s <a href=#browsing-context>browsing
context</a> is a <a href=#nested-browsing-context>nested browsing context</a>, then:
the flags set on the <a href=#browsing-context>browsing context</a>'s
<a href=#iframe-sandboxing-flag-set><code>iframe</code> sandboxing flag set</a>.</li>

<li><p>If the <code><a href=#document>Document</a></code>'s <a href=#browsing-context>browsing
context</a> is a <a href=#nested-browsing-context>nested browsing context</a>, then:
the flags set on the <a href=#browsing-context>browsing context</a>'s <a href=#parent-browsing-context>parent
browsing context</a>'s <a href=#active-document>active document</a>'s
<a href=#active-sandboxing-flag-set>active sandboxing flag set</a>.</li>

<li><p>The flags set on the resource's <a href=#forced-sandboxing-flag-set>forced sandboxing
flag set</a>.</li>

</ul><p>Each resource obtained by this <a href=#navigate title=navigate>navigation algorithm</a> has a <dfn id=forced-sandboxing-flag-set>forced
sandboxing flag set</dfn>, which is a <a href=#sandboxing-flag-set>sandboxing flag
set</a>. A resource by default has no flags set in its
<a href=#forced-sandboxing-flag-set>forced sandboxing flag set</a>, but other
specifications can define that certain flags are set.</p>

<p class=note>In particular, the <a href=#forced-sandboxing-flag-set>forced sandboxing flag
set</a> is used by the Content Security Policy specification.
<a href=#refsCSP>[CSP]</a></p>

</li>

</ol></li>

<li id=navigate-non-Document>

Expand Down

0 comments on commit 8359fee

Please sign in to comment.