Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backgrounded Tabs and WebXR #1364

Open
AdaRoseCannon opened this issue Mar 12, 2024 · 4 comments
Open

Backgrounded Tabs and WebXR #1364

AdaRoseCannon opened this issue Mar 12, 2024 · 4 comments

Comments

@AdaRoseCannon
Copy link
Member

AdaRoseCannon commented Mar 12, 2024

The default assumption for WebXR is an external dumb display connected to an external computer which still displays the browser and handles the rendering. When the user enters WebXR the page continues rendering as usual.

/facetoface All-in-one devices such as the Apple Vision Pro and Meta Quest hide the browser to focus rendering resources on the WebXR content. As part of hiding the browser the page itself still has to sort-of run as some content needs to be updated but other content does not update. I don’t think it is specced out anywhere which bits keep running and which bits don’t but to ensure cross compatibility we should establish this somewhere.

Here are some examples of the buckets and examples of things in each:

Things which should keep working:

  • Video
  • Audio
  • gamepad
  • Input elements and associated events

Things which definitely should not work:

  • The page’s rAF

Things that are a maybe:

  • Resize observer
  • The page updating layout??
  • CSS animations and transitions
@KooIaIa
Copy link

KooIaIa commented Mar 20, 2024

When you say tabs - do you mean the page that opened WebXR or all other pages? This seems most critical for the page that the WebXR user is currently in.

Is running in the background towards the goal of being able to access a webpage in WebXR in the foreground? For example, a webpage running in the background on a PC can do screen capture to put itself on a texture and make itself visible in WebXR. Being able to render in the background is really good.

The best possible situation seems like being able to view it in the foreground in real WebXR. Once we can do that in browsers, I think these background expectation will hold stronger too.

Spec'ing that webpages should still be expected to be able to be fully functional webpages with WebXR is a good expectation to set.

@m-blix
Copy link

m-blix commented Mar 25, 2024

Similar previous issue: #1317

@hybridherbst
Copy link
Contributor

I'd be curious what the relationship is to dom-overlay; it feels like there should be a (specification) relation here.

@Yonet Yonet removed the face-to-face label Apr 3, 2024
@cabanier
Copy link
Member

The spec calls some of it out: "An active immersive session MAY affect the rendering opportunity of a browsing context if it causes the page to be obscured."
It seems that the link to the whatwg document defines the expected behavior.

Do we need more discussion on this topic?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants