Webkit Cocoa - WebView 问题
在 Cocoa 应用程序中,我有一个网络视图。当 Google 的个性化主页加载时,WebViewDelegate 捕获到以下消息:
Unsafe JavaScript attempt to access frame with URL http://www.google.ca/ from frame with URL http://www.ig.gmodules.com/gadgets...
是否有我设置的设置可以使此错误消失?它似乎不会造成任何实际问题,但应该得到解决。
Within a Cocoa application I have a webview. When Google's personalized home page loads I get the following message caught by the WebViewDelegate:
Unsafe JavaScript attempt to access frame with URL http://www.google.ca/ from frame with URL http://www.ig.gmodules.com/gadgets...
Is there a setting that I set to make this error go away? It doesn't seem to cause any actual problems, but should be resolved.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这听起来像是谷歌那边的问题,我认为你无能为力。这意味着加载了 www.ig.gmodules.com 的 iframe 正在尝试从 www.google.ca 请求某些内容,根据浏览器的说法,这是跨域请求。如果 Google 想要允许,他们需要一个允许请求的 crossdomain.xml。
That sounds like an issue on Google's end, I don't think there's anything you can do there. It means that an iframe with www.ig.gmodules.com loaded is trying to request something from www.google.ca, which according to the browser is a cross-domain request. If Google wanted to allow that they'd need a crossdomain.xml allowing the requests.