Bug 964148 - location.origin is not available in workers