Fixed regression with Firefox

- https://hg.mozilla.org/mozilla-central/rev/4a068034be50
- https://bugzilla.mozilla.org/show_bug.cgi?id=679364