Open Bug 2001870 Opened 15 hours ago Updated 8 hours ago

Issue Embed YouTube video on blog

Categories

(Firefox for Android :: Media, defect)

Firefox 145
All
Android
defect

Tracking

()

UNCONFIRMED

People

(Reporter: vqrhxw35a, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:145.0) Gecko/20100101 Firefox/145.0

Steps to reproduce:

  1. From Android Firefox open https://www.peopleinside.it/video/
  2. Click on a video to consent cookies

Actual results:

A pop up ask if open the video on the native app (YouTube). You can confirm or cancel, both options gives issue on the website.

If accept the video will be opened on YouTube giving the visitor out of the website where also video are no more showed until page refresh

If deny the error 153 on the page will be showed. The website is redirected to a Youtube link with an error.

Chrome for Android doesn't have this bad pop up and behavior.

Expected results:

I suppose no pop should be showed, I find it a very bad things but also or maybe video on the website should be not broken with an empty space or an error.

I don't know how many time diagnosis on this will take but I discovered the cause of this issue are Firefox for Android and the Compilanz plugin that create a placeholder that maybe let Firefox confused.

I reported the issue also to the Compilanz plugin developer and I'm looking for a solution.
Maybe Compilanz developers, I hope, will find a way to fix this but it's also a Firefox behavior for me. No issues on Chrome.

https://wordpress.org/support/topic/issue-youtube-video-and-compilanz-placeholder/

The Bugbug bot thinks this bug should belong to the 'Firefox for Android::Media' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: General → Media

For now, as this issue is very annoying I'm using the following snippet code to resolve the Firefox for Android issue also caused by Compilanz plugin

add_filter('the_content', 'replace_youtube_to_nocookie');

function replace_youtube_to_nocookie($content) {
    $content = preg_replace('/youtube\.com\/embed/', 'youtube-nocookie.com\/embed/', $content);
    return $content;
}
You need to log in before you can comment on or make changes to this bug.