Fix #14475. Use IE11-friendly detect for proper XHR object.

We don't seem to have test cases for local file access.