Let the popstate and hashchange events not bubble

This commit is contained in:
tigercosmos 2018-06-17 11:13:36 -07:00
parent 0c5b020163
commit ecb65474a7
3 changed files with 2 additions and 6 deletions

View file

@ -129,7 +129,7 @@ impl History {
let event = HashChangeEvent::new( let event = HashChangeEvent::new(
&self.window, &self.window,
atom!("hashchange"), atom!("hashchange"),
true, false,
false, false,
old_url.into_string(), old_url.into_string(),
url.into_string()); url.into_string());

View file

@ -71,7 +71,7 @@ impl PopStateEvent {
pub fn dispatch_jsval(target: &EventTarget, pub fn dispatch_jsval(target: &EventTarget,
window: &Window, window: &Window,
state: HandleValue) { state: HandleValue) {
let event = PopStateEvent::new(window, atom!("popstate"), true, false, state); let event = PopStateEvent::new(window, atom!("popstate"), false, false, state);
event.upcast::<Event>().fire(target); event.upcast::<Event>().fire(target);
} }
} }

View file

@ -1,4 +0,0 @@
[popstate_event.html]
[Queue a task to fire popstate event]
expected: FAIL