Changeset 254512 in webkit
- Timestamp:
- Jan 14, 2020 8:37:10 AM (4 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r254508 r254512 1 2020-01-14 Peng Liu <peng.liu6@apple.com> 2 3 A video element cannot enter fullscreen from PiP mode 4 https://bugs.webkit.org/show_bug.cgi?id=204468 5 6 Reviewed by Eric Carlson. 7 8 This patch fixes two issues: 9 - Make sure the message exchanges between WebContent and UI process can complete in the scenario that switching to fullscreen from PiP. 10 - Do not send fullscreenModeChanged event with mode = 3 (both fullscreen and Picture-in-Picture) to WebContent process. 11 12 We need to use API tests to verify the fix. 13 No new tests are added because of webkit.org/b/203724. 14 15 * platform/ios/VideoFullscreenInterfaceAVKit.mm: 16 (VideoFullscreenInterfaceAVKit::didStopPictureInPicture): 17 (VideoFullscreenInterfaceAVKit::doEnterFullscreen): 18 (VideoFullscreenInterfaceAVKit::setMode): 19 1 20 2020-01-14 Philippe Normand <pnormand@igalia.com> 2 21 -
trunk/Source/WebCore/platform/ios/VideoFullscreenInterfaceAVKit.mm
r254212 r254512 1079 1079 if (m_exitFullscreenNeedsExitPictureInPicture) 1080 1080 doExitFullscreen(); 1081 1082 if (m_enterFullscreenNeedsExitPictureInPicture) 1083 doEnterFullscreen(); 1081 1084 return; 1082 1085 } … … 1326 1329 if (m_targetMode.hasFullscreen() && !m_currentMode.hasFullscreen()) { 1327 1330 m_enterFullscreenNeedsEnterFullscreen = true; 1331 [m_window setHidden:NO]; 1328 1332 [m_playerViewController enterFullScreenAnimated:YES completionHandler:[this, protectedThis = makeRefPtr(this)] (BOOL success, NSError *error) { 1329 1333 enterFullscreenHandler(success, error); … … 1477 1481 1478 1482 m_currentMode.setMode(mode); 1483 // Mode::mode() can be 3 (VideoFullscreenModeStandard | VideoFullscreenModePictureInPicture). 1484 // HTMLVideoElement does not expect such a value in the fullscreenModeChanged() callback. 1479 1485 if (m_videoFullscreenModel) 1480 m_videoFullscreenModel->fullscreenModeChanged(m _currentMode.mode());1486 m_videoFullscreenModel->fullscreenModeChanged(mode); 1481 1487 } 1482 1488
Note: See TracChangeset
for help on using the changeset viewer.