Made open event in WebScoket not cancelable (fixes #6101)

This commit is contained in:
Keith Yeung 2015-05-18 00:35:23 +08:00
parent f15f4a5f47
commit ea2bc0023b
2 changed files with 1 additions and 4 deletions

View file

@ -247,7 +247,7 @@ impl WebSocketTaskHandler {
let event = Event::new(global.r(),
"open".to_owned(),
EventBubbles::DoesNotBubble,
EventCancelable::Cancelable).root();
EventCancelable::NotCancelable).root();
let target: JSRef<EventTarget> = EventTargetCast::from_ref(ws);
event.r().fire(target);
}