Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Embeds: Detect focus on embed sandbox #4011
This pull request seeks to improve the behavior of focusing embed blocks, allowing block selection by clicking on the embed.
Detecting click events on iframe is not normally possible, but this uses a technique to detect blur from the host window and whether at the point of blur the active element is the iframe, inferring that this implies that the iframe has received focus.
Verify that clicking an embed block selects it.