TRUNK-2312: Fixed a bug in Firefox
(cherry picked from commit 4dc902413a4de1756d06270d23c721280ffd36f9)