servo/components/script/dom/webxr
Narfinger 19f70dccf6
Combine some access to the thread local variable for script thread. (#38752)
This combines some access to the thread local variable for script
thread.

- We introduce a new UserInteractingScriptGuard which on drop handles
  the resetting of was_interacting to the previous value. Sometimes
throughout the code `ScriptThread::is_user_interacting` was reset to the
previous value while sometimes just set to false. This should
remove this footgun.
- This also reduces the amount of thread local access for
MutationObservers and task queue.

Testing: WPT tests should cover this.
Fixes: This addresses part of
https://github.com/servo/servo/issues/37969 but there is probably still
stuff to be done.

---------

Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
Co-authored-by: Josh Matthews <josh@joshmatthews.net>
2025-09-11 09:40:32 +00:00
..
fakexrdevice.rs
fakexrinputcontroller.rs
mod.rs
xrboundedreferencespace.rs
xrcompositionlayer.rs
xrcubelayer.rs
xrcylinderlayer.rs
xrequirectlayer.rs
xrframe.rs
xrhand.rs
xrhittestresult.rs
xrhittestsource.rs
xrinputsource.rs script: introduce safe wrappers for js val conversions (#38004) 2025-07-15 01:57:15 +00:00
xrinputsourcearray.rs
xrinputsourceevent.rs
xrinputsourceschangeevent.rs
xrjointpose.rs
xrjointspace.rs
xrlayer.rs script: Move WebGL DOM interfaces to script/dom/webgl/ (#38995) 2025-08-28 17:50:05 +00:00
xrlayerevent.rs
xrmediabinding.rs script: Move HTML DOM interfaces to script/dom/html/ (#39046) 2025-08-31 01:00:09 +00:00
xrpose.rs
xrprojectionlayer.rs
xrquadlayer.rs
xrray.rs
xrreferencespace.rs
xrreferencespaceevent.rs
xrrenderstate.rs
xrrigidtransform.rs
xrsession.rs Removed FnvHash and transformed the rest to FxHashmap (#39233) 2025-09-10 13:34:54 +00:00
xrsessionevent.rs
xrspace.rs
xrsubimage.rs
xrsystem.rs Combine some access to the thread local variable for script thread. (#38752) 2025-09-11 09:40:32 +00:00
xrtest.rs Combine some access to the thread local variable for script thread. (#38752) 2025-09-11 09:40:32 +00:00
xrview.rs
xrviewerpose.rs script: introduce safe wrappers for js val conversions (#38004) 2025-07-15 01:57:15 +00:00
xrviewport.rs
xrwebglbinding.rs script: Move WebGL DOM interfaces to script/dom/webgl/ (#38995) 2025-08-28 17:50:05 +00:00
xrwebgllayer.rs canvas: Use non rooted variant of HTMLCanvasElementOrOffscreenCanvas type (#38970) 2025-09-03 19:24:48 +00:00
xrwebglsubimage.rs script: Move WebGL DOM interfaces to script/dom/webgl/ (#38995) 2025-08-28 17:50:05 +00:00