diff --git a/components/script/dom/htmlformelement.rs b/components/script/dom/htmlformelement.rs
index 90baba4ebb1..18c30a9d86c 100644
--- a/components/script/dom/htmlformelement.rs
+++ b/components/script/dom/htmlformelement.rs
@@ -936,6 +936,8 @@ struct PlannedNavigation {
}
impl Runnable for PlannedNavigation {
+ fn name(&self) -> &'static str { "PlannedNavigation" }
+
fn handler(self: Box) {
if self.generation_id == self.form.root().generation_id.get() {
let script_chan = self.script_chan.clone();