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 failing FF tests #388

Closed
bantic opened this issue May 10, 2016 · 0 comments · Fixed by #389
Closed

fix failing FF tests #388

bantic opened this issue May 10, 2016 · 0 comments · Fixed by #389
Assignees

Comments

@bantic
Copy link
Collaborator

bantic commented May 10, 2016

Firefox changed its behavior when focusing a content editable element in version 46, and this is causing the SauceLabs tests to fail. When we render the editor in a browser window that is not active, if options.autofocus is true, the editor focuses its element. In Chrome, Safari, and previous versions of Firefox this makes the element the document.activeElement and also sets the Selection at the end of its content. In newer Firefox window.getSelection === document.body, rather than the expected text node at the end of the editor's element. This causes a number of tests to fail at SauceLabs on Firefox because it does not appear to be the frontmost/active window while tests are running.

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 a pull request may close this issue.

1 participant