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

Add tests for focusing different-site iframes by click #25541

Open
hsivonen opened this issue Sep 15, 2020 · 2 comments
Open

Add tests for focusing different-site iframes by click #25541

hsivonen opened this issue Sep 15, 2020 · 2 comments

Comments

@hsivonen
Copy link
Member

We should have some tests for the event sequence when focusing a different-site iframe by clicking inside it.

At present, my hypothesis is that the Web doesn't require the JS-observable focus event to fire from the same event loop task as the JS-observable user input event that caused the focusing, e.g. mousedown.

@mfreed7, do you know if Chrome guarantees anything about same or different task here, especially in the case where an out-of-process iframe doesn't have focus and gets focused by click? Any lore on whether there are Web compat constraints on this? (At present, Firefox fires the events from the same task in the in-process case and from different tasks in the out-of-process case.)

@josepharhar
Copy link
Contributor

Are the focus and mousedown events of interest being fired on the iframe element in the parent page, or being fired on the document/window inside the cross origin iframe?

I don't think we have any historical context on this functionality right now.

@hsivonen
Copy link
Member Author

@josepharhar, I meant the events fired in the document/window inside the cross-origin iframe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants