Comment 56 for bug 216699

Revision history for this message
In , Mgilgar (mgilgar) wrote :

I had this problem in the following scenario:
-web page with lots of iframes and references to external resources.
-one of them injects some ad dynamically in the mootools's domeready event like this:

           this.contentWindow.document.write('<html><head></head><body style="margin:0;overflow:hidden;"><script type="text/javascript" src="'+ script +'"></script></body></html>');

-But it should like this and this is what solved the problem:

           this.contentWindow.document.open();
           this.contentWindow.document.write('<html><head></head><body style="margin:0;overflow:hidden;"><script type="text/javascript" src="'+ script +'"></script></body></html>');
           this.contentWindow.document.close();