Fix window size in recent Firefox versions