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

focus / blur events aren't dispatched on `window` and `document` objects #11526

Closed
Gozala opened this issue May 31, 2016 · 3 comments
Closed

focus / blur events aren't dispatched on `window` and `document` objects #11526

Gozala opened this issue May 31, 2016 · 3 comments
Labels

Comments

@Gozala
Copy link
Contributor

@Gozala Gozala commented May 31, 2016

Here is an example to reproduce it:

https://output.jsbin.com/picawu/3

This is either regression since focus / blur used to be dispatched on the document, or it could be that @paulrouget had a patch for this that did not end up in upstream.

P.S.: Webkit dispatches focus / blur only on window while gecko dispatches them on both window and document.

@jdm
Copy link
Member

@jdm jdm commented May 31, 2016

@Gozala When do you expect these to be fired for browser.html?

@jdm jdm added the A-content/dom label May 31, 2016
@Gozala
Copy link
Contributor Author

@Gozala Gozala commented May 31, 2016

@Gozala When do you expect these to be fired for browser.html?

I expect blur events to be dispatched when servo window looses a focus (say you switch to your editor window), then if you switch back to servo window I'd expect focus event should be dispatched.

@jdm
Copy link
Member

@jdm jdm commented May 31, 2016

This sounds like #9482, in that case.

@jdm jdm closed this May 31, 2016
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
2 participants
You can’t perform that action at this time.