Open dmarti opened 9 years ago
Hmm, postMessage
presumably works for cross-frame communication in IE8-9. IE8 lacks support for DOMContentLoaded
though, you could achieve the same result using the readystatechange
event, or even the load
event since the tracker page does not load any external resource.
So far I haven't been able to get it to work. But there is no Privacy Badger for MSIE, so if the script loads at all, the user is vulnerable. The result is right even though the workaround is there.
I did find this, which suggests using setTimeout:
In Chrome and Firefox the iframe can send a JavaScript message to the containing page. This does not work so far in MSIE and we have to send an extra message in the containing page... https://github.com/Aloodo/ad.aloodo.com/commit/95894be5477f57404295b9415102ce101c42be25