fix hidden groups in Firefox on Mac - fix 2571

cc @georgehrke 

fixes #2571 

Just reproducable on stable5 and firefox for Mac