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

[BUG] Missing blur and focus events #979

Closed
alexdima opened this issue Feb 13, 2020 · 2 comments · Fixed by #982
Closed

[BUG] Missing blur and focus events #979

alexdima opened this issue Feb 13, 2020 · 2 comments · Fixed by #982

Comments

@alexdima
Copy link
Member

Context:

  • Playwright Version: 0.10.0
  • Operating System: macOS 10.15.3

I'm investigating a flaky test for VS Code (microsoft/vscode#90470). Through logging, I have noticed that the root cause of the flaky test is that blur and focus events are not delivered to DOM nodes in Chromium.

Basically, in that test something like the following happens:

  • textArea1.focus()
  • document.activeElement === textArea1 (true)
  • textArea2.focus()
  • document.activeElement === textArea2 (true)

But no blur event is delivered to textArea1, document.activeElement changes without notifying the old focused element that it got blurred. I can try creating a simple repro if you want, just let me know.

What is interesting is that if I click in the page and interact with it, it's like all those events were queued up and then they all fire.

@pavelfeldman
Copy link
Member

👋 Alex

I could only repro this in the headful mode and sent out a fix.

@alexdima
Copy link
Member Author

Thank you for the very quick turnaround! ❤️

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.

2 participants