Closed takahirox closed 4 years ago
I've noticed this in the past if "Experimental Web Platform Features" was enabled in chrome://flags
, even with WebXR disabled.
XRWebGLLayer
will also always be clobbered by the polyfill to fix Chrome 76-77 composite flag https://github.com/immersive-web/webxr-polyfill/blob/0fad13ef90060863f2a4ba66e969f4cff650797f/src/WebXRPolyfill.js#L163
Thanks for the comment.
All flags are default on chrome://flags (= WebXR API is disabled)
All flags are default so experimental features is disabled. I explicitly disabled it, but I keep seeing the same issue.
And on other pages which don't importing webxr-polyfill, for example google.com XR* classes are undefined. Only on pages importing webxr-polyfill somehow native WebXR API seems being enabled.
Can you reproduce this issue in your side? (And does my bug report make sense?)
Ah, realized it's because of origin-trial. Sorry for confusing!
Probably it isn't a polyfill side problem but a browser side problem, but let me report a weird problem here so far.
Native WebXR API implemented by the browser seems being enabled on Windows Chrome 78 if webxr-polyfill is loaded even though WebXR API is disabled via chrome://flags.
How to reproduce
Update: Some other objects seem to be declared by polyfill, not browser.
Platform I tested on