Skip to content
Permalink
Browse files

[giow] (3) Change iframe, frame, and object.contentDocument to return…

… null when cross-origin documents are involved.

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

git-svn-id: http://svn.whatwg.org/webapps@8272 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
Hixie committed Nov 12, 2013
1 parent ffe373b commit 3bc328b234cc4cba2cc64ec64850dfa1d7c4d508
Showing with 30 additions and 12 deletions.
  1. +10 −4 complete.html
  2. +10 −4 index
  3. +10 −4 source

<p>The <dfn id=dom-iframe-contentdocument title=dom-iframe-contentDocument><code>contentDocument</code></dfn> IDL attribute
must return the <code><a href=#document>Document</a></code> object of the <a href=#active-document>active document</a> of the
<code><a href=#the-iframe-element>iframe</a></code> element's <a href=#nested-browsing-context>nested browsing context</a>, if any, or null otherwise.</p>
<code><a href=#the-iframe-element>iframe</a></code> element's <a href=#nested-browsing-context>nested browsing context</a>, if any and if its
<a href=#effective-script-origin>effective script origin</a> is the <a href=#same-origin>same origin</a> as the <a href=#effective-script-origin>effective script
origin</a> specified by the <a href=#incumbent-settings-object>incumbent settings object</a>, or null otherwise.</p>

<p>The <dfn id=dom-iframe-contentwindow title=dom-iframe-contentWindow><code>contentWindow</code></dfn> IDL attribute must
return the <code><a href=#windowproxy>WindowProxy</a></code> object of the <code><a href=#the-iframe-element>iframe</a></code> element's <a href=#nested-browsing-context>nested

<p>The <dfn id=dom-object-contentdocument title=dom-object-contentDocument><code>contentDocument</code></dfn> IDL attribute
must return the <code><a href=#document>Document</a></code> object of the <a href=#active-document>active document</a> of the
<code><a href=#the-object-element>object</a></code> element's <a href=#nested-browsing-context>nested browsing context</a>, if it has one; otherwise, it
must return null.</p>
<code><a href=#the-object-element>object</a></code> element's <a href=#nested-browsing-context>nested browsing context</a>, if any and if its
<a href=#effective-script-origin>effective script origin</a> is the <a href=#same-origin>same origin</a> as the <a href=#effective-script-origin>effective script
origin</a> specified by the <a href=#incumbent-settings-object>incumbent settings object</a>, or null otherwise.</p>

<p>The <dfn id=dom-object-contentwindow title=dom-object-contentWindow><code>contentWindow</code></dfn> IDL attribute must
return the <code><a href=#windowproxy>WindowProxy</a></code> object of the <code><a href=#the-object-element>object</a></code> element's <a href=#nested-browsing-context>nested

<p>The <dfn id=dom-frame-contentdocument title=dom-frame-contentDocument><code>contentDocument</code></dfn> IDL attribute of
the <code><a href=#frame>frame</a></code> element must return the <code><a href=#document>Document</a></code> object of the <a href=#active-document>active
document</a> of the <code><a href=#frame>frame</a></code> element's <a href=#nested-browsing-context>nested browsing context</a>.</p>
document</a> of the <code><a href=#frame>frame</a></code> element's <a href=#nested-browsing-context>nested browsing context</a>, if any
and if its <a href=#effective-script-origin>effective script origin</a> is the <a href=#same-origin>same origin</a> as the
<a href=#effective-script-origin>effective script origin</a> specified by the <a href=#incumbent-settings-object>incumbent settings object</a>, or
null otherwise.</p>

<p>The <dfn id=dom-frame-contentwindow title=dom-frame-contentWindow><code>contentWindow</code></dfn> IDL attribute must
return the <code><a href=#windowproxy>WindowProxy</a></code> object of the <code><a href=#frame>frame</a></code> element's <a href=#nested-browsing-context>nested
14 index

<p>The <dfn id=dom-iframe-contentdocument title=dom-iframe-contentDocument><code>contentDocument</code></dfn> IDL attribute
must return the <code><a href=#document>Document</a></code> object of the <a href=#active-document>active document</a> of the
<code><a href=#the-iframe-element>iframe</a></code> element's <a href=#nested-browsing-context>nested browsing context</a>, if any, or null otherwise.</p>
<code><a href=#the-iframe-element>iframe</a></code> element's <a href=#nested-browsing-context>nested browsing context</a>, if any and if its
<a href=#effective-script-origin>effective script origin</a> is the <a href=#same-origin>same origin</a> as the <a href=#effective-script-origin>effective script
origin</a> specified by the <a href=#incumbent-settings-object>incumbent settings object</a>, or null otherwise.</p>

