Title: [241878] branches/safari-607-branch/Source/WebCore
Revision
241878
Author
[email protected]
Date
2019-02-21 13:26:42 -0800 (Thu, 21 Feb 2019)

Log Message

Cherry-pick r241492. rdar://problem/48243254

    [Mac] PiP window can get "stuck" if PiP is closed while Safari window is minimized.
    https://bugs.webkit.org/show_bug.cgi?id=194621
    <rdar://problem/48002560>

    Reviewed by Eric Carlson.

    When Safari is minimized, no rAF() requests are executed. Don't gate responding to presentation
    change events in the media-controller.js on rAF().

    * Modules/modern-media-controls/media/media-controller.js:
    (MediaController.prototype._returnMediaLayerToInlineIfNeeded):

    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@241492 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Modified Paths

Diff

Modified: branches/safari-607-branch/Source/WebCore/ChangeLog (241877 => 241878)


--- branches/safari-607-branch/Source/WebCore/ChangeLog	2019-02-21 21:26:37 UTC (rev 241877)
+++ branches/safari-607-branch/Source/WebCore/ChangeLog	2019-02-21 21:26:42 UTC (rev 241878)
@@ -1,5 +1,38 @@
 2019-02-20  Alan Coon  <[email protected]>
 
+        Cherry-pick r241492. rdar://problem/48243254
+
+    [Mac] PiP window can get "stuck" if PiP is closed while Safari window is minimized.
+    https://bugs.webkit.org/show_bug.cgi?id=194621
+    <rdar://problem/48002560>
+    
+    Reviewed by Eric Carlson.
+    
+    When Safari is minimized, no rAF() requests are executed. Don't gate responding to presentation
+    change events in the media-controller.js on rAF().
+    
+    * Modules/modern-media-controls/media/media-controller.js:
+    (MediaController.prototype._returnMediaLayerToInlineIfNeeded):
+    
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@241492 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2019-02-13  Jer Noble  <[email protected]>
+
+            [Mac] PiP window can get "stuck" if PiP is closed while Safari window is minimized.
+            https://bugs.webkit.org/show_bug.cgi?id=194621
+            <rdar://problem/48002560>
+
+            Reviewed by Eric Carlson.
+
+            When Safari is minimized, no rAF() requests are executed. Don't gate responding to presentation
+            change events in the media-controller.js on rAF().
+
+            * Modules/modern-media-controls/media/media-controller.js:
+            (MediaController.prototype._returnMediaLayerToInlineIfNeeded):
+
+2019-02-20  Alan Coon  <[email protected]>
+
         Revert r237978. rdar://problem/48244945
 
 2019-02-18  Babak Shafiei  <[email protected]>

Modified: branches/safari-607-branch/Source/WebCore/Modules/modern-media-controls/media/media-controller.js (241877 => 241878)


--- branches/safari-607-branch/Source/WebCore/Modules/modern-media-controls/media/media-controller.js	2019-02-21 21:26:37 UTC (rev 241877)
+++ branches/safari-607-branch/Source/WebCore/Modules/modern-media-controls/media/media-controller.js	2019-02-21 21:26:42 UTC (rev 241878)
@@ -284,7 +284,7 @@
     _returnMediaLayerToInlineIfNeeded()
     {
         if (this.host)
-            window.requestAnimationFrame(() => this.host.setPreparedToReturnVideoLayerToInline(this.media.webkitPresentationMode !== PiPMode));
+            this.host.setPreparedToReturnVideoLayerToInline(this.media.webkitPresentationMode !== PiPMode);
     }
 
     _controlsClassForLayoutTraits(layoutTraits)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to