Chrome has window.URL, please move webkitURL detection code into the compatibility.js.