Changeset 271273 in webkit
- Timestamp:
- Jan 7, 2021, 4:30:58 PM (6 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
WebProcess/cocoa/VideoFullscreenManager.mm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r271270 r271273 1 2021-01-07 Peng Liu <peng.liu6@apple.com> 2 3 PlaybackSessionManager::m_clientCounts is not updated correctly when a video enters picture-in-picture from fullscreen 4 https://bugs.webkit.org/show_bug.cgi?id=220435 5 6 Reviewed by Eric Carlson. 7 8 * WebProcess/cocoa/VideoFullscreenManager.mm: 9 (WebKit::VideoFullscreenManager::enterVideoFullscreenForVideoElement): 10 When a fullscreen video enters picture-in-picture, we should not call `addClientForContext()` 11 because `m_clientCounts` was updated when the video entered fullscreen. 12 (WebKit::VideoFullscreenManager::exitVideoFullscreenToModeWithoutAnimation): 13 We need to call `removeClientForContext()` in this function like `didCleanupFullscreen()` does. 14 1 15 2021-01-07 Eric Carlson <eric.carlson@apple.com> 2 16 -
trunk/Source/WebKit/WebProcess/cocoa/VideoFullscreenManager.mm
r269610 r271273 251 251 HTMLMediaElementEnums::VideoFullscreenMode oldMode = interface->fullscreenMode(); 252 252 253 addClientForContext(contextId); 253 if (oldMode == HTMLMediaElementEnums::VideoFullscreenModeNone) 254 addClientForContext(contextId); 255 254 256 if (!interface->layerHostingContext()) 255 257 interface->setLayerHostingContext(LayerHostingContext::createForExternalHostingProcess()); … … 330 332 331 333 interface.setTargetIsFullscreen(false); 334 removeClientForContext(contextId); 332 335 333 336 m_page->send(Messages::VideoFullscreenManagerProxy::ExitFullscreenWithoutAnimationToMode(contextId, targetMode));
Note:
See TracChangeset
for help on using the changeset viewer.