YouTube iframe will not play video when logged into Google
Categories
(Core :: Privacy: Anti-Tracking, defect)
Tracking
()
People
(Reporter: andy2020, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:103.0) Gecko/20100101 Firefox/103.0
Steps to reproduce:
Create an HTML page with iFrame like this:
<iframe src="https://www.youtube.com/embed/8JjISXdS1qg"
width="560" height="315"
frameborder="0" allowfullscreen="true"></iframe>
Actual results:
When I click the play button the video will not play.
Expected results:
The video should play.
Reporter | ||
Comment 1•2 years ago
|
||
The same HTML code works fine when using Safari.
I have the following computer type:
MacOS Monterey
iMac 24-inch, M1, 2021
Comment 2•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Audio/Video: Playback' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 3•2 years ago
|
||
I can reproduce bug 1781759, but not this bug.
Does this reproduce for you with data:text/html,<iframe%20src="https://www.youtube.com/embed/8JjISXdS1qg"%20width="560"%20height="315"%20frameborder="0"%20allowfullscreen="true"></iframe> ?
Where you can reproduce, are you able to perform the following steps, please?
- Open the developer tools (Hamburger -> More tools -> Web Developer Tools).
- Select https://www.youtube.com/embed/8JjISXdS1qg using "Select an iframe as the currently targeted document" near top-right of dev tools.
- Select "Console" tab in dev tools.
- Type
document.getElementsByTagName("video")[0].error
at prompt and press return. - What is displayed under the typed text?
Reporter | ||
Comment 4•2 years ago
|
||
Hi Karl,
The video plays fine when I paste this into the browser address bar:
data:text/html,<iframe%20src="https://www.youtube.com/embed/8JjISXdS1qg"%20width="560"%20height="315"%20frameborder="0"%20allowfullscreen="true"></iframe>
However the video will not play if I create a HTML file with the iframe code. All I get is a spinning circle.
Reporter | ||
Updated•2 years ago
|
Reporter | ||
Comment 5•2 years ago
|
||
Hi Karl,
Following your steps in the Web Developer Tools, the results are <- null.
Reporter | ||
Comment 6•2 years ago
|
||
I had about 15 unused profiles which I deleted. I restarted Firefox and now the video now plays properly.
Reporter | ||
Updated•2 years ago
|
Reporter | ||
Updated•2 years ago
|
Reporter | ||
Comment 7•2 years ago
|
||
Now it's back to not playing. Perhaps the way YouTube delivers the iframe changes, one minute it works, but most of the time it does not.
Reporter | ||
Comment 8•2 years ago
|
||
When I click the video there's a spinning circle, after about a minute or two I get this error message:
An error occurred. Please try again later. (Playback ID: colGWLKIpyLq98lH)
Learn More
Reporter | ||
Comment 9•2 years ago
|
||
(In reply to Karl Tomlinson (:karlt) from comment #3)
I can reproduce bug 1781759, but not this bug.
Does this reproduce for you with data:text/html,<iframe%20src="https://www.youtube.com/embed/8JjISXdS1qg"%20width="560"%20height="315"%20frameborder="0"%20allowfullscreen="true"></iframe> ?
Yes same problem, video does not play
Where you can reproduce, are you able to perform the following steps, please?
- Open the developer tools (Hamburger -> More tools -> Web Developer Tools).
- Select https://www.youtube.com/embed/8JjISXdS1qg using "Select an iframe as the currently targeted document" near top-right of dev tools.
- Select "Console" tab in dev tools.
- Type
document.getElementsByTagName("video")[0].error
at prompt and press return.- What is displayed under the typed text?
I get this:
TypeError: document.getElementsByTagName(...)[0] is undefined
Reporter | ||
Comment 10•2 years ago
|
||
Today the video was playing fine, but then I noticed I was not logged into Google. Normally I'm logged into Google all the time. Soon as I logged into Google the video was once again not able to be played. I just get the spinning circle when I click the play button and the video never starts.
Reporter | ||
Comment 11•2 years ago
|
||
The issue appears to do with being logged into Google and the following setting:
Preferences -> Privacy & Security -> Standard
If I change to:
Preferences -> Privacy & Security -> Custom
The video plays fine even logged into Google.
Reporter | ||
Comment 12•2 years ago
|
||
The issue appears to do with being logged into Google and the following setting:
Preferences -> Privacy & Security -> Standard
If I change to:
Preferences -> Privacy & Security -> Custom -> Uncheck Cookies
The video plays fine even logged into Google.
Reporter | ||
Comment 13•2 years ago
|
||
The video will not play if I have this setting:
Preferences -> Privacy & Security -> Custom -> Cross-site tracking cookies, and isolate other cross-site cookies
The video will play with this setting:
Preferences -> Privacy & Security -> Custom -> Cross-site tracking cookies
Reporter | ||
Comment 14•2 years ago
|
||
I submitted a bug report to YouTube here:
Comment 15•2 years ago
|
||
The severity field is not set for this bug.
:jimm, could you have a look please?
For more information, please visit auto_nag documentation.
Updated•2 years ago
|
Comment 16•2 years ago
|
||
Hello Andy,
Thanks for reporting this. Would you be able to provide your info on about:support
page to help us with diagnosing the issue?
Also, were you using a special google account(like an enterprise account) or just the regular account when the issue happened? Is the issue reproducible with a fresh profile?
Reporter | ||
Comment 17•2 years ago
|
||
Hi Tim,
In the past I would do a Firefox refresh and the issue persisted. Today I followed your advice and created a new profile, that finally resolved the issue.
I will close this bug report now.
Thank you.
Reporter | ||
Updated•2 years ago
|
Description
•