mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Let the popstate and hashchange events not bubble
This commit is contained in:
parent
0c5b020163
commit
ecb65474a7
3 changed files with 2 additions and 6 deletions
|
@ -129,7 +129,7 @@ impl History {
|
|||
let event = HashChangeEvent::new(
|
||||
&self.window,
|
||||
atom!("hashchange"),
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
old_url.into_string(),
|
||||
url.into_string());
|
||||
|
|
|
@ -71,7 +71,7 @@ impl PopStateEvent {
|
|||
pub fn dispatch_jsval(target: &EventTarget,
|
||||
window: &Window,
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
[popstate_event.html]
|
||||
[Queue a task to fire popstate event]
|
||||
expected: FAIL
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue