Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
367 views
in Technique[技术] by (71.8m points)

javascript - Uncaught Exception: Permission denied to Proxy.InstallTrigger

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.

This is with Firefox 8 and Firebug.

Code to reproduce: `

<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>

`

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.

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...