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

Make window.name deal with lack of browsing context #4366

Merged
merged 2 commits into from
Feb 19, 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
25 changes: 21 additions & 4 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -78750,10 +78750,27 @@ dictionary <dfn>WindowPostMessageOptions</dfn> : <span>PostMessageOptions</span>

<hr>

<p>The <dfn><code data-x="dom-name">name</code></dfn> attribute of the <code>Window</code> object
must, on getting, return the current <span data-x="browsing context name">name</span> of the
<span>browsing context</span>; and, on setting, set the <span data-x="browsing context
name">name</span> of the <span>browsing context</span> to the new value.</p>
<p>The <dfn><code data-x="dom-name">name</code></dfn> attribute's getter, when invoked, must run
these steps:</p>

<ol>
<li><p>If this <code>Window</code> object's <span data-x="window bc">browsing context</span> is
null, then return the empty string.</p></li>

<li><p>Return this <code>Window</code> object's <span data-x="window bc">browsing
context</span>'s <span data-x="browsing context name">name</span>.</p></li>
</ol>

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

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

<li><p>Set this <code>Window</code> object's <span data-x="window bc">browsing context</span>'s
<span data-x="browsing context name">name</span> to the given value.</p></li>
</ol>

<p class="note">The name <a href="#resetBCName">gets reset</a> when the browsing context is
<span data-x="navigate">navigated</span> to another <span>origin</span>.</p>
Expand Down