Fixed permissions
Adapted for Firefox