未捕获的异常:Proxy.InstallTrigger 的权限被拒绝 [英] Uncaught Exception: Permission denied to Proxy.InstallTrigger
问题描述
我对此进行了高低搜索,并且可以轻松重现它.运行绝对最新的 PHP SDK 和 JS 直接来自 facebook 通过 HTTPS 连接.我的MyAppId"和域已在以下代码中更改.替换您自己的以进行复制.
I've searched high and low for this and can easily reproduce it. Running absolute latest PHP SDK and the JS is coming directly from facebook over an HTTPS connection. My 'MyAppId' and domain have been changed in the code that follows. Substitute your own to reproduce.
适用于 Firefox 8 和 Firebug.
This is with Firefox 8 and Firebug.
重现代码:`
<body>
<div id="fb-root"></div>
<script type="text/javascript">
window.fbAsyncInit = function() {
FB.init({
appId: 'MyAppID',
status: true,
oauth : true,
cookie: true,
channelURL : 'https://www.mydomain.com/channel.html'
});
FB.Canvas.setAutoResize();
FB.Canvas.scrollTo(0,0);
};
(function() {
var e = document.createElement('script'); e.async = true;
e.src = document.location.protocol +
'//connect.facebook.net/en_US/all.js';
document.getElementById('fb-root').appendChild(e);
}());
</script>
Test
</body>
</html>
`
绝对是对 FB.Canvas 的调用导致了错误.如果我将两者都注释掉,则没有错误.如果我取消注释其中一个或两个 - 错误.
It is most definitely the calls to FB.Canvas that are generating the error. If I comment both out, no error. If I uncomment one or the other or both - Error.
直到几天前代码运行良好.定位页面顶部并正确缩放 iframe.我相信这是一个 FB JS 错误.
The code was working fine until a few days ago. Targeting the top of the page and scaling the iframe properly. I believe this is a FB JS error.
推荐答案
好像是 FireBug 的一个 bug :)
It seems like a bug of FireBug :)
重现步骤:http://code.google.com/p/fbug/issues/detail?id=4991
报告:https://bugzilla.mozilla.org/show_bug.cgi?id=701029
讨论:http://groups.google.com/group/firebug/browse_thread/thread/2517d5f867b9f526/90f066856b45786f
放轻松:)
这篇关于未捕获的异常:Proxy.InstallTrigger 的权限被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!