Issue metadata
Sign in to add a comment
|
IntersectionObserver error when embedding YouTube video in Chrome extension
Reported by
jasonsav...@gmail.com,
Mar 5 2017
|
||||||||||||||||||||||
Issue descriptionUserAgent: 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.
,
Mar 6 2017
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...!!
,
Mar 6 2017
Attached is a sample options.html for a Chrome extension.
,
Mar 6 2017
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
,
Mar 6 2017
,
Mar 6 2017
,
Mar 7 2017
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...!!
,
Mar 7 2017
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
,
Mar 7 2017
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.
,
Mar 7 2017
@krajshree The issue as reported in the initial description occurs only within the context of a Chrome Extension just as @konstant has noted.
,
Mar 8 2017
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.
,
Mar 9 2017
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".
,
Mar 11 2017
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)
,
Mar 12 2017
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?
,
Mar 12 2017
Also, when you say "intermittent", do you mean it sometimes works, sometimes doesn't?
,
Mar 12 2017
It would seem with the latest stable update to Chrome 57 that the issue seems resolved.
,
Mar 12 2017
@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.
,
Mar 13 2017
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 |
|||||||||||||||||||||||
Comment 1 by nyerramilli@chromium.org
, Mar 6 2017