Index: Source/core/html/HTMLMediaElement.cpp |
diff --git a/Source/core/html/HTMLMediaElement.cpp b/Source/core/html/HTMLMediaElement.cpp |
index f66f59c4422ba466b0ee4f8c44bcdb3692db78c2..e78e631d106e9f765ceb364727108fa3e4fedde0 100644 |
--- a/Source/core/html/HTMLMediaElement.cpp |
+++ b/Source/core/html/HTMLMediaElement.cpp |
@@ -2782,7 +2782,7 @@ void HTMLMediaElement::mediaPlayerRequestFullscreen() |
// user interaction or when it is technically required to play the video. |
UserGestureIndicator gestureIndicator(DefinitelyProcessingNewUserGesture); |
- Fullscreen::from(document()).requestFullscreen(*this, Fullscreen::InternalVideoRequest); |
+ enterFullscreen(); |
} |
void HTMLMediaElement::mediaPlayerRequestSeek(double time) |
@@ -3140,6 +3140,20 @@ bool HTMLMediaElement::isFullscreen() const |
return Fullscreen::isActiveFullScreenElement(*this); |
} |
+void HTMLMediaElement::enterFullscreen() |
+{ |
+ WTF_LOG(Media, "HTMLMediaElement::enterFullscreen(%p)", this); |
+ |
+ Fullscreen::from(document()).requestFullscreen(*this, Fullscreen::PrefixedVideoRequest); |
+} |
+ |
+void HTMLMediaElement::exitFullscreen() |
+{ |
+ WTF_LOG(Media, "HTMLMediaElement::exitFullscreen(%p)", this); |
+ |
+ Fullscreen::from(document()).exitFullscreen(); |
+} |
+ |
void HTMLMediaElement::didBecomeFullscreenElement() |
{ |
if (mediaControls()) |