Skip to content

Commit

Permalink
Make window.name deal with lack of browsing context
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Feb 19, 2019
1 parent 4fe0ac1 commit c07b4b7
Showing 1 changed file with 21 additions and 4 deletions.
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 does not have an associated <span>browsing
context</span>, then return the empty string.</p></li>

<li><p>Return this <code>Window</code> object's associated <span>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 does not have an associated <span>browsing
context</span>, then return.</p></li>

<li><p>Set this <code>Window</code> object's associated <span>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

0 comments on commit c07b4b7

Please sign in to comment.