kennylerma / facebook-actionscript-api

Automatically exported from code.google.com/p/facebook-actionscript-api
0 stars 0 forks source link

Facbook.init raises SecurityError 2059 on XP/Firefox #358

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Embed SWF using swfobject.embedSWF
2. Inside the swf call Facebook.init
3. Capture any errors using try..catch around the init statement 

What is the expected output? What do you see instead?
Expected that init is called successfully and the callback is fired. Instead, a 
SecurityError number 2059 is raised.

What version of the product are you using? On what operating system?
This has been occurring for only a small percentage of users, but we have 
reports across the board in terms of browser/OS combinations (Chrome, Firefox, 
IE and Safari, both Mac and PC). If it happens to a certain user, it is able to 
be reproduced every time. We can only reproduce this ourselves on one of our XP 
professional service pack 3 machines, on Firefox 4.0.1. Have tried with two 
FlashPlayers (10.0.12.36 and also upgraded to the latest). Other XP machines 
are fine, and other PC/Mac and browsers are ok (at least in our office).

Please provide any additional information below.
Game can be found here: 
http://www.facebook.com/McDonaldsNZ?sk=app_260315950657782
Like, then push button to play game. Game loads to 100% then sits there forever 
(if problem occurs) because SecurityError is raised.

Original issue reported on code.google.com by pe...@pixelthis.co.nz on 21 Sep 2011 at 12:22

GoogleCodeExporter commented 9 years ago
Hi all. Have found and fixed the cause of the error above (just in case others 
have the same problem). Two problems: 
(a) Init was being called twice
(b) The loader was loading the main swf using an absolute URL. Changed this to 
relative.

Original comment by pe...@pixelthis.co.nz on 25 Sep 2011 at 8:33

GoogleCodeExporter commented 9 years ago

Original comment by edwar...@gmail.com on 19 Oct 2011 at 8:49