thuansaritasa / swfobject

Automatically exported from code.google.com/p/swfobject
0 stars 0 forks source link

removeSWF error in Safari 4 with swfobject v 2.2 #329

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When calling swfobject.removeSWF(objElemIdStr)
Safari 4 crashes with error 4148
This only happens using swfobject version 2.2 and not 2.1
The error does not occur using Safari 3
This has been verified using XP 32bit with SP3 and with Vista 64bit SP1.

Original issue reported on code.google.com by senig...@gmail.com on 22 Jun 2009 at 6:07

GoogleCodeExporter commented 9 years ago
I can reproduce this error in Mac OSX 10.5.7 with Safari 4.0.1

Original comment by zanza...@gmail.com on 22 Jun 2009 at 11:50

GoogleCodeExporter commented 9 years ago
I have tested in both 2.1 and 2.2 as well as AC Run Active content..  All of 
them
cause safari to crash when the flash object is removed.  

Firefox and IE7/8 do not crash.  

This only happens with the specific swf I am working with, I have tested other 
SWF
files which can be removed properly (in 2.1).  Therefore this appears to have
something to do with the specific SWF.

Original comment by zanza...@gmail.com on 22 Jun 2009 at 11:56

GoogleCodeExporter commented 9 years ago
No problem, for both 2.1 and 2.2 releases the removeSWF method has been tested 
in
Safari 4 without any errors. 

Original comment by bobbyvandersluis on 23 Jun 2009 at 8:13

GoogleCodeExporter commented 9 years ago
I was running into this issue as well. In my case, I found that if Flash was 
the one 
who called a javascript function to destroy the same Flash object with 
swfobject.removeSWF(objElemIdStr), Safari crashed. To get around this, I 
wrapped it in 
a setTimeout and called it late.  Hope this helps.

ie: setTimeout('swfobject.removeSWF(objElemIdStr);', 100);

Original comment by DSwifty...@gmail.com on 24 Jun 2009 at 8:58

GoogleCodeExporter commented 9 years ago
Yes that is exactly what was happening.  I also noticed that setting the flash 
to
either opaque or transparent also aided in safari crashing

Original comment by senig...@gmail.com on 25 Jun 2009 at 5:22

GoogleCodeExporter commented 9 years ago
I am also having this problem.  Safari 4 will crash when you call a javascript
function to distroy to SWF using swfobject.removeSWF and also if you have the 
wmode
set to "Transparent" or "Opaque".  I have tried doing 
"ie: setTimeout('swfobject.removeSWF(objElemIdStr);', 100);" but did not work 
for me.

Original comment by rickj.de...@gmail.com on 27 Jun 2009 at 6:48

GoogleCodeExporter commented 9 years ago
Found this issue when working with a swf that has been dynamically added, is 
using
externalInterface to trigger the removal and the swf is transparent.

Original comment by alexander.key@gmail.com on 18 Oct 2009 at 7:39