1. Go to a page with <video controls>
2. Click the fullscreen button in the video's controls
3. Switch to another window via Alt-Tab (e.g., the Safari window that contained the <video>)
The fullscreen video's HUD stays on screen, on top of whatever window you've just switched to.
Created attachment 50556 [details]
Comment on attachment 50556 [details]
> void FullscreenVideoController::draw()
> + HWND foregroundWindow = GetForegroundWindow();
> + if (foregroundWindow == m_videoWindow)
> + createHUDWindow();
> + else if (foregroundWindow != m_hudWindow)
> + destroyHUDWindow();
After this, I think you should assert that m_hudWindow is non-null. And maybe you should bail if it is null, in release builds.
Created attachment 50631 [details]
Adam and I discussed a better way to do this on IRC!
Comment on attachment 50631 [details]
Fixed with r55942.