aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlformelement.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2014-12-02 16:54:43 -0800
committerJosh Matthews <josh@joshmatthews.net>2014-12-29 13:53:49 -0500
commit9a7cd3113403fe44a8919f049720b67bfa92c9f1 (patch)
treebec170bff412ced10ce251846c828e5216ccf81e /components/script/dom/htmlformelement.rs
parent2f059c15e76bd02a4cd6baa4a946f64ab8e6878a (diff)
downloadservo-9a7cd3113403fe44a8919f049720b67bfa92c9f1.tar.gz
servo-9a7cd3113403fe44a8919f049720b67bfa92c9f1.zip
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.
Diffstat (limited to 'components/script/dom/htmlformelement.rs')
-rw-r--r--components/script/dom/htmlformelement.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/components/script/dom/htmlformelement.rs b/components/script/dom/htmlformelement.rs
index dbc67347596..e58aaed0650 100644
--- a/components/script/dom/htmlformelement.rs
+++ b/components/script/dom/htmlformelement.rs
@@ -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> {