Skip to content

Commit 6031e3a

Browse files
annevkdomenic
authored andcommitted
Make crossOriginObject.then undefined for promises
This allows promises to work better with cross-origin WindowProxy and Location objects. Fixes whatwg/dom#536.
1 parent d95235b commit 6031e3a

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

source

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77837,13 +77837,6 @@ console.assert(iframeWindow.frameElement === null);
7783777837
caller needs to throw a <span>"<code>SecurityError</code>"</span> <code>DOMException</code>.</p>
7783877838

7783977839
<ol>
77840-
<li><p>If <var>P</var> is <span>@@toStringTag</span>, <span>@@hasInstance</span>, or
77841-
<span>@@isConcatSpreadable</span>, then return <span>PropertyDescriptor</span>{
77842-
[[Value]]: undefined,
77843-
[[Writable]]: false,
77844-
[[Enumerable]]: false,
77845-
[[Configurable]]: true }.</p></li>
77846-
7784777840
<li><p>Let <var>crossOriginKey</var> be a tuple consisting of the <span>current settings
7784877841
object</span>, <var>O</var>'s <span>relevant settings object</span>, and <var>P</var>.</p></li>
7784977842

@@ -77919,6 +77912,14 @@ console.assert(iframeWindow.frameElement === null);
7791977912
</ol>
7792077913
</li>
7792177914

77915+
<li><p>If <var>P</var> is "<code data-x="">then</code>", <span>@@toStringTag</span>,
77916+
<span>@@hasInstance</span>, or <span>@@isConcatSpreadable</span>, then return
77917+
<span>PropertyDescriptor</span>{
77918+
[[Value]]: undefined,
77919+
[[Writable]]: false,
77920+
[[Enumerable]]: false,
77921+
[[Configurable]]: true }.</p></li>
77922+
7792277923
<li><p>Return undefined.</p></li>
7792377924
</ol>
7792477925

@@ -77991,6 +77992,10 @@ console.assert(iframeWindow.frameElement === null);
7799177992
</ol>
7799277993
</li>
7799377994

77995+
<li><p>If <var>keys</var> <span data-x="list contains">does not contain</span> "<code
77996+
data-x="">then</code>", then <span data-x="list append">append</span> "<code
77997+
data-x="">then</code>" to <var>keys</var>.</p></li>
77998+
7799477999
<li><p>Return the concatenation of <var>keys</var> and « <span>@@toStringTag</span>,
7799578000
<span>@@hasInstance</span>, <span>@@isConcatSpreadable</span> ».</p></li>
7799678001
</ol>

0 commit comments

Comments
 (0)