Bug 1098664 - allows non-privileged app to specify a custom origin.

https://bugzilla.mozilla.org/show_bug.cgi?id=1098664