mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Properly set the origin on websocket messages
This commit is contained in:
parent
89ab110357
commit
a1925aab52
6 changed files with 17 additions and 17 deletions
|
@ -133,7 +133,7 @@ impl Worker {
|
|||
let _ac = JSAutoCompartment::new(global.get_cx(), target.reflector().get_jsobject().get());
|
||||
rooted!(in(global.get_cx()) let mut message = UndefinedValue());
|
||||
data.read(&global, message.handle_mut());
|
||||
MessageEvent::dispatch_jsval(target, &global, message.handle());
|
||||
MessageEvent::dispatch_jsval(target, &global, message.handle(), None);
|
||||
}
|
||||
|
||||
pub fn dispatch_simple_error(address: TrustedWorkerAddress) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue