mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Only call init_event() on a fully-rooted object
Signed-off-by: Delan Azabani <dazabani@igalia.com>
This commit is contained in:
parent
baf6424656
commit
ba9f79c36c
1 changed files with 2 additions and 2 deletions
|
@ -34,10 +34,10 @@ impl DebuggerEvent {
|
||||||
event: Event::new_inherited(),
|
event: Event::new_inherited(),
|
||||||
global: Dom::from_ref(global),
|
global: Dom::from_ref(global),
|
||||||
});
|
});
|
||||||
|
let result = reflect_dom_object(result, debugger_global, can_gc);
|
||||||
result.event.init_event("addDebuggee".into(), false, false);
|
result.event.init_event("addDebuggee".into(), false, false);
|
||||||
|
|
||||||
reflect_dom_object(result, debugger_global, can_gc)
|
result
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue