fix firefox in Mac and Windows
Merge pull request #4503 from ticoann/firefox_hack

fix firefox in Mac and Windows