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

Inner document of iframe is null #16270

Closed
zarazek opened this issue Apr 5, 2017 · 3 comments
Closed

Inner document of iframe is null #16270

zarazek opened this issue Apr 5, 2017 · 3 comments

Comments

@zarazek
Copy link
Contributor

@zarazek zarazek commented Apr 5, 2017

I'm getting null when accessing document property of iframe. The same code on Firefox works correctly (it returns HTMLDocument object).
test.zip

@KiChjang
Copy link
Member

@KiChjang KiChjang commented Apr 5, 2017

Can you show us the JS code that you've used to access the document property? My guess is that the iframe is cross-origin, which we don't support yet.

@zarazek
Copy link
Contributor Author

@zarazek zarazek commented Apr 5, 2017

I attached the file with html and js code to the first comment.

@jdm
Copy link
Member

@jdm jdm commented Apr 5, 2017

Yes, this behaves as described when run from a file:// URL (where every URL is cross-origin), but works as expected when run from an http:// URL (where the iframe is same-origin). This is a symptom of #15233, so I'll close it in favour of that. Thanks for reporting it!

@jdm jdm closed this Apr 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.