Bug 119415 - [Windows] WebKit1 Full Screen Video Play on Windows is Broken
Summary: [Windows] WebKit1 Full Screen Video Play on Windows is Broken
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC All
: P2 Normal
Assignee: Brent Fulgham
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-01 15:43 PDT by Brent Fulgham
Modified: 2013-08-01 17:05 PDT (History)
5 users (show)

See Also:


Attachments
Patch (15.26 KB, patch)
2013-08-01 16:02 PDT, Brent Fulgham
jer.noble: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brent Fulgham 2013-08-01 15:43:40 PDT
Switching to "Full Screen" mode while playing a video in WinLauncher does not work.  Video renders as a blank, red, screen.  Moving back to normal move leaves the player screen blank (though captions and audio still play).
Comment 1 Brent Fulgham 2013-08-01 15:45:18 PDT
<rdar://problem/14498362>
Comment 2 Brent Fulgham 2013-08-01 16:02:17 PDT
Created attachment 207967 [details]
Patch
Comment 3 Jer Noble 2013-08-01 16:45:49 PDT
Comment on attachment 207967 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=207967&action=review

> Source/WebCore/platform/graphics/ca/win/WKCACFViewLayerTreeHost.h:42
> +    virtual bool manualCreateRenderer() { return createRenderer(); }
> +

We should just make createRenderer() public rather than make a public alias.

> Source/WebCore/platform/graphics/win/MediaPlayerPrivateFullscreenWindow.cpp:82
> -    ::CreateWindowExW(WS_EX_TOOLWINDOW, windowClassName, L"", WS_POPUP, 
> +    m_hwnd = ::CreateWindowExW(WS_EX_TOOLWINDOW, windowClassName, L"", WS_POPUP, 

This isn't necessary as m_hwnd will be set in a WM_CREATE message during this call. (That's what the ASSERT below is checking.)

Other than those nits, LGTM.
Comment 4 Brent Fulgham 2013-08-01 17:05:56 PDT
Committed r153628: <http://trac.webkit.org/changeset/153628>