Fix primaries on FirefoxOS
Merge pull request #3567 from shane-tomlinson/issue_3566-firefoxos-idp

Fix primaries on FirefoxOS