[whatwg/dom] No way to resolve a Promise with a cross domain WindowProxy (#536)

Since resolving a promise looks for a thenable and accessing the `then` property on a cross domain WindowProxy throws you can't do something like:

```js
const loadFrame = (src) => new Promise((resolve) => {
  frame.src = src;
  frame.onload = () => resolve(frame.contentWindow);
});
```

Perhaps cross domain WindowProxy objects should allow accessing `then` and have it always be undefined?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/536

Received on Wednesday, 15 November 2017 07:12:27 UTC