Use commonplace polyfill for window.location.origin (bug 1094175)
Merge pull request #765 from muffinresearch/fix-bug-1094175

Use commonplace polyfill for window.location.origin (bug 1094175)