mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Force all messages to worker tasks to send a TrustedWorkerAddress along with the ScriptMsg. This ensures that the main-thread Worker object is rooted for as long as there are events in flight or being processed.
This commit is contained in:
parent
2f059c15e7
commit
9a7cd31134
11 changed files with 234 additions and 121 deletions
|
@ -204,8 +204,7 @@ impl<'a> HTMLFormElementHelpers for JSRef<'a, HTMLFormElement> {
|
|||
}
|
||||
|
||||
// This is wrong. https://html.spec.whatwg.org/multipage/forms.html#planned-navigation
|
||||
let ScriptChan(ref script_chan) = *win.script_chan();
|
||||
script_chan.send(ScriptMsg::TriggerLoad(win.page().id, load_data));
|
||||
win.script_chan().send(ScriptMsg::TriggerLoad(win.page().id, load_data));
|
||||
}
|
||||
|
||||
fn get_form_dataset<'b>(self, submitter: Option<FormSubmitter<'b>>) -> Vec<FormDatum> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue