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

Media Controls not fading on click/tap when up. #13675

Conversation

megangardner
Copy link
Contributor

@megangardner megangardner commented May 10, 2023

4c392f8

Media Controls not fading on click/tap when up.
https://bugs.webkit.org/show_bug.cgi?id=256565
rdar://109126598

Reviewed by Aditya Keerthi.

The code to check if a tap/click is in/on a media element was returing
true because of the "backdrop" element, which should not count as a
media control, even though it is part of the shadowdom. We should not
have pointer-events active on this element.
Also, I removed the code about also checking the container, as it was not
being used anywhere.

* Source/WebCore/Modules/modern-media-controls/controls/media-controls.js:
(MediaControls.prototype.isPointInControls):

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

802fce9

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

@megangardner megangardner self-assigned this May 10, 2023
@megangardner megangardner added the Media Bugs related to the HTML 5 Media elements. label May 10, 2023
if (includeContainer && this.element === tappedElement)
return true;

if (tappedElement.classList.contains("backdrop"))
Copy link
Member

Choose a reason for hiding this comment

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

Can we set pointer-events: none on the backdrop element instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll try it!

@megangardner megangardner force-pushed the eng/Media-Controls-not-fading-on-clicktap-when-up- branch from a205297 to 802fce9 Compare May 10, 2023 04:41
@webkit-early-warning-system
Copy link
Collaborator

Starting EWS tests for 802fce9. Live statuses available at the PR page, #13675

@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label May 10, 2023
Copy link
Member

@pxlcoder pxlcoder left a comment

Choose a reason for hiding this comment

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

Nit: Commit message is missing the changed file: Source/WebCore/Modules/modern-media-controls/controls/media-controls.css.

@megangardner megangardner 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 May 11, 2023
https://bugs.webkit.org/show_bug.cgi?id=256565
rdar://109126598

Reviewed by Aditya Keerthi.

The code to check if a tap/click is in/on a media element was returing
true because of the "backdrop" element, which should not count as a
media control, even though it is part of the shadowdom. We should not
have pointer-events active on this element.
Also, I removed the code about also checking the container, as it was not
being used anywhere.

* Source/WebCore/Modules/modern-media-controls/controls/media-controls.js:
(MediaControls.prototype.isPointInControls):

Canonical link: https://commits.webkit.org/263987@main
@webkit-commit-queue webkit-commit-queue force-pushed the eng/Media-Controls-not-fading-on-clicktap-when-up- branch from 802fce9 to 4c392f8 Compare May 11, 2023 23:01
@webkit-commit-queue
Copy link
Collaborator

Committed 263987@main (4c392f8): https://commits.webkit.org/263987@main

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

@webkit-commit-queue webkit-commit-queue merged commit 4c392f8 into WebKit:main May 11, 2023
@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label May 11, 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