Fix primaries on FirefoxOS

@jedp - this is what I am thinking so far.