[Mac] PiP window can get "stuck" if PiP is closed while Safari window is minimized.
[WebKit-https.git] / Source / WebCore / Modules / modern-media-controls / media / media-controller.js
index 18fa91e..6753ba9 100644 (file)
@@ -284,7 +284,7 @@ class MediaController
     _returnMediaLayerToInlineIfNeeded()
     {
         if (this.host)
-            window.requestAnimationFrame(() => this.host.setPreparedToReturnVideoLayerToInline(this.media.webkitPresentationMode !== PiPMode));
+            this.host.setPreparedToReturnVideoLayerToInline(this.media.webkitPresentationMode !== PiPMode);
     }
 
     _controlsClassForLayoutTraits(layoutTraits)