Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vimeo video goes black if you hit the in-website play button while the video is open in PiP #12520

Conversation

pvollan
Copy link
Contributor

@pvollan pvollan commented Apr 7, 2023

12441d9

Vimeo video goes black if you hit the in-website play button while the video is open in PiP
https://bugs.webkit.org/show_bug.cgi?id=255163
rdar://107592139

Reviewed by Simon Fraser.

Vimeo enters fullscreen when starting playback from the inline play button while already in PIP.
This behavior is revealing a bug in the fullscreen handling. This patch introduces a quirk to
work around this issue. This patch also reverts <https://commits.webkit.org/262703@main> since
it did not resolve the issue.

* Source/WebCore/page/Quirks.cpp:
(WebCore::Quirks::blocksEnteringStandardFullscreenFromPictureInPictureQuirk const):
* Source/WebCore/page/Quirks.h:
* Source/WebCore/platform/ios/VideoFullscreenInterfaceAVKit.mm:
(VideoFullscreenInterfaceAVKit::didStopPictureInPicture):
(VideoFullscreenInterfaceAVKit::prepareForPictureInPictureStopWithCompletionHandler):
* Source/WebKit/WebProcess/FullScreen/WebFullScreenManager.cpp:
(WebKit::WebFullScreenManager::enterFullScreenForElement):
* Source/WebKit/WebProcess/cocoa/VideoFullscreenManager.h:
(WebKit::VideoFullscreenManager::videoElementInPictureInPicture const):

Canonical link: https://commits.webkit.org/262723@main

6d4718b

Misc iOS, tvOS & watchOS macOS Linux Windows
βœ… πŸ§ͺ style βœ… πŸ›  ios   πŸ›  mac   πŸ›  wpe   πŸ›  wincairo
  πŸ§ͺ bindings βœ… πŸ›  ios-sim   πŸ›  mac-AS-debug   πŸ§ͺ wpe-wk2
βœ… πŸ§ͺ webkitperl   πŸ§ͺ ios-wk2   πŸ§ͺ api-mac   πŸ›  gtk
  πŸ§ͺ ios-wk2-wpt   πŸ§ͺ mac-wk1   πŸ§ͺ gtk-wk2
βœ… πŸ›  tv   πŸ§ͺ api-ios   πŸ§ͺ api-gtk
  πŸ§ͺ mac-wk2   πŸ§ͺ mac-AS-debug-wk2
  πŸ›  tv-sim   πŸ§ͺ mac-wk2-stress
  πŸ›  πŸ§ͺ merge βœ… πŸ›  watch
βœ… πŸ›  πŸ§ͺ unsafe-merge   πŸ›  watch-sim

@pvollan pvollan requested a review from cdumez as a code owner April 7, 2023 19:24
@pvollan pvollan self-assigned this Apr 7, 2023
@pvollan pvollan added the WebKit Misc. For miscellaneous bugs in the WebKit framework (and not JavaScriptCore or WebCore). label Apr 7, 2023
@pvollan pvollan force-pushed the eng/Vimeo-video-goes-black-if-you-hit-the-in-website-play-button-while-the-video-is-open-in-PiP branch from b193cf2 to 6d4718b Compare April 7, 2023 19:27
@pvollan pvollan requested a review from jernoble April 7, 2023 19:38
@pvollan
Copy link
Contributor Author

pvollan commented Apr 7, 2023

Thanks for reviewing, Simon!

@pvollan pvollan added merge-queue Applied to send a pull request to merge-queue unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing labels Apr 7, 2023
Copy link
Contributor

@geoffreygaren geoffreygaren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=me

@pvollan
Copy link
Contributor Author

pvollan commented Apr 7, 2023

r=me

Thanks for reviewing, Geoff :)

…e video is open in PiP

https://bugs.webkit.org/show_bug.cgi?id=255163
rdar://107592139

Reviewed by Simon Fraser.

Vimeo enters fullscreen when starting playback from the inline play button while already in PIP.
This behavior is revealing a bug in the fullscreen handling. This patch introduces a quirk to
work around this issue. This patch also reverts <https://commits.webkit.org/262703@main> since
it did not resolve the issue.

* Source/WebCore/page/Quirks.cpp:
(WebCore::Quirks::blocksEnteringStandardFullscreenFromPictureInPictureQuirk const):
* Source/WebCore/page/Quirks.h:
* Source/WebCore/platform/ios/VideoFullscreenInterfaceAVKit.mm:
(VideoFullscreenInterfaceAVKit::didStopPictureInPicture):
(VideoFullscreenInterfaceAVKit::prepareForPictureInPictureStopWithCompletionHandler):
* Source/WebKit/WebProcess/FullScreen/WebFullScreenManager.cpp:
(WebKit::WebFullScreenManager::enterFullScreenForElement):
* Source/WebKit/WebProcess/cocoa/VideoFullscreenManager.h:
(WebKit::VideoFullscreenManager::videoElementInPictureInPicture const):

Canonical link: https://commits.webkit.org/262723@main
@webkit-commit-queue webkit-commit-queue force-pushed the eng/Vimeo-video-goes-black-if-you-hit-the-in-website-play-button-while-the-video-is-open-in-PiP branch from 6d4718b to 12441d9 Compare April 7, 2023 20:19
@webkit-commit-queue
Copy link
Collaborator

Committed 262723@main (12441d9): https://commits.webkit.org/262723@main

Reviewed commits have been landed. Closing PR #12520 and removing active labels.

@webkit-commit-queue webkit-commit-queue merged commit 12441d9 into WebKit:main Apr 7, 2023
@webkit-commit-queue webkit-commit-queue removed merge-queue Applied to send a pull request to merge-queue unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing labels Apr 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WebKit Misc. For miscellaneous bugs in the WebKit framework (and not JavaScriptCore or WebCore).
Projects
None yet
5 participants