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

Maybe it is not a proper way to create object with null prototype with using Iframe #727

Closed
aleen42 opened this issue Dec 13, 2019 · 4 comments

Comments

@aleen42
Copy link
Contributor

aleen42 commented Dec 13, 2019

Recently, I have found that when I used IE11 to simulate IE8, and required core-js/stable in an iframe, it throwed an error specifiying that iframe.contentWindow was not asscessible when the script was run in an iframe, where scripts were not allowed to execute.

I set the iframe with sandbox="allow-scripts", but it seemed that IE 11 did not acted like what I expected. In true IE8, sandbox is not worked, and there is no problem when accessing iframe.contentWindow. Therefore, is there any alternative to create Object with null prototype without using iframe?

@zloirock
Copy link
Owner

Could you propose a better alternative? I don't see anything.

@zloirock
Copy link
Owner

zloirock commented Dec 13, 2019

We could try to add a ActiveXObject-based workaround, es-shims/es5-shim#150.

@zloirock
Copy link
Owner

You could play with it and add a PR.

@aleen42
Copy link
Contributor Author

aleen42 commented Dec 14, 2019

OK, I'll try it later and create a PR for it

aleen42 pushed a commit to aleen42/core-js that referenced this issue Dec 14, 2019
aleen42 added a commit to aleen42/core-js that referenced this issue Dec 14, 2019
aleen42 added a commit to aleen42/core-js that referenced this issue Dec 14, 2019
aleen42 added a commit to aleen42/core-js that referenced this issue Dec 14, 2019
aleen42 added a commit to aleen42/core-js that referenced this issue Dec 14, 2019
aleen42 added a commit to aleen42/core-js that referenced this issue Dec 14, 2019
aleen42 added a commit to aleen42/core-js that referenced this issue Dec 14, 2019
aleen42 added a commit to aleen42/core-js that referenced this issue Dec 14, 2019
aleen42 added a commit to aleen42/core-js that referenced this issue Dec 14, 2019
aleen42 added a commit to aleen42/core-js that referenced this issue Dec 14, 2019
aleen42 added a commit to aleen42/core-js that referenced this issue Dec 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants