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

Autoplay detection update: ignore NotSupportedError exceptions #12603

Conversation

github-matthieu-wipliez
Copy link
Contributor

Type of change

  • Bugfix

Description of change

This PR:

  • fixes a edge case in the autoplay detection feature that would disable autoplay entirely if the website had a Content Security Policy disabling the data: scheme in Media URLs because of NotSupportedError exceptions. This PR ignores these exceptions, which is the same as disabling autoplay detection in this case.
  • removes a comment that @patmmccann had made regarding the use of the adapter in Webkit Webviews, since this issue was fixed subsequently in Autoplay detection: fix fullscreen issue on iOS #11822, but I had forgotten to remove the comment.

Other information

This error is caused by a Content Security Policy that disables data: scheme for media URLs.
Before this PR, this error would cause autoplay to be disabled; now, if this error is raised it has the same effect as disabling autoplay detection.
@github-matthieu-wipliez github-matthieu-wipliez marked this pull request as ready for review December 23, 2024 13:13
@patmmccann patmmccann self-requested a review December 23, 2024 15:45
@patmmccann patmmccann self-assigned this Dec 23, 2024
@patmmccann patmmccann merged commit eb225a8 into prebid:master Dec 23, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants