+++ This bug was initially created as a clone of Bug #670687 +++
The origin property of the onmessage event has always been derived from the principal. According to https://bugzilla.mozilla.org/show_bug.cgi?id=670687#c24 we want to derive that from the ws[s]:// host.
Created attachment 550408 [details] [diff] [review]
change to derive origin from ws://, keeping it in utf-16.. with a test