Skip to content

Commit

Permalink
Make document.domain's getter not conditonal on a browsing context
Browse files Browse the repository at this point in the history
Tests: ...

Fixes #1794 and fixes #2697.
  • Loading branch information
annevk authored and foolip committed Jun 11, 2018
1 parent 85e1e72 commit c0d2a32
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -79701,11 +79701,8 @@ interface <dfn>BarProp</dfn> {
these steps:</p>

<ol>
<li><p>If this <code>Document</code> object does not have a <span
data-x="concept-document-bc">browsing context</span>, then return the empty string.

<li><p>Let <var>effectiveDomain</var> be this <code>Document</code>'s <span>origin</span>'s <span
data-x="concept-origin-effective-domain">effective domain</span>.
<li><p>Let <var>effectiveDomain</var> be this <code>Document</code> object's
<span>origin</span>'s <span data-x="concept-origin-effective-domain">effective domain</span>.

<li><p>If <var>effectiveDomain</var> is null, then return the empty string.</p></li>

Expand All @@ -79726,8 +79723,8 @@ interface <dfn>BarProp</dfn> {
flag</span> set, then throw a <span>"<code>SecurityError</code>"</span>
<code>DOMException</code>.</p></li>

<li><p>Let <var>effectiveDomain</var> be this <code>Document</code>'s <span>origin</span>'s <span
data-x="concept-origin-effective-domain">effective domain</span>.
<li><p>Let <var>effectiveDomain</var> be this <code>Document</code> object's
<span>origin</span>'s <span data-x="concept-origin-effective-domain">effective domain</span>.

<li><p>If <var>effectiveDomain</var> is null, then throw a
<span>"<code>SecurityError</code>"</span> <code>DOMException</code>.</p></li>
Expand Down

0 comments on commit c0d2a32

Please sign in to comment.