Export to GitHub

svgweb - issue #629

svgweb in iframe not working on firefox


Posted on Sep 29, 2011 by Grumpy Cat

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

Status: New

Labels:
Type-Defect Priority-Low