Skip to content

Commit

Permalink
Bug 1697782 [wpt PR 28024] - Perform xrReferenceSpace_originOffsetBou…
Browse files Browse the repository at this point in the history
…nded.html validations with an active XRFrame., a=testonly

Automatic update from web-platform-tests
Perform xrReferenceSpace_originOffsetBounded.html validations with an active XRFrame (#28024)

Right now validations are run inside the requestReferenceSpace promise callback which may not have an active XRFrame state
--

wpt-commits: 5c7cc7fefd4844660361370a9cadd81e57c3dfec
wpt-pr: 28024
  • Loading branch information
MortimerGoro authored and moz-wptsync-bot committed Mar 19, 2021
1 parent e9ce705 commit ff4589b
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,9 @@
});

return new Promise((resolve, reject) => {
requestSkipAnimationFrame(session, (time, frame) => {
let input_source = session.inputSources[0];

session.requestReferenceSpace('bounded-floor').then((referenceSpace) => {
session.requestReferenceSpace('bounded-floor').then((referenceSpace) => {
requestSkipAnimationFrame(session, (time, frame) => {
let input_source = session.inputSources[0];

function CheckState(
reference_space,
Expand Down

0 comments on commit ff4589b

Please sign in to comment.