Skip to content

No way to resolve a Promise with a cross domain WindowProxy #536

Closed
@esprehn

Description

@esprehn

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:

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions