Simulate the events in a way that Firefox is happy with