diff options
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r-- | components/script/script_thread.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index ff066eda0c9..55bd003915f 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -670,6 +670,7 @@ pub struct ScriptThread { /// The WebXR device registry #[no_trace] + #[cfg(feature = "webxr")] webxr_registry: Option<webxr_api::Registry>, /// The worklet thread pool @@ -1329,6 +1330,7 @@ impl ScriptThread { system_font_service, webgl_chan: state.webgl_chan, + #[cfg(feature = "webxr")] webxr_registry: state.webxr_registry, worklet_thread_pool: Default::default(), @@ -3751,6 +3753,7 @@ impl ScriptThread { final_url.clone(), incomplete.navigation_start, self.webgl_chan.as_ref().map(|chan| chan.channel()), + #[cfg(feature = "webxr")] self.webxr_registry.clone(), self.microtask_queue.clone(), self.webrender_document, |