Replace Youtube Iframe with preview image is breaking the play-on-page video: The iframe displays a 153 error.
Describe the bug When the Lazyload Feature: Replace Youtube Iframe with preview image Is on, the video does not load, on page, and display: 153 error.
To Reproduce Steps to reproduce the behavior:
- Go to 'This page'
- Click on 'Youtube video'
- See error: 153 error
- If Replace Youtube Iframe with preview image is off, the Issue can not be replicated. I'm asking the customer to keep it on for investigation purposes, but the credentials are in the ticket (in case the customer turns it off)
- With the feature turned On, we can see this attribute removed: referrerpolicy="strict-origin-when-cross-origin" turning Off, the attribute is back to the Iframe: Screenshot
Expected behavior The video should play without errors on the page, as it appears when the feature is turned off or bypassing WP Rocket ?nowprocket. The feature: Replace Youtube Iframe with preview image, should not remove attribute: referrerpolicy="strict-origin-when-cross-origin"
Screenshots
https://imgur.com/1onyMzO
Desktop (please complete the following information):
- OS: All
- Browser: All
- Version: All
Smartphone (please complete the following information):
- Device: All
- OS: All
- Browser : All
- Version: All
Additional context Slack thread: https://group-onecom.slack.com/archives/C08EFUGUH5G/p1762174563310589
Related: https://secure.helpscout.net/conversation/3139693108/600157
Related: https://secure.helpscout.net/conversation/3144270958/601438
We've had to turn the feature off for now - "Replace Youtube Iframe with preview image is off" because videos arent playable.
Related: https://secure.helpscout.net/conversation/3145331076/601770?viewId=3572910