aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/xr.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2019-01-07 15:24:26 -0800
committerManish Goregaokar <manishsmail@gmail.com>2019-01-07 15:24:26 -0800
commit90e87b97baa7bf9b57d72a562c98af3ed2b52e88 (patch)
tree2688689548a2df702a5a2005085edca494e8cc9e /components/script/dom/xr.rs
parent121cbd0078c5bd1693b040567e166a3ca55d7269 (diff)
downloadservo-90e87b97baa7bf9b57d72a562c98af3ed2b52e88.tar.gz
servo-90e87b97baa7bf9b57d72a562c98af3ed2b52e88.zip
Init XR present on XR::RequestSession() with empty context
Diffstat (limited to 'components/script/dom/xr.rs')
-rw-r--r--components/script/dom/xr.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/components/script/dom/xr.rs b/components/script/dom/xr.rs
index dae63a4baca..a608d7e31a4 100644
--- a/components/script/dom/xr.rs
+++ b/components/script/dom/xr.rs
@@ -95,10 +95,9 @@ impl XRMethods for XR {
}
let session = XRSession::new(&self.global(), &displays[0]);
+ // XXXManishearth we should actually xr_present() here instead of
+ // in XRSession::new, and resolve a promise based on it
promise.resolve_native(&session);
- // whether or not we should initiate presentation is unclear
- // https://github.com/immersive-web/webxr/issues/453
-
promise
}
}