I am filling an empty iframe with basic HTML, using $iframe.contents().find('body').html(contentBody);
See: http://jsfiddle.net/UjT2b/2/
This works well on Chrome. On Firefox, I can see very briefly the content inside, but then it suddenly disappears. When I set a breakpoint on this line with Firebug, then continue running, the content stays inside. But if I set a breakpoint on the line after, it goes away.
Any clue on how to fix this?