Bug 33741 - Fullscreen video stays visible after switching to another window
Summary: Fullscreen video stays visible after switching to another window
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar, PlatformOnly
Depends on:
Blocks:
 
Reported: 2010-01-15 14:13 PST by Adam Roben (:aroben)
Modified: 2010-03-17 17:14 PDT (History)
2 users (show)

See Also:


Attachments
Patch (1.41 KB, patch)
2010-03-15 16:47 PDT, Beth Dakin
bdakin: review-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Roben (:aroben) 2010-01-15 14:13:44 PST
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 is still visible in the background. On Mac, switching to another window in the same application is disallowed, but switching to another application causes the fullscreen video to go away. (Somewhat oddly, it comes back when you switch back to Safari!)
Comment 1 Adam Roben (:aroben) 2010-01-15 14:14:42 PST
It's possible we'll want to make the fullscreen video go away whenever you switch to another window. One reason for this is that you can currently switch back to the window that contained the webpage with the <video> element while the fullscreen video is still playing in the background, which is just weird!
Comment 2 Adam Roben (:aroben) 2010-01-15 14:15:54 PST
<rdar://problem/7547579>
Comment 3 Beth Dakin 2010-03-15 16:47:18 PDT
Created attachment 50750 [details]
Patch

This patch makes the fullscreen video totally go away in Windows when you switch to another window. If you want to see the video fullscreen again, you have to click the fullscreen button again. I think this behavior makes the most sense, but I suppose this could be a matter of debate.
Comment 4 Chris Marrin 2010-03-16 11:07:04 PDT
I looked at this a while back and on Mac, you go back to full screen when you go back to the Safari Window. I don't think it's that big of a deal personally, but I can imagine HI having issues with it.
Comment 5 Adam Roben (:aroben) 2010-03-16 11:32:23 PDT
(In reply to comment #4)
> I looked at this a while back and on Mac, you go back to full screen when you
> go back to the Safari Window. I don't think it's that big of a deal personally

I agree it's not that big of a deal. Maybe we should investigate how other software behaves on Windows in this regard.

It looks like when you switch away from a full-screen (Flash) YouTube video, the video exits full-screen mode (on both platforms).

When you switch away from a full-screen instance of Windows Media Player, the video exits full-screen mode.

When you switch away from a full-screen instance of QuickTime Player (on Windows), the video remains in full-screen mode.

The Flash YouTube example seems the most applicable, since it's the only other case that has a "source" window that the video originated from (and is still present in in non-full-screen mode). But that doesn't mean we necessarily want to copy Flash's behavior.
Comment 6 Beth Dakin 2010-03-17 17:13:54 PDT
Comment on attachment 50750 [details]
Patch

We talked this out over email, and we decided to keep the current behavior for the time being.