Safari doesn't have a window.URL API but it does have a window.webkitURL API. Use that if it's there.