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

REGRESSION(260575@main): TestWebKitAPI.AudioRoutingArbitration.Deletion times out with UI-side-compositing enabled #11325

Conversation

jernoble
Copy link
Contributor

@jernoble jernoble commented Mar 9, 2023

d06c4a7

REGRESSION(260575@main): TestWebKitAPI.AudioRoutingArbitration.Deletion times out with UI-side-compositing enabled
https://bugs.webkit.org/show_bug.cgi?id=253670
rdar://106322713

Reviewed by Ryosuke Niwa.

When we did the "don't host layers from the WebContent process" work, we re-used the
PlaybackSessionManager/VideoFullscreenManager codepath from element fullscreen and
picture-in-picture to handle creation and sizing of the video layer in the UI process. This caused
a pre-existing bug where a fullscreened HTMLMediaElement would never be destroyed (due to having
eventListeners) to now apply to all HTMLMediaElements displayed in a page.

The eventListeners aren't removed because a boolean ivar intended to track whether eventListeners
were added was never set to true. Once that ivar is correctly set, the test passes.

* Source/WebCore/platform/cocoa/PlaybackSessionModelMediaElement.mm:
(WebCore::PlaybackSessionModelMediaElement::setMediaElement):

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

24d3f52

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
βœ… πŸ§ͺ api-ios βœ… πŸ§ͺ mac-wk1 βœ… πŸ§ͺ gtk-wk2
βœ… πŸ›  tv βœ… πŸ§ͺ mac-wk2   πŸ§ͺ api-gtk
βœ… πŸ›  tv-sim βœ… πŸ§ͺ mac-AS-debug-wk2
βœ… πŸ›  watch βœ… πŸ§ͺ mac-wk2-stress
❌ πŸ›  πŸ§ͺ merge βœ… πŸ›  watch-sim

@jernoble jernoble self-assigned this Mar 9, 2023
@jernoble jernoble added the Media Bugs related to the HTML 5 Media elements. label Mar 9, 2023
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Mar 10, 2023
@jernoble
Copy link
Contributor Author

New failure is in fast/scrolling/keyboard-scrolling-distance-pageDown.html. Seems entirely unrelated. Landing.

@jernoble jernoble added merge-queue Applied to send a pull request to merge-queue and removed merging-blocked Applied to prevent a change from being merged labels Mar 10, 2023
@webkit-commit-queue webkit-commit-queue force-pushed the eng/REGRESSION260575main-TestWebKitAPI-AudioRoutingArbitration-Deletion-times-out-with-UI-side-compositing-enabled branch from 24d3f52 to ee85c41 Compare March 10, 2023 17:13
…on times out with UI-side-compositing enabled

https://bugs.webkit.org/show_bug.cgi?id=253670
rdar://106322713

Reviewed by Ryosuke Niwa.

When we did the "don't host layers from the WebContent process" work, we re-used the
PlaybackSessionManager/VideoFullscreenManager codepath from element fullscreen and
picture-in-picture to handle creation and sizing of the video layer in the UI process. This caused
a pre-existing bug where a fullscreened HTMLMediaElement would never be destroyed (due to having
eventListeners) to now apply to all HTMLMediaElements displayed in a page.

The eventListeners aren't removed because a boolean ivar intended to track whether eventListeners
were added was never set to true. Once that ivar is correctly set, the test passes.

* Source/WebCore/platform/cocoa/PlaybackSessionModelMediaElement.mm:
(WebCore::PlaybackSessionModelMediaElement::setMediaElement):

Canonical link: https://commits.webkit.org/261503@main
@webkit-commit-queue webkit-commit-queue force-pushed the eng/REGRESSION260575main-TestWebKitAPI-AudioRoutingArbitration-Deletion-times-out-with-UI-side-compositing-enabled branch from ee85c41 to d06c4a7 Compare March 10, 2023 17:17
@webkit-commit-queue
Copy link
Collaborator

Committed 261503@main (d06c4a7): https://commits.webkit.org/261503@main

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

@webkit-commit-queue webkit-commit-queue merged commit d06c4a7 into WebKit:main Mar 10, 2023
@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Media Bugs related to the HTML 5 Media elements.
Projects
None yet
5 participants