Fix Google Chrome bug on osx when open a file in browser