Git Product home page Git Product logo

Comments (3)

mrxz avatar mrxz commented on August 30, 2024 4

Besides the lack of background service worker support in Firefox, there is another issue. The MAIN ExecutionWorld isn't supported by Firefox yet, which the extension uses to inject the webxr-polyfill. See: https://bugzilla.mozilla.org/show_bug.cgi?id=1736575

It's relatively straightforward to get something working as the background service worker can be swapped out for a background event page/script (I believe that is Firefox only when used with Manifest v3) and injecting the webxr-polyfill.js into the document from a content script instead of as as content script.

I created a fork with the above two changes and it seems to work surprisingly well. 🙂
There is only one minor inconvenience. The execution of the polyfill script isn't guaranteed to be before the other scripts on a page, so a page might conclude that WebXR isn't supported. Setting dom.vr.webxr.enabled to true in about:config effectively works around this issue as the page either detects the "real" WebXR API or the polyfill, but once you enter an immersive session it uses the polyfill
Link to the fork: https://github.com/mrxz/immersive-web-emulator

from immersive-web-emulator.

msub2 avatar msub2 commented on August 30, 2024

Per discussion on Discord, it appears the blocker in Firefox is support for background service workers for Manifest V3 https://bugzilla.mozilla.org/show_bug.cgi?id=1573659

from immersive-web-emulator.

ralyodio avatar ralyodio commented on August 30, 2024

any idea when this will happen?

from immersive-web-emulator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.