Proper support for Firefox (tested on 25.0.1).