Older Firefox did not support location.origin.