Skip to content

Commit

Permalink
Define Window's opener when there's no browsing context
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk authored Mar 4, 2019
1 parent 552ef78 commit 7c9a8c0
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -77563,25 +77563,30 @@ dictionary <dfn>DragEventInit</dfn> : <span>MouseEventInit</span> {
steps:</p>

<ol>
<li><p>If the current <span>browsing context</span>'s <span>disowned</span> is true, then return
null.</p></li>
<li><p>Let <var>current</var> be this <code>Window</code> object's <span data-x="window
bc">browsing context</span>.</p></li>

<li><p>If the current <span>browsing context</span>'s <span>opener browsing context</span> is
null, then return null.</p></li>
<li><p>If <var>current</var> is null, then return null.</p></li>

<li><p>If <var>current</var>'s <span>disowned</span> is true, then return null.</p></li>

<li><p>If <var>current</var>'s <span>opener browsing context</span> is null, then return
null.</p></li>

<li><p>Return the current <span>browsing context</span>'s <span>opener browsing context</span>'s
<li><p>Return <var>current</var>'s <span>opener browsing context</span>'s
<code>WindowProxy</code> object.</p></li>
</ol>

<p>The <code data-x="dom-opener">opener</code> attribute's setter must run these steps:</p>

<ol>
<li><p>If the given value is null, then set the current <span>browsing context</span>'s
<span>disowned</span> to true and return.</p></li>
<li><p>If the given value is null and this <code>Window</code> object's <span data-x="window
bc">browsing context</span> is non-null, then set this <code>Window</code> object's <span
data-x="window bc">browsing context</span>'s <span>disowned</span> to true.</p></li>

<li><p>Return ? <span>OrdinaryDefineOwnProperty</span>(this <code>Window</code> object, "<code
data-x="">opener</code>", { [[Value]]: the given value, [[Writable]]: true, [[Enumerable]]: true,
[[Configurable]]: true }).</p></li>
<li><p>If the given value is non-null, then return ? <span>OrdinaryDefineOwnProperty</span>(this
<code>Window</code> object, "<code data-x="">opener</code>", { [[Value]]: the given value,
[[Writable]]: true, [[Enumerable]]: true, [[Configurable]]: true }).</p></li>
</ol>

<div class="note">
Expand Down

0 comments on commit 7c9a8c0

Please sign in to comment.