Index: Source/core/dom/Element.cpp |
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp |
index da33f26b5e37b125e42942e8c6ab43d2684a74a3..00640104fdb990dca72713e154c5e5a1d0a1ab36 100644 |
--- a/Source/core/dom/Element.cpp |
+++ b/Source/core/dom/Element.cpp |
@@ -2666,12 +2666,17 @@ void Element::setFloatingPointAttribute(const QualifiedName& attributeName, doub |
void Element::webkitRequestFullscreen() |
{ |
- FullscreenElementStack::from(document()).requestFullScreenForElement(*this, ALLOW_KEYBOARD_INPUT, FullscreenElementStack::EnforceIFrameAllowFullScreenRequirement); |
+ FullscreenElementStack::from(document()).requestFullScreenForElement(*this, FullscreenElementStack::PrefixedRequest); |
} |
void Element::webkitRequestFullScreen(unsigned short flags) |
{ |
- FullscreenElementStack::from(document()).requestFullScreenForElement(*this, (flags | LEGACY_MOZILLA_REQUEST), FullscreenElementStack::EnforceIFrameAllowFullScreenRequirement); |
+ FullscreenElementStack::RequestType requestType; |
+ if (flags & ALLOW_KEYBOARD_INPUT) |
+ requestType = FullscreenElementStack::PrefixedMozillaAllowKeyboardInputRequest; |
+ else |
+ requestType = FullscreenElementStack::PrefixedMozillaRequest; |
+ FullscreenElementStack::from(document()).requestFullScreenForElement(*this, requestType); |
} |
void Element::setContainsFullScreenElement(bool flag) |