不安全的JavaScript尝试在Safari中访问帧警告 [英] Unsafe JavaScript attempt to access frame warning in Safari

查看:119
本文介绍了不安全的JavaScript尝试在Safari中访问帧警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的应用程序中使用Facebook Connect。我的工作相当不错,但在Safari错误控制台中,我看到这样的错误:

 不安全的JavaScript尝试访问框架与URL http:// ...#...从框架与URL http://www.connect.facebook.com/extern/login_status.phpapi_key=..&extern=2&channel=http .. .xd_receiver.htm。 
域,协议和端口必须匹配。

尽管我们看到Safari的定期挂起和其他不良行为,但似乎运行正常。当我运行其他Facebook Connect应用程序时,我有时也会看到这个错误,所以我不认为这是我们的实现问题。忽略这个警告是安全的吗?

解决方案

Safari的跨框架安全性比其他浏览器更严格,我已经做了特定的try / catch



无论哪种方式,都会发布上游的bug,因为olliej建议。


I'm using Facebook Connect in my app. I have it working pretty well, but in the Safari Error console, I'm seeing errors like this:

Unsafe JavaScript attempt to access frame with URL http://...#... from frame with URL http://www.connect.facebook.com/extern/login_status.phpapi_key=..&extern=2&channel=http...xd_receiver.htm.
Domains, protocols and ports must match.

The app seems to function ok, though we are seeing periodic hangs and other bad behavior from Safari. When I run other Facebook Connect apps, I sometimes see this error too, so I don't think this is a problem with our implementation. Is it safe to ignore this warning?

解决方案

Safari's cross frame security is tighter than other browsers, I have done specific try/catch wrappers to handle these cases, if it otherwise works, great.

Either way, would post the bug upstream as olliej suggests.

这篇关于不安全的JavaScript尝试在Safari中访问帧警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