To reproduce: 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.
<rdar://problem/7547574>
Created attachment 50556 [details] Patch
Comment on attachment 50556 [details] Patch > 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. r=me
Created attachment 50631 [details] New patch Adam and I discussed a better way to do this on IRC!
Comment on attachment 50631 [details] New patch r=me!
Fixed with r55942.