Skip to content

Conversation

ryanseddon
Copy link

All browsers except chrome have timing issues when dynamically creating and injecting content inside an iframe, see blog post if you're interested in why. Boils down to waiting for the readyState to be complete before appending to the DOM.

All tests pass in Firefox except 2, not sure how to fix these so any help would be good.

screen shot 2015-02-05 at 8 38 47 pm

I also changed the use of innerText to textContent as Firefox refused to render the CSS string and in Chrome it added a bunch of <br> tags and somehow the CSS parser is forgiving enough to still work!

screen shot 2015-02-05 at 8 44 35 pm

@vjeux
Copy link
Contributor

vjeux commented Feb 5, 2015

Thanks! I couldn't figure out a reliable way to avoid the timing issues :)

vjeux added a commit that referenced this pull request Feb 5, 2015
Fix firefox iframe timing issue in test runners, fixes #25
@vjeux vjeux merged commit b95cb8d into facebook:master Feb 5, 2015
@vjeux vjeux mentioned this pull request Feb 10, 2015
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.

2 participants