Mozilla cleans up Firefox to cut risk of code injection attacks and deter use of a dangerous JavaScript function.