#886 - fix isSameOrigin determination in IE