Bug 40635 - Full screen video in Safari exits full-screen if you switch to another app
Summary: Full screen video in Safari exits full-screen if you switch to another app
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other OS X 10.5
: P2 Normal
Assignee: Jer Noble
URL:
Keywords: InRadar, PlatformOnly
Depends on:
Blocks:
 
Reported: 2010-06-15 13:49 PDT by Jer Noble
Modified: 2010-06-24 16:31 PDT (History)
1 user (show)

See Also:


Attachments
Patch (3.11 KB, patch)
2010-06-15 14:04 PDT, Jer Noble
no flags Details | Formatted Diff | Diff
Patch (3.55 KB, patch)
2010-06-21 14:20 PDT, Jer Noble
eric.carlson: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jer Noble 2010-06-15 13:49:46 PDT
Full screen video in Safari exits full-screen if you switch to another app
Comment 1 Jer Noble 2010-06-15 13:51:02 PDT
If on a dual screen setup you full screen an embedded HTML5 video, and then go to the other screen and try to bring up another window, the full screen video un-full screens.
Comment 2 Jer Noble 2010-06-15 13:52:40 PDT
<rdar://problem/7885101>
Comment 3 Jer Noble 2010-06-15 14:04:48 PDT
Created attachment 58816 [details]
Patch
Comment 4 Mark Rowe (bdash) 2010-06-16 15:35:22 PDT
You’ll want to make sure that you remove the observer at some point too.
Comment 5 Jer Noble 2010-06-16 15:38:07 PDT
(In reply to comment #4)
> You’ll want to make sure that you remove the observer at some point too.

The observer is removed in -(void)dealloc, when [[NSNotificationCenter defaultCenter] removeObserver:self] is called.  This removes all observers, regardless of key and object.
Comment 6 Eric Seidel (no email) 2010-06-21 13:36:03 PDT
Attachment 58816 [details] did not build on mac:
Build output: http://webkit-commit-queue.appspot.com/results/3304529
Comment 7 Jer Noble 2010-06-21 14:20:51 PDT
Created attachment 59289 [details]
Patch
Comment 8 Eric Carlson 2010-06-24 13:13:30 PDT
Comment on attachment 59289 [details]
Patch


WebKit/mac/WebView/WebVideoFullscreenController.mm:196
 +  - (void)applicationDidResignActive:(NSNotification*)notification
Should have a space between type and *

WebKit/mac/WebView/WebVideoFullscreenController.mm:200
 +      NSWindow* fullscreenWindow = [self fullscreenWindow];
Same here
Comment 9 Jer Noble 2010-06-24 16:29:12 PDT
Committed r61796: <http://trac.webkit.org/changeset/61796>

Committed r61786: <http://trac.webkit.org/changeset/61786>
Comment 10 Jer Noble 2010-06-24 16:31:08 PDT
Disregard above comment.

Committed r61796: <http://trac.webkit.org/changeset/61796>