Changeset 254287 in webkit
- Timestamp:
- Jan 9, 2020, 12:08:23 PM (7 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
r254286 r254287 1 2020-01-09 Peng Liu <peng.liu6@apple.com> 2 3 Fullscreen videos do not enter PiP in first tap 4 https://bugs.webkit.org/show_bug.cgi?id=205986 5 6 Reviewed by Eric Carlson. 7 8 This patch essentially reverts the fix for webkit.org/b/204461. 9 The fix for webkit.org/b/204461 depends on a fix in AVKit along 10 with a corresponding update in WebKit (webkit.org/b/204979). 11 We will need to reapply the fix for webkit.org/b/204461 after they are landed. 12 13 * WebProcess/cocoa/VideoFullscreenManager.mm: 14 (WebKit::VideoFullscreenManager::enterVideoFullscreenForVideoElement): 15 (WebKit::VideoFullscreenManager::exitVideoFullscreenForVideoElement): 16 1 17 2020-01-09 Kate Cheney <katherine_cheney@apple.com> 2 18 -
trunk/Source/WebKit/WebProcess/cocoa/VideoFullscreenManager.mm
r252755 r254287 250 250 auto [model, interface] = ensureModelAndInterface(contextId); 251 251 HTMLMediaElementEnums::VideoFullscreenMode oldMode = interface->fullscreenMode(); 252 if (oldMode == mode)253 return;254 252 255 253 addClientForContext(contextId); … … 300 298 uint64_t contextId = m_videoElements.get(&videoElement); 301 299 auto& interface = ensureInterface(contextId); 302 HTMLMediaElementEnums::VideoFullscreenMode oldMode = interface.fullscreenMode();303 if (oldMode == HTMLMediaElementEnums::VideoFullscreenModeNone)304 return;305 306 300 interface.setTargetIsFullscreen(false); 307 308 301 if (interface.animationState() != VideoFullscreenInterfaceContext::AnimationType::None) 309 302 return; 303 310 304 interface.setAnimationState(VideoFullscreenInterfaceContext::AnimationType::FromFullscreen); 311 305 m_page->send(Messages::VideoFullscreenManagerProxy::ExitFullscreen(contextId, inlineVideoFrame(videoElement)));
Note:
See TracChangeset
for help on using the changeset viewer.