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

Define Window's opener when there's no browsing context #4379

Merged
merged 3 commits into from
Mar 4, 2019
Merged
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
27 changes: 16 additions & 11 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -77505,25 +77505,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 <var>current</var> is null, then return null.</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>'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>
<p>The <code data-x="dom-opener">opener</code> attribute's setter must run these steps:</p>
annevk marked this conversation as resolved.
Show resolved Hide resolved

<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