Javascript Firefox控制台错误:尝试在清除的作用域上运行编译并执行脚本

Javascript Firefox控制台错误:尝试在清除的作用域上运行编译并执行脚本,javascript,firefox,console,Javascript,Firefox,Console,我的Firefox错误控制台中出现以下错误。它显示了很多次,每次我刷新页面 错误:尝试在清除的作用域源上运行编译并执行脚本 文件:chrome://firebug/content/net/httpActivityObserver.js 线路:136 这似乎出现在每个选项卡上,即使我从页面中删除了所有代码,这种情况仍然会发生。因此,我假设这是一个firefox bug,而不是我自己的代码中的某个东西。因此,我无法调试自己的脚本 非常感谢您的帮助。该问题被列为firebug问题 使用Firefox1

我的Firefox错误控制台中出现以下错误。它显示了很多次,每次我刷新页面

错误:尝试在清除的作用域源上运行编译并执行脚本 文件:chrome://firebug/content/net/httpActivityObserver.js 线路:136

这似乎出现在每个选项卡上,即使我从页面中删除了所有代码,这种情况仍然会发生。因此,我假设这是一个firefox bug,而不是我自己的代码中的某个东西。因此,我无法调试自己的脚本


非常感谢您的帮助。

该问题被列为firebug问题

使用Firefox12(OS X 10.6.8),我只需简单地退出并重新启动浏览器即可。重新启动后,所有错误都消失了。

这似乎是Firefox的问题

我在下面写的代码在Chrome上运行得很好,但在Firefox(12)上根本不起作用;与问题中描述的错误相同

注意:我没有安装Firebug。我在Tools/WebDeveloper中使用了控制台

<html>
<head>
<script>
    window.onload = function() {
        document.write("CORS test");
        function createCORSRequest(method, url){
            var xhr = new XMLHttpRequest();
            if ("withCredentials" in xhr){
                xhr.open(method, url, true);
            } else if (typeof XDomainRequest != "undefined"){
                xhr = new XDomainRequest();
                xhr.open(method, url);
            } else {
                xhr = null;
            }
            return xhr;
        }

        var request = createCORSRequest("GET", "http://a.localhost:25565/");

        function doneLoading(rq)
        {
            document.write(rq.responseText);
        }

        if (request){
            document.write("<br />Requested..<br /><br />");
            console.log(request);
            request.onload = function() { doneLoading(request) } 
// THE ERROR POINTS TO THE ABOVE LINE
            request.send();
        }
        else {
            document.write("<br />No request!");
        }

    }

</script>
</head>
<body>
</body>
</html>

window.onload=函数(){
文件编写(“CORS测试”);
函数createCORSRequest(方法,url){
var xhr=new XMLHttpRequest();
如果(xhr中的“带凭证”){
open(方法、url、true);
}else if(XDomainRequest的类型!=“未定义”){
xhr=新的XDomainRequest();
open(方法,url);
}否则{
xhr=null;
}
返回xhr;
}
var请求=createCORSRequest(“获取”http://a.localhost:25565/");
函数doneLoading(rq)
{
文件写入(rq.responseText);
}
如果(请求){
文件。填写(“
请求..

”); 控制台日志(请求); request.onload=function(){doneLoading(request)} //错误指向上面的行 request.send(); } 否则{ 文档。写(“
无请求!”); } }
您正在运行哪一版本的Firefox和Firebug?您是否尝试过禁用所有加载项(Firebug除外)?版本10.0.2 firefox和1.9.1 firebuf,我现在将尝试禁用它们。谢谢。我禁用了加载项,错误信息也消失了。所以它是一个附加组件。我如何知道它是哪一个呢?一次重新启用一个,然后检查错误是否再次发生。