Commit dbb70071 authored by Alex Cooper's avatar Alex Cooper Committed by Commit Bot

Fix Failing WebXr testForNullPoses tests

With the recent change to enforce referenceSpace requests, these tests
were failing because the inline session did not request the local
reference space.

Bug: 996142
Change-Id: If0ef9e110df64498c2c73b2fdf0d4efa29ac111b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1779311
Commit-Queue: Alexander Cooper <alcooper@chromium.org>
Commit-Queue: Brian Sheedy <bsheedy@chromium.org>
Auto-Submit: Alexander Cooper <alcooper@chromium.org>
Reviewed-by: default avatarBrian Sheedy <bsheedy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#692303}
parent e084e7b0
......@@ -25,7 +25,9 @@ test can query for whether each submitted frame used the correct pose.
[sessionTypes.IMMERSIVE]: 'local',
[sessionTypes.MAGIC_WINDOW]: 'local',
[sessionTypes.AR]: 'local'
}
};
nonImmersiveSessionInit = { requiredFeatures: ['local'] };
requestMagicWindowSession();
let MAX_FRAME_CALLBACKS = 10;
......
......@@ -74,6 +74,7 @@ sessionInfos[sessionTypes.AR] = new SessionInfo();
sessionInfos[sessionTypes.MAGIC_WINDOW] = new SessionInfo();
var immersiveSessionInit = {};
var nonImmersiveSessionInit = {};
function getSessionType(session) {
if (session.mode == 'immersive-vr') {
......@@ -209,7 +210,7 @@ function onXRFrame(t, frame) {
function requestMagicWindowSession() {
// Set up an inline session (magic window) drawing into the full screen canvas
// on the page
navigator.xr.requestSession('inline')
navigator.xr.requestSession('inline', nonImmersiveSessionInit)
.then((session) => {
session.mode = 'inline';
sessionInfos[sessionTypes.MAGIC_WINDOW].currentSession = session;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment