Fixes a Firefox test failure

This fixes the test failure described at #342. I'm not sure this is the way to go but feature detection seemed like a good idea.

![tests-pass](https://f.cloud.github.com/assets/208469/1502233/bd44dac2-4897-11e3-9bca-2131e3f85482.png)


Cheers,
Arnaud.