mirror of
https://github.com/servo/servo.git
synced 2025-06-19 06:38:59 +01:00
Handle exceptions during upgrades
This commit is contained in:
parent
6d9d4add61
commit
e700006fb2
18 changed files with 71 additions and 156 deletions
|
@ -774,11 +774,13 @@ impl ScriptThread {
|
|||
})
|
||||
}
|
||||
|
||||
pub fn enqueue_callback_reaction(element: &Element, reaction: CallbackReaction) {
|
||||
pub fn enqueue_callback_reaction(element: &Element,
|
||||
reaction: CallbackReaction,
|
||||
definition: Option<Rc<CustomElementDefinition>>) {
|
||||
SCRIPT_THREAD_ROOT.with(|root| {
|
||||
if let Some(script_thread) = root.get() {
|
||||
let script_thread = unsafe { &*script_thread };
|
||||
script_thread.custom_element_reaction_stack.enqueue_callback_reaction(element, reaction);
|
||||
script_thread.custom_element_reaction_stack.enqueue_callback_reaction(element, reaction, definition);
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue