Make the Firefox event not error out in Safari and Chrome