Bug in user agent switching with file input