Fix loading of external resources in Firefox