MRchildNEO / svgweb

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

svgweb in iframe not working on firefox #629

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
SVGweb is not working as expected when embedded in an iframe, in firefox.

I created a test-case based on an svg demo: 
http://ftp.bigcat.unimaas.nl/shared_folder/thomas/testembed/test_svgdemo.html

What steps will reproduce the problem?
1. Open the demo directly: 
http://codinginparadise.org/projects/svgweb/samples/javascript-samples/svg_objec
t_dynamic_add.html?svg.render.forceflash=true
2. Observe flashing colors
3. Open the same demo wrapped in an iframe: 
http://ftp.bigcat.unimaas.nl/shared_folder/thomas/testembed/test_svgdemo.html
4. No more flashing colors

I would expect the SVG to be animated, even inside an iframe.

I've tested on firefox 6.0.2, Ubuntu 11.04, flash plug-in 10.3 r183
A collegue tested on a recent version of chrome, and didn't see this behaviour, 
so it looks like it's a firefox only problem.

It appears that the SVGLoad event, which must be fired for the animation to 
start, is never actually fired in the iframe scenario. It appears that the 
function that creates the animation (objLoadFunc, line 11), is never called in 
FF.

Original issue reported on code.google.com by mvanier...@gmail.com on 29 Sep 2011 at 7:52