Bug 883781 - Ensure that setOptions() and click event do not race.
Merge pull request #10609 from lissyx/bug883781

Bug 883781 - Ensure that setOptions() and click event do not race, r=RudyLu