When determining whether we're a local file request, see if we have a valid host before using the window's location.
Merge branch 'gla/CPURLConnection' into local