`location.origin` is undefined in FF20. Maybe `location.protocol + "//" + location.host + "/resources/icons/fb-logo.png";` ?