简体   繁体   English

编译后Chrome和Safari中的空白页

[英]Blank page in Chrome & Safari after compiling

I'm writing a web application in GWT and always worked in Dev Mode. 我正在用GWT编写Web应用程序,并且始终在开发模式下工作。 I wanted to check some things in other browsers so I compiled the whole app and opened it in all major browsers. 我想检查其他浏览器中的某些内容,因此我编译了整个应用程序并在所有主要浏览器中将其打开。 The application shows in Firefox and IE, but not in Chrome and Safari. 该应用程序在Firefox和IE中显示,但在Chrome和Safari中不显示。 Chrome and Safari just give me a blank page. Chrome和Safari仅给我空白页。 When I press ctrl + u to view the source, the code is there, but it doesn't to anything. 当我按ctrl + u查看源代码时,代码已存在,但没有任何作用。

I already checked the html host page for errors with the W3C validator but there were none. 我已经用W3C验证程序检查了html主机页面是否有错误,但是没有。 Any other suggestions? 还有其他建议吗?

You might have a JavaScript error, did you try debugging the JS? 您可能遇到JavaScript错误,是否尝试调试JS?

Google Chrome Javascript Debugger and Content Scripts Google Chrome Javascript调试器和内容脚本

Ok I got it working the following way. 好的,我可以按以下方式工作。 When I compile everything and just open the file In chrome or safari it doesn't work and I get following error in the console: 当我编译所有内容并仅在chrome或safari中打开文件时,它不起作用,并且在控制台中出现以下错误:

Unsafe JavaScript attempt to access frame with URL file:///H:/xampp/htdocs/bibliotheek/BibPhp.html from frame with URL file:///H:/xampp/htdocs/bibliotheek/bibphp/66B91B7CC29032C1F497FD7DE63723A5.cache.html. 不安全的JavaScript尝试从具有URL文件:/// H:/xampp/htdocs/bibliotheek/bibphp/66B91B7CC29032C1F497FD7DE63723A5.cache.html的框架访问具有URL文件:/// H:/xampp/htdocs/bibliotheek/BibPhp.html的框架。 Domains, protocols and ports must match. 域,协议和端口必须匹配。

But when I transfer everything to my web server it works fine. 但是,当我将所有内容传输到Web服务器时,它都可以正常工作。 It has to do something with cross server accessing frames. 它必须与跨服务器访问框架有关。 Here is more about the issue: http://code.google.com/p/chromium/issues/detail?id=31068 这是有关此问题的更多信息: http : //code.google.com/p/chromium/issues/detail?id=31068

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM