REGRESSION(r233926): media/modern-media-controls/media-controller/media-controller...
[WebKit-https.git] / Source / WebCore / html / HTMLMediaElement.cpp
index 409052e..44bca6b 100644 (file)
@@ -5958,7 +5958,9 @@ void HTMLMediaElement::exitFullscreen()
     if (document().settings().fullScreenEnabled() && document().webkitCurrentFullScreenElement() == this) {
         if (document().webkitIsFullScreen())
             document().webkitCancelFullScreen();
-        return;
+
+        if (m_videoFullscreenMode == VideoFullscreenModeStandard)
+            return;
     }
 #endif