<p>The <dfn id=dom-iframe-contentwindow title=dom-iframe-contentWindow><code>contentWindow</code></dfn> IDL attribute must
return the <code><a href=#windowproxy>WindowProxy</a></code> object of the <code><a href=#the-iframe-element>iframe</a></code> element's <a href=#nested-browsing-context>nested

<p>The <dfn id=dom-object-contentdocument title=dom-object-contentDocument><code>contentDocument</code></dfn> IDL attribute
must return the <code><a href=#document>Document</a></code> object of the <a href=#active-document>active document</a> of the
<code><a href=#the-object-element>object</a></code> element's <a href=#nested-browsing-context>nested browsing context</a>, if it has one; otherwise, it
must return null.</p>
<code><a href=#the-object-element>object</a></code> element's <a href=#nested-browsing-context>nested browsing context</a>, if any and if its
<a href=#effective-script-origin>effective script origin</a> is the <a href=#same-origin>same origin</a> as the <a href=#effective-script-origin>effective script
origin</a> specified by the <a href=#incumbent-settings-object>incumbent settings object</a>, or null otherwise.</p>

<p>The <dfn id=dom-object-contentwindow title=dom-object-contentWindow><code>contentWindow</code></dfn> IDL attribute must
return the <code><a href=#windowproxy>WindowProxy</a></code> object of the <code><a href=#the-object-element>object</a></code> element's <a href=#nested-browsing-context>nested

<p>The <dfn id=dom-frame-contentdocument title=dom-frame-contentDocument><code>contentDocument</code></dfn> IDL attribute of
the <code><a href=#frame>frame</a></code> element must return the <code><a href=#document>Document</a></code> object of the <a href=#active-document>active
document</a> of the <code><a href=#frame>frame</a></code> element's <a href=#nested-browsing-context>nested browsing context</a>.</p>
document</a> of the <code><a href=#frame>frame</a></code> element's <a href=#nested-browsing-context>nested browsing context</a>, if any
and if its <a href=#effective-script-origin>effective script origin</a> is the <a href=#same-origin>same origin</a> as the
<a href=#effective-script-origin>effective script origin</a> specified by the <a href=#incumbent-settings-object>incumbent settings object</a>, or
null otherwise.</p>

<p>The <dfn id=dom-frame-contentwindow title=dom-frame-contentWindow><code>contentWindow</code></dfn> IDL attribute must
return the <code><a href=#windowproxy>WindowProxy</a></code> object of the <code><a href=#frame>frame</a></code> element's <a href=#nested-browsing-context>nested
14 source

<p>The <dfn data-x="dom-iframe-contentDocument"><code>contentDocument</code></dfn> IDL attribute
must return the <code>Document</code> object of the <span>active document</span> of the
<code>iframe</code> element's <span>nested browsing context</span>, if any, or null otherwise.</p>
<code>iframe</code> element's <span>nested browsing context</span>, if any and if its
<span>effective script origin</span> is the <span>same origin</span> as the <span>effective script
origin</span> specified by the <span>incumbent settings object</span>, or null otherwise.</p>

<p>The <dfn data-x="dom-iframe-contentWindow"><code>contentWindow</code></dfn> IDL attribute must
return the <code>WindowProxy</code> object of the <code>iframe</code> element's <span>nested

<p>The <dfn data-x="dom-object-contentDocument"><code>contentDocument</code></dfn> IDL attribute
must return the <code>Document</code> object of the <span>active document</span> of the
<code>object</code> element's <span>nested browsing context</span>, if it has one; otherwise, it
must return null.</p>
<code>object</code> element's <span>nested browsing context</span>, if any and if its
<span>effective script origin</span> is the <span>same origin</span> as the <span>effective script
origin</span> specified by the <span>incumbent settings object</span>, or null otherwise.</p>

<p>The <dfn data-x="dom-object-contentWindow"><code>contentWindow</code></dfn> IDL attribute must
return the <code>WindowProxy</code> object of the <code>object</code> element's <span>nested

<p>The <dfn data-x="dom-frame-contentDocument"><code>contentDocument</code></dfn> IDL attribute of
the <code>frame</code> element must return the <code>Document</code> object of the <span>active
document</span> of the <code>frame</code> element's <span>nested browsing context</span>.</p>
document</span> of the <code>frame</code> element's <span>nested browsing context</span>, if any
and if its <span>effective script origin</span> is the <span>same origin</span> as the
<span>effective script origin</span> specified by the <span>incumbent settings object</span>, or
null otherwise.</p>

<p>The <dfn data-x="dom-frame-contentWindow"><code>contentWindow</code></dfn> IDL attribute must
return the <code>WindowProxy</code> object of the <code>frame</code> element's <span>nested

0 comments on commit 3bc328b

Please sign in to comment.
You can’t perform that action at this time.