Topic-icon Unsafe JavaScript attempt to access frame with URL

Active Subscriptions:

None
Alex
As said in the title, Safari keeps getting dozens of errors in the console with Unsafe JavaScript attempt to access frame with URL related to all Facebook assets
Is there any way to solve this correctly ?

Jean Claude
The topic has been locked.
Support Specialist
14 years 5 months ago #17716 by alzander
Jean Claude,
There's no way to fix these within JFBConnect, they are how Facebook works. The social widgets and other features of Facebook can be run within Facebook or on other websites, like yours. In either case, they try to access cookies and some other user-data type things. When on Facebook, it's no problem. On a non-Facebook site, the browser blocks these attempts (it's called cross-domain scripting, which is a no-no). Facebook gracefully handles the case when it gets no data back from these calls, but the browser will still throw the message in the log.

The errors don't cause any usability issues (or shouldn't at least), and most users would never see them. If you go to a site like foxnews, cnn.com or many other big sites with social extensions and click into articles, you'll see the same errors are present (not always with Facebook, but the cause is the same).

Hope that helps explain, and sorry there's no solution,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 4 months ago #18462 by dyvel
I also have this issue - the problem for me is it prevents the "popup" windows on the like button to be displayed. So the user can't comment on the like, and that's a biggie for me...
What I'm getting is:
Unsafe JavaScript attempt to access frame with URL http://www.facebook.com/plugins/like.php?action=like&api_key=199784663443119&channel_url=https%3A%2F%2Fs-static.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%3Fversion%3D3%23cb%3Df1122dc31%26origin%3Dhttp%253A%252F%252Ftoo-hot-to-handle.dk%252Ff17e452714%26relation%3Dparent.parent%26transport%3Dpostmessage&colorscheme=light&extended_social_context=false&font=arial&href=http%3A%2F%2Ftoo-hot-to-handle.dk&layout=button_count&locale=da_DK&node_type=link&sdk=joey&send=false&show_faces=false&width=200 from frame with URL https://www.facebook.com/plugins/comment_widget_shell.php?api_key=199784663443119&locale=da_DK&master_frame_name=fefe1bbf4&sdk=joey. Domains, protocols and ports must match.
The topic has been locked.
Active Subscriptions:

None
14 years 4 months ago #18463 by dyvel
File Attachment:

Screenshot of my problem...
The topic has been locked.
Support Specialist
14 years 4 months ago #18491 by alzander
Dyvel,
Can you post (or Private Message) a link to your site so we can see what's happening? The Javascript errors likely aren't what's causing that issues. My guess is that it's a styling/z-index problem, but I can't be certain without seeing the page.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 4 months ago #18502 by dyvel
I've sent you a PM with the link
The topic has been locked.
Support Specialist
14 years 4 months ago #18515 by alzander
I just hit the Like button on your home page and one of the sub-pages so that the Like box went over one of the images... in both cases, it worked fine.. see the image below:
File Attachment:


Can you tell me what browser you're using? I was using Chrome on Windows. If there's a specific page to be testing with, please PM that to me. Also, please try with other browsers and/or computers, if possible, just to see if it's specific to the computer you're using (for some reason).

Not sure what the issue is, but if we can recreate it, we should be able to help come up with a solution,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 4 months ago #18533 by dyvel
I'm using Safari on Mac, also tried with IE9 on PC, and Firefox on Mac... The strange part is, that I managed to get it working a few times after I removed all cache files, closed the browser... but then it was only working one time
The topic has been locked.
Support Specialist
14 years 4 months ago #18578 by alzander
I'm still having issues seeing the issue. I've looked at your HTML and CSS, there doesn't appear to be a z-index issue. Do you have any pop-up blockers or anything like that installed on your browsers? The comment box isn't a pop-up, but overly aggressive add-ons that stop those things may be mis-classifying this.

We've tested in IE9, Chrome, and Firefox, and in all cases, it looks correct to us.

Our best recommendations are to:
* Try with a different template. See if the issue persists. That will help narrow down the cause
* Try from a computer connected to a different internet connection. It's possible some of the contents from Facebook are being filtered/blocked somehow.

Thanks,
Alex
The topic has been locked.