Fix for Firefox and Opera (and probably Internet Explorer)

location.ancestorOrigins is only for Webkit!