normalize firefox api