diff options
author | Josh Matthews <josh@joshmatthews.net> | 2014-12-02 16:54:43 -0800 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2014-12-29 13:53:49 -0500 |
commit | 9a7cd3113403fe44a8919f049720b67bfa92c9f1 (patch) | |
tree | bec170bff412ced10ce251846c828e5216ccf81e /components/script/dom/htmlformelement.rs | |
parent | 2f059c15e76bd02a4cd6baa4a946f64ab8e6878a (diff) | |
download | servo-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.rs | 3 |
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> { |