| Index: Source/WebKit/mac/WebView/WebView.mm
|
| ===================================================================
|
| --- Source/WebKit/mac/WebView/WebView.mm (revision 113078)
|
| +++ Source/WebKit/mac/WebView/WebView.mm (working copy)
|
| @@ -6284,9 +6284,14 @@
|
| #if ENABLE(FULLSCREEN_API)
|
| - (BOOL)_supportsFullScreenForElement:(const WebCore::Element*)element withKeyboard:(BOOL)withKeyboard
|
| {
|
| + if (withKeyboard)
|
| + return NO;
|
| +
|
| if (![[WebPreferences standardPreferences] fullScreenEnabled])
|
| return NO;
|
|
|
| + // FIXME: If the element is in an IFrame, we should ensure it has
|
| + // an AllowsFullScreen=YES attribute before allowing fullscreen access.
|
| return YES;
|
| }
|
|
|
|
|