bug 1034828 - Browser API download method should add extension to file if not present. r=kanru