Skip to content

Commit c0d2a32

Browse files
annevkfoolip
authored andcommitted
Make document.domain's getter not conditonal on a browsing context
Tests: ... Fixes #1794 and fixes #2697.
1 parent 85e1e72 commit c0d2a32

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

source

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79701,11 +79701,8 @@ interface <dfn>BarProp</dfn> {
7970179701
these steps:</p>
7970279702

7970379703
<ol>
79704-
<li><p>If this <code>Document</code> object does not have a <span
79705-
data-x="concept-document-bc">browsing context</span>, then return the empty string.
79706-
79707-
<li><p>Let <var>effectiveDomain</var> be this <code>Document</code>'s <span>origin</span>'s <span
79708-
data-x="concept-origin-effective-domain">effective domain</span>.
79704+
<li><p>Let <var>effectiveDomain</var> be this <code>Document</code> object's
79705+
<span>origin</span>'s <span data-x="concept-origin-effective-domain">effective domain</span>.
7970979706

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

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

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

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

0 commit comments

Comments
 (0)