i have browser warnings

Unsafe JavaScript attempt to access frame with URL http://localhost/home from frame with URL http://www.youtube.com/embed/QOowQeKyNkQ. Domains, protocols and ports must match.

this is normal?

Comments

guschilds’s picture

Unfortunately, yes.

A quick Google search reveals that this is the result of browser security. It appears this message will always appear in Chrome's console, but shouldn't affect performance in any way.

A few Stack Overflow links:

And one from the YouTube API team: Unsafe JavaScript attempt to access frame with URL.

To ensure that nothing in the module was causing this, I grabbed a fresh embed code provided by YouTube that follows the same iframe formatting that the module uses. I pasted it in a blank HTML document and tested it locally and on the web. I continued to get that error every time.

jenlampton’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

Changing category. Can you change the protocol from http to https and see if you still get the error?

guschilds’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

This is no longer printed in Chrome's console (nor any other browser) when a page is loaded that contains an iframe YouTube embed.