Title: [252183] trunk/Source/WebKit
Revision
252183
Author
[email protected]
Date
2019-11-07 06:55:13 -0800 (Thu, 07 Nov 2019)

Log Message

ASSERTION FAILED: m_clientCounts.contains(contextId) in WebKit::VideoFullscreenManagerProxy::removeClientForContext(uint64_t)
https://bugs.webkit.org/show_bug.cgi?id=203918

Patch by Peng Liu <[email protected]> on 2019-11-07
Reviewed by Jer Noble.

Postpone the transition to exit fullscreen of a video element
before the previous transition of fullscreen mode change is completed.

Fix a flakey layout test (media/video-autoplay.html). No new test is needed.

* WebProcess/cocoa/VideoFullscreenManager.mm:
(WebKit::VideoFullscreenManager::exitVideoFullscreenForVideoElement):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (252182 => 252183)


--- trunk/Source/WebKit/ChangeLog	2019-11-07 14:15:45 UTC (rev 252182)
+++ trunk/Source/WebKit/ChangeLog	2019-11-07 14:55:13 UTC (rev 252183)
@@ -1,3 +1,18 @@
+2019-11-07  Peng Liu  <[email protected]>
+
+        ASSERTION FAILED: m_clientCounts.contains(contextId) in WebKit::VideoFullscreenManagerProxy::removeClientForContext(uint64_t)
+        https://bugs.webkit.org/show_bug.cgi?id=203918
+
+        Reviewed by Jer Noble.
+
+        Postpone the transition to exit fullscreen of a video element
+        before the previous transition of fullscreen mode change is completed.
+
+        Fix a flakey layout test (media/video-autoplay.html). No new test is needed.
+
+        * WebProcess/cocoa/VideoFullscreenManager.mm:
+        (WebKit::VideoFullscreenManager::exitVideoFullscreenForVideoElement):
+
 2019-11-07  Carlos Garcia Campos  <[email protected]>
 
         WebDriver: correctly handle errors when focusing element before sending key events

Modified: trunk/Source/WebKit/WebProcess/cocoa/VideoFullscreenManager.mm (252182 => 252183)


--- trunk/Source/WebKit/WebProcess/cocoa/VideoFullscreenManager.mm	2019-11-07 14:15:45 UTC (rev 252182)
+++ trunk/Source/WebKit/WebProcess/cocoa/VideoFullscreenManager.mm	2019-11-07 14:55:13 UTC (rev 252183)
@@ -299,7 +299,7 @@
 
     interface.setTargetIsFullscreen(false);
 
-    if (interface.animationState() == VideoFullscreenInterfaceContext::AnimationType::FromFullscreen)
+    if (interface.animationState() != VideoFullscreenInterfaceContext::AnimationType::None)
         return;
     interface.setAnimationState(VideoFullscreenInterfaceContext::AnimationType::FromFullscreen);
     m_page->send(Messages::VideoFullscreenManagerProxy::ExitFullscreen(contextId, inlineVideoFrame(videoElement)));
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to