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

A black screen appears in a muted video element outside the viewport #1575

Conversation

youennf
Copy link
Contributor

@youennf youennf commented Jun 16, 2022

0146d52

A black screen appears in a muted video element outside the viewport
https://bugs.webkit.org/show_bug.cgi?id=241152
rdar://problem/94562636

Patch by Youenn Fablet <youennf@gmail.com > on 2022-06-16
Reviewed by Eric Carlson.

We sometimes remove the invisible autoplay restrictions.
If we remove it while we are suspended due this restriction, we will not unsuspend and will wait for a user interaction.
To prevent this, we do not return early in updateShouldAutoplay if we are interrupted due to the invisible autoplay restriction.

* LayoutTests/fast/mediastream/video-mediastream-restricted-invisible-autoplay-user-click-expected.txt: Added.
* LayoutTests/fast/mediastream/video-mediastream-restricted-invisible-autoplay-user-click.html: Added.
* Source/WebCore/html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::updateShouldAutoplay):

Canonical link: https://commits.webkit.org/251596@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@295591 268f45cc-cd09-0410-ab3c-d52691b4dbfc

@youennf youennf self-assigned this Jun 16, 2022
@youennf youennf added Media Bugs related to the HTML 5 Media elements. Other labels Jun 16, 2022
@youennf
Copy link
Contributor Author

youennf commented Jun 16, 2022

@youennf youennf added the merge-queue Applied to send a pull request to merge-queue label Jun 16, 2022
@jyavenard
Copy link
Member

@jyavenard, have you seen this crash: https://ews-build.s3-us-west-2.amazonaws.com/macOS-AppleSilicon-Big-Sur-Debug-WK2-Tests-EWS/adf2c317-33046/http/tests/media/hls/track-in-band-hls-metadata-cue-duration-crash-log.txt
This is unrelated to this patch but maybe we should file a bug for it?

I have not...

Definitely should file a bug.
I had rewritten a lot of the WebCoreNSURLSession class, but those changes got backed out.

@webkit-early-warning-system webkit-early-warning-system force-pushed the eng/A-black-screen-appears-in-a-muted-video-element-outside-the-viewport branch from adf2c31 to 0146d52 Compare June 16, 2022 14:38
@webkit-early-warning-system webkit-early-warning-system merged commit 0146d52 into WebKit:main Jun 16, 2022
@webkit-early-warning-system
Copy link
Collaborator

Committed r295591 (251596@main): https://commits.webkit.org/251596@main

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

@webkit-early-warning-system webkit-early-warning-system removed the merge-queue Applied to send a pull request to merge-queue label Jun 16, 2022
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
4 participants