From 5dde01ab5ac96f08133a14f8715b34385481fa13 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Tue, 5 Jul 2016 13:35:10 +0530 Subject: [PATCH] Add Miscellaneous event type to DOM task source --- components/script/task_source/dom_manipulation.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/script/task_source/dom_manipulation.rs b/components/script/task_source/dom_manipulation.rs index daf212d8c52..fbe864a9005 100644 --- a/components/script/task_source/dom_manipulation.rs +++ b/components/script/task_source/dom_manipulation.rs @@ -52,7 +52,8 @@ pub enum DOMManipulationTask { // https://html.spec.whatwg.org/multipage/#planned-navigation PlannedNavigation(Box), // https://html.spec.whatwg.org/multipage/#send-a-storage-notification - SendStorageNotification(Box) + SendStorageNotification(Box), + Miscellaneous(Box), } impl DOMManipulationTask { @@ -72,7 +73,8 @@ impl DOMManipulationTask { FireToggleEvent(runnable) => runnable.handler(), MediaTask(runnable) => runnable.handler(), PlannedNavigation(runnable) => runnable.handler(), - SendStorageNotification(runnable) => runnable.handler(script_thread) + SendStorageNotification(runnable) => runnable.handler(script_thread), + Miscellaneous(runnable) => runnable.handler(), } } }