aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/timers.rs
diff options
context:
space:
mode:
authorSmitty <me@iter.ca>2024-03-01 02:42:18 -0500
committerGitHub <noreply@github.com>2024-03-01 07:42:18 +0000
commit0beec63c86d8cb04f183249c8a2c81b49e17e03e (patch)
treec4d9248780e9acda1ae83079a308d045969a5d5b /components/script/timers.rs
parentee122acdf44201e8354fb5abd926b31bf2907296 (diff)
downloadservo-0beec63c86d8cb04f183249c8a2c81b49e17e03e.tar.gz
servo-0beec63c86d8cb04f183249c8a2c81b49e17e03e.zip
script: Implement `<meta http-equiv="refresh">` (#31468)
* script: Implement <meta http-equiv="refresh"> * Address review comments
Diffstat (limited to 'components/script/timers.rs')
-rw-r--r--components/script/timers.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/script/timers.rs b/components/script/timers.rs
index 895475f1b4d..b18d60668e0 100644
--- a/components/script/timers.rs
+++ b/components/script/timers.rs
@@ -28,6 +28,7 @@ use crate::dom::bindings::str::DOMString;
use crate::dom::document::FakeRequestAnimationFrameCallback;
use crate::dom::eventsource::EventSourceTimeoutCallback;
use crate::dom::globalscope::GlobalScope;
+use crate::dom::htmlmetaelement::RefreshRedirectDue;
use crate::dom::testbinding::TestBindingCallback;
use crate::dom::xmlhttprequest::XHRTimeoutCallback;
use crate::script_module::ScriptFetchOptions;
@@ -89,6 +90,7 @@ pub enum OneshotTimerCallback {
JsTimer(JsTimerTask),
TestBindingCallback(TestBindingCallback),
FakeRequestAnimationFrame(FakeRequestAnimationFrameCallback),
+ RefreshRedirectDue(RefreshRedirectDue),
}
impl OneshotTimerCallback {
@@ -99,6 +101,7 @@ impl OneshotTimerCallback {
OneshotTimerCallback::JsTimer(task) => task.invoke(this, js_timers),
OneshotTimerCallback::TestBindingCallback(callback) => callback.invoke(),
OneshotTimerCallback::FakeRequestAnimationFrame(callback) => callback.invoke(),
+ OneshotTimerCallback::RefreshRedirectDue(callback) => callback.invoke(),
}
}
}