Closed Bug 676277 Opened 8 years ago Closed 8 years ago

onmessage event.origin handling in websockets is wrong

Categories

(Core :: Networking: WebSockets, defect)

x86
All
defect
Not set

Tracking

()

RESOLVED FIXED
mozilla8

People

(Reporter: mcmanus, Assigned: mcmanus)

References

Details

(Whiteboard: [inbound])

Attachments

(1 file)

+++ 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.
Attached patch patch 1Splinter Review
change to derive origin from ws://, keeping it in utf-16.. with a test
Assignee: nobody → mcmanus
Status: NEW → ASSIGNED
Attachment #550408 - Flags: review?(jonas)
Whiteboard: [inbound]
Target Milestone: --- → mozilla8
http://hg.mozilla.org/mozilla-central/rev/19b6ce39339e
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.