Firefox bug fixes