Making the undo button firefox compatible