diff --git a/testing/web-platform/tests/webxr/resources/webxr_util.js b/testing/web-platform/tests/webxr/resources/webxr_util.js index 505a9281f57e..860d363f2c96 100644 --- a/testing/web-platform/tests/webxr/resources/webxr_util.js +++ b/testing/web-platform/tests/webxr/resources/webxr_util.js @@ -52,11 +52,13 @@ function xr_session_promise_test( .then((session) => { testSession = session; session.mode = sessionMode; + let glLayer = new XRWebGLLayer(session, gl, { + compositionDisabled: session.mode == 'inline' + }); // Session must have a baseLayer or frame requests // will be ignored. session.updateRenderState({ - baseLayer: new XRWebGLLayer(session, gl), - outputContext: getOutputContext() + baseLayer: glLayer }); resolve(func(session, testDeviceController, t)); }) @@ -78,15 +80,6 @@ function xr_session_promise_test( properties); } -// A utility function to create an output context as required by non-immersive -// sessions. -// https://immersive-web.github.io/webxr/#xrsessioncreationoptions-interface -function getOutputContext() { - let outputCanvas = document.createElement('canvas'); - document.body.appendChild(outputCanvas); - return outputCanvas.getContext('xrpresent'); -} - // This functions calls a callback with each API object as specified // by https://immersive-web.github.io/webxr/spec/latest/, allowing // checks to be made on all ojects. diff --git a/testing/web-platform/tests/webxr/xrSession_transfer_outputContext.https.html b/testing/web-platform/tests/webxr/xrSession_transfer_outputContext.https.html deleted file mode 100644 index 759d97ba1840..000000000000 --- a/testing/web-platform/tests/webxr/xrSession_transfer_outputContext.https.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - -