Allow for Gecko18 not having location.origin (bug 1093747)