调试gwt在facebook iframe里面 [英] Debug gwt inside facebook iframe

查看:145
本文介绍了调试gwt在facebook iframe里面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



当我使用' http://127.0.0.1:8888/index.html?gwt.codesvr=127.0.0.1:9997 'as'Canvas Callback URL我的应用程序没有加载,但是当我编译它并使用' http://127.0 .0.1:8888 完美无瑕。

解决方案

在facebook iframe中使用GWT调试器存在跨站点脚本问题。
我记录为问题#4468
http://code.google.com/p/google-web-toolkit/issues/detail?id=4468



在该票内,我指定的解决方法是编辑hosted.html文件:

  hosted.html 
gwtOnLoad = function errFn,modName,modBase){
....
var topWin = window.top;
var url = topWin.location.href;
...

解决办法如果你有一个:

var topWin = window;
var url = topWin.location.href;


I'm trying to debug my gwt 2.0 apllication that runs inside facebook iframe.

When i use 'http://127.0.0.1:8888/index.html?gwt.codesvr=127.0.0.1:9997' as "Canvas Callback URL" my app doesn't loading, but when i compile it and use 'http://127.0.0.1:8888' it works perfectly.

解决方案

There is a cross site scripting issue with using the GWT debugger within the facebook iframe. I logged this as issue #4468 http://code.google.com/p/google-web-toolkit/issues/detail?id=4468

Within that ticket, I specified the workaround is to edit the hosted.html file thusly:

hosted.html
gwtOnLoad = function(errFn, modName, modBase){
....
  var topWin = window.top;
  var url = topWin.location.href;
...

Workaround if you have one:

  var topWin = window;
  var url = topWin.location.href;

这篇关于调试gwt在facebook iframe里面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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