hiimnalaa / swfobject

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

window onunload IE8,IE7,IE6 memory lack #366

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Heh, window.onunload => do nothing on IE8, IE7, IE6. Try instead
window.onbeforeunload - in my case it help. Or I have about twenty notices,
when I close the page with sound flash player (JW FLW player) "the current
browser doesn't support this method in line 1 sym 1". And, then I change
onunload event to onbeforeunload = everething is going well.
Before I did this, i try to handle the eroor in try{}catch(){}, I try to
send the event before closing page to stop the player and unload all player
stuff (like functions, embeded objects, inner window js objects),try to
detach events. And it's useless. Only change onunload=>onbeforeunload in
swfobject - help me.

What version of the product are you using? On what operating system?
I use swfobject 2.2.

Why you use onunload handler instead of onbeforeunload?:)

Original issue reported on code.google.com by lamme...@ukr.net on 26 Aug 2009 at 6:46

GoogleCodeExporter commented 9 years ago
I use Windows XP SP3:) Test in browsers: IE6 standalone, IE7 standalone, final 
IE8 ru
last  8.0.60001.18702, I embeded flash dynamicly with swfobject.embedSWF or 
staticly
 (adding in the html markup flash object) and register it with
swfobject.registerObject on window.onload. 
I attached file with error. In english it's translated like: "The object does 
not
support this method or property in string 1 symbol 1". It's only appear,when I 
close
the tab or even window. And I see the same 20 25 notices. Click to one of it, 
and I
see another right now. :) (And on this step flash object is removed by my code
already. All stuff, like I say: the code, the attached events and properties, 
the
same flash object and it's container. And I stop playing sound before I do 
this.  

Original comment by lamme...@ukr.net on 26 Aug 2009 at 7:11

GoogleCodeExporter commented 9 years ago
When you browse to through our test suite, do you get the same error messages?

http://www.bobbyvandersluis.com/swfobject/testsuite_2_2/

Original comment by bobbyvandersluis on 27 Aug 2009 at 8:01

GoogleCodeExporter commented 9 years ago
yes. exactly the same message. onbeforeunload only help

Original comment by lamme...@ukr.net on 27 Aug 2009 at 1:20

GoogleCodeExporter commented 9 years ago
I think this might be related to the externalinterface callback 
de-registrations.

Original comment by get...@gmail.com on 31 Aug 2009 at 1:14

GoogleCodeExporter commented 9 years ago
We cannot reproduce the issue with our test suite. 

I suspect that this is a SWFObject + JW FLW player implementation issue (see 
comment
4). Please consult the JW FLW discussion group for similar issues/solutions.

Also, what is your testing setup? (amount of systems, IE standalone versions)

Original comment by bobbyvandersluis on 3 Sep 2009 at 8:21