Although I'm the one that marked this question as a duplicate, I think the answers in that question may be bit out of date. When I google, I find this discussion. The answers in there solve the problem with JSNI but they remark that it doesn't work in FF because FF requires manually enabling restrictions. If this doesn't help, you may have to use the answers in the duplicate.