Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Fix: Accessing window.top.{constructor|prototype} from a frame throws error in iOS #445

Merged
merged 1 commit into from
Jul 11, 2017

Conversation

tomgasson
Copy link
Contributor

Prevent accessing window.top so that no security errors are thrown when es5-shim is used in an iframe from a different domain

Copy link
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exclude window.top so that no security errors are thrown when es5-shim is used in an iframe from a
different domain
@tomgasson
Copy link
Contributor Author

I added the test

Copy link
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ljharb ljharb merged commit d25c446 into es-shims:master Jul 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants