Fix for Facebook login not working correctly in Firefox.