13

I've incorporated Vimeo into a WordPress theme I'm building, and I get these errors:

Unsafe JavaScript attempt to access frame with URL http://themes.ibrogram.com/beta/blog/ from frame with URL http://player.vimeo.com/video/4749536. Domains, protocols and ports must match.


Unsafe JavaScript attempt to access frame with URL http://themes.ibrogram.com/beta/blog/ from frame with URL http://player.vimeo.com/video/28496744?title=0&byline=0&portrait=0. Domains, protocols and ports must match.

It also (I think) is the reason for the page still loading: http://themes.ibrogram.com/beta/blog/

bfavaretto
  • 71,580
  • 16
  • 111
  • 150
daryl
  • 14,307
  • 21
  • 67
  • 92

1 Answers1

14

Read something about Javascript access security here:


Specifically about implementing Vimeo and JavaScript unsafe access, I found this on a discussion on the Vimeo forums:

If you're using a webkit browser (Safari or Chrome) that error is actually coming from the Webkit Inspector trying to access the iframe (the Webkit Inspector is actually written in HTML and Javascript).

The thing to make sure is that you can't call any of the api or addEvent methods on the iframe until the player has finished loading. As per the example, you need to add the "onLoad" event first and then execute your code inside of that handler.


And second, I checked link you provided, and it loads fast and fine to me, so it is definitely not reason why you keep having this page loading long time

Community
  • 1
  • 1
Marek Sebera
  • 39,650
  • 37
  • 158
  • 244
  • The initial page loading time is fine, I'm refering to this: http://d.pr/noOV - something is going on here and it only happens when vimeo is on the page. – daryl Sep 15 '11 at 22:18
  • I see javascript unsafe error in console, but either on page with Vimeo video object, it loads just fine here – Marek Sebera Sep 15 '11 at 22:22
  • no, I'm using chrome, and checked in FF and Safari too, no problems at all – Marek Sebera Sep 15 '11 at 22:24