New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 698545 link

Starred by 13 users

Issue metadata

Status: WontFix
Owner:
Closed: Mar 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug-Regression



Sign in to add a comment

IntersectionObserver error when embedding YouTube video in Chrome extension

Reported by jasonsav...@gmail.com, Mar 5 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36

Steps to reproduce the problem:
1. Create an extension with a page ie. options.html

2. Add a YouTube video in the code of that page with an iframe tag ex.
<iframe width="560" height="315" src="https://www.youtube.com/embed/fKNZRkhC3OE"></iframe>

3. Open the options.html page

What is the expected behavior?
The video should load with a play button.

What went wrong?
The video is black and no play button is displayed.
The error below can be found in the console:

Uncaught Error: Failed to construct 'IntersectionObserver': Unable to get root node in main frame to track.
at new MZ (https://www.youtube.com/yts/jsbin/player-en_US-vflVlxFvV/base.js:3715:122)
at new g2 (https://www.youtube.com/yts/jsbin/player-en_US-vflVlxFvV/base.js:3999:112)
at g2.create (https://www.youtube.com/yts/jsbin/player-en_US-vflVlxFvV/base.js:6995:333)
at Gi.<anonymous> (https://www.youtube.com/yts/jsbin/www-embed-player-vfl-i_LLs/www-embed-player.js:507:269)
at Gi.l.jb (https://www.youtube.com/yts/jsbin/www-embed-player-vfl-i_LLs/www-embed-player.js:507:308)
at Ki (https://www.youtube.com/yts/jsbin/www-embed-player-vfl-i_LLs/www-embed-player.js:505:143)
at Gi.l.oa (https://www.youtube.com/yts/jsbin/www-embed-player-vfl-i_LLs/www-embed-player.js:498:176)
at https://www.youtube.com/yts/jsbin/www-embed-player-vfl-i_LLs/www-embed-player.js:557:378

Did this work before? Yes 55

Chrome version: 56.0.2924.87  Channel: stable
OS Version: 10.0
Flash Version: 

The issue is intermittent in Chrome 56.

 
Labels: Needs-Bisect Needs-Triage-M56
Cc: krajshree@chromium.org
Labels: Needs-Feedback
jasonsavard@ - Thanks for filing the issue...!!

Could you please provide a sample html file to test this issue.

This will help us in triaging the issue further.

Thanks...!!
Attached is a sample options.html for a Chrome extension.
options.html
142 bytes View Download
Project Member

Comment 4 by sheriffbot@chromium.org, Mar 6 2017

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "krajshree@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Components: -Blink Blink>Layout

Comment 6 by e...@chromium.org, Mar 6 2017

Owner: szager@chromium.org
Status: Assigned (was: Unconfirmed)
Labels: -Needs-Bisect Needs-Feedback
jasonsavard@ - Thanks for the sample html file...!!

Tested the issue on Win-10 using chrome reported version #56.0.2924.87 and latest canary #59.0.3032.0.

Attached a screen cast for reference.

Following are the steps followed to reproduce the issue.
------------
1. Opened chrome browser.
2. Opened options.html file.
3. Observed that video loaded with a play button as expected.

jasonsavard@ -  Could you please check this issue on latest canary #59.0.3032.0 by creating a new profile without any apps and extensions and please let us know if the issue still persist or not.

Thanks...!!
698545.mp4
585 KB View Download
I am having the same issue with my chrome extension with version 56.0.2924.87 using the same method of embedding youtube videos.

When using canary version 59.0.3032.0 (64-bit) on win-10 the youtube player works perfectly.

Thanks,
Nick
I am facing the same issue too. The bug is Chrome Extension specific. Opening up the .html file in the browser should be fine nonetheless. Creating a manifest.json and options.html file and loading the unpacked extension might help reproduce the error.
@krajshree The issue as reported in the initial description occurs only within the context of a Chrome Extension just as @konstant has noted.
Attached is a sample manifest.json and index.html for a Chrome Extension. As mentioned above the issue occurs only when trying to embed inside a Chrome Extension.
index.html
137 bytes View Download
manifest.json
548 bytes View Download
Created a sample extension with problem description:
https://github.com/terales/youtube-not-play-in-extension-in-crome-v56

Video won't load in Chrome v56.

Checked in Chrome Canary v59 and Chromium v59 with empty profiles — player works, but request for iframe source marked as "cancelled".
I had the same problem.
Updating Chrome to v57 worked.

Request won't be canceled there and the player works. 

Sadly, the video that I wanted to play there was blocked by WMG and I can be only played on http://www.youtube.com. (see attachmend. Sorry but it's on German)
extension.PNG
241 KB View Download
This area of the code has changed since Chrome 56.  Can you please test in Chrome beta (57) or dev (58), and report back whether it works or not?
Also, when you say "intermittent", do you mean it sometimes works, sometimes doesn't?
It would seem with the latest stable update to Chrome 57 that the issue seems resolved.
@szager@chromium.org
> Also, when you say "intermittent", do you mean it sometimes works, sometimes doesn't?

It always doesn't work in Chrome v56: with manually created iframe, with iframe created with API.

It won't work in options page, new tab and other pages loaded with `chrome-extension` protocol.

Vimeo player works fine in both v56 and v57 versions.
Status: WontFix (was: Assigned)
Glad to hear that it's working in 57.  This is probably not a fix that we would do a stable push for, so you'll have to wait until 57 becomes stable (which should be soon).

Sign in to add a comment