Meta Quest Browser file input fails with some file extensions
While developing a web app with three.js, I noticed an unexpected behavior of Meta Quest Browser: if I choose a .glb model file with a <input type="file"> tag, and try to access it in javascript, the browser does not allow access to the file if I manually change the extension to .png, it works. Disabling safe navigation in browser's settings does not solve the problem. The problem occur only on Meta Quest Browser: Chrome on Windows and Android behave as expected. This is the code handling file input: const fileInput = document.getElementById('file') as HTMLInputElement fileInput.addEventListener('change', (e) => loadModel((e.target as HTMLInputElement).files![0])) function loadModel(file: File) { const url = URL.createObjectURL(file) const loader = new GLTFLoader() loader.load( url, function ( gltf ) { scene.add( gltf.scene ); console.log('Model loaded') }, undefined, function ( error ) { console.error( error ); } ); } And this is the console error I get when accessing file with .glb extension GET blob:https://192.168.1.161:5500/83bfd355-2cf6-4714-bda7-3c6cf3331c58 net::ERR_ACCESS_DENIED 200 (OK) load @ three.module.js:41933 load @ GLTFLoader.js:222 loadModel @ index.ts:58 (anonymous) @ index.ts:52 Uncaught (in promise) TypeError: network error Promise.then (async) readData @ three.module.js:41973 start @ three.module.js:41969 (anonymous) @ three.module.js:41966 Promise.then (async) load @ three.module.js:41934 load @ GLTFLoader.js:222 loadModel @ index.ts:58 (anonymous) @ index.ts:52 I set up a sample web app to reproduce the problem: https://fornaeffe.github.io/vr-playground/ source code here: https://github.com/fornaeffe/vr-playground/tree/visorr-upload-bug Other details of the problem explained here: https://stackoverflow.com/questions/77068404/model-loaders-work-in-chrome-but-not-in-meta-quest-2-browser-when-using-file-in and here: https://discourse.threejs.org/t/gltfloader-works-in-chrome-but-not-in-meta-quest-2-browser/558031.2KViews0likes1CommentOpen application from Quest web browser through a "android:scheme" Deeplink
I followed the Android deep linking documentation to be able to open my Quest application from the Quest web browser: 1. Edit the AndroidManifest.xml of the application to add this: <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <!-- Accepts URIs that begin with "example://gizmos” --> <data android:scheme="example" android:host="gizmos" /> </intent-filter> 2. Deploy the application to the Quest device 3. Run this command where "com.example.android" is the application pacakge: adb shell am start -W -a android.intent.action.VIEW -d "example://gizmos" com.example.android This works, e.g the previous command launches the application on the device. The "android.intent.category.BROWSABLE" is here to allow this intent action to be launched from a web browser. So now please open the Quest web browser on the device, then try to navigate to the "example://gizmos" URL. This does not work, e.g the application is not launched by querying the "example://gizmos" URL from the Quest web browser. The Android Log cat shows the following output: 2023/05/15 10:52:57.625 24304 24304 Info chromium [INFO:web_contents_impl.cc(6947)] WebContentsImpl Loading end: ID = 3 2023/05/15 10:52:57.630 24304 24304 Info cr_tabmodel Appending tabs being restored to metadata lists, 0, startingNormalCount: 2, startingIncognitoCount: 0 2023/05/15 10:52:57.630 24304 24304 Info cr_tabmodel Serializing tab lists; counts: 2, 0 2023/05/15 10:52:57.635 2990 3117 Warn [CT] Anchor:SlamAnchorMemoryOSSDKClient: [Throttled count=551] Skipping invalid anchorHandle when attempting to cache AnchorStates 2023/05/15 10:52:57.649 22167 22167 Debug Zygote Forked child process 28240 2023/05/15 10:52:57.651 1083 1172 Debug ActivityManager Is background playback GK enabled: false Is background playback enabled for all apps: false 2023/05/15 10:52:57.651 1083 1172 Error AppOps Cannot setMode 2023/05/15 10:52:57.651 1083 1172 Error AppOps java.lang.SecurityException: Specified package com.oculus.browser under uid 90086 but it is not 2023/05/15 10:52:57.651 1083 1172 Error AppOps at com.android.server.appop.AppOpsService.verifyAndGetBypass(AppOpsService.java:4621) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at com.android.server.appop.AppOpsService.verifyAndGetBypass(AppOpsService.java:4513) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at com.android.server.appop.AppOpsService.setMode(AppOpsService.java:2784) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at com.android.server.appop.AppOpsService.setMode(AppOpsService.java:2770) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at com.android.server.am.ActivityManagerService.setAppOpMode(ActivityManagerService.java:14775) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at com.android.server.am.ActivityManagerService.onTopAppStatusChanged(ActivityManagerService.java:14713) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at com.android.server.am.ProcessList.handleProcessStartedLocked(ProcessList.java:2703) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at com.android.server.am.ProcessList.handleProcessStartedLocked(ProcessList.java:2674) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at com.android.server.am.ProcessList.handleProcessStart(ProcessList.java:2204) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at com.android.server.am.ProcessList.lambda$startProcessLocked$0$ProcessList(ProcessList.java:2125) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at com.android.server.am.ProcessList$$ExternalSyntheticLambda1.run(Unknown Source:22) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at android.os.Handler.handleCallback(Handler.java:938) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at android.os.Handler.dispatchMessage(Handler.java:99) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at android.os.Looper.loopOnce(Looper.java:214) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at android.os.Looper.loop(Looper.java:304) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at android.os.HandlerThread.run(HandlerThread.java:67) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at com.android.server.ServiceThread.run(ServiceThread.java:44) 2023/05/15 10:52:57.651 1083 1172 Error AppOps Cannot setMode 2023/05/15 10:52:57.651 1083 1172 Error AppOps java.lang.SecurityException: Specified package com.oculus.browser under uid 90086 but it is not 2023/05/15 10:52:57.651 1083 1172 Error AppOps at com.android.server.appop.AppOpsService.verifyAndGetBypass(AppOpsService.java:4621) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at com.android.server.appop.AppOpsService.verifyAndGetBypass(AppOpsService.java:4513) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at com.android.server.appop.AppOpsService.setMode(AppOpsService.java:2784) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at com.android.server.appop.AppOpsService.setMode(AppOpsService.java:2770) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at com.android.server.am.ActivityManagerService.setAppOpMode(ActivityManagerService.java:14775) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at com.android.server.am.ActivityManagerService.onTopAppStatusChanged(ActivityManagerService.java:14719) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at com.android.server.am.ProcessList.handleProcessStartedLocked(ProcessList.java:2703) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at com.android.server.am.ProcessList.handleProcessStartedLocked(ProcessList.java:2674) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at com.android.server.am.ProcessList.handleProcessStart(ProcessList.java:2204) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at com.android.server.am.ProcessList.lambda$startProcessLocked$0$ProcessList(ProcessList.java:2125) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at com.android.server.am.ProcessList$$ExternalSyntheticLambda1.run(Unknown Source:22) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at android.os.Handler.handleCallback(Handler.java:938) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at android.os.Handler.dispatchMessage(Handler.java:99) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at android.os.Looper.loopOnce(Looper.java:214) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at android.os.Looper.loop(Looper.java:304) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at android.os.HandlerThread.run(HandlerThread.java:67) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at com.android.server.ServiceThread.run(ServiceThread.java:44) 2023/05/15 10:52:57.651 1083 1172 Error AppOps Cannot setMode 2023/05/15 10:52:57.651 1083 1172 Error AppOps java.lang.SecurityException: Specified package com.oculus.browser under uid 90086 but it is not 2023/05/15 10:52:57.651 1083 1172 Error AppOps at com.android.server.appop.AppOpsService.verifyAndGetBypass(AppOpsService.java:4621) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at com.android.server.appop.AppOpsService.verifyAndGetBypass(AppOpsService.java:4513) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at com.android.server.appop.AppOpsService.setMode(AppOpsService.java:2784) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at com.android.server.appop.AppOpsService.setMode(AppOpsService.java:2770) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at com.android.server.am.ActivityManagerService.setAppOpMode(ActivityManagerService.java:14775) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at com.android.server.am.ActivityManagerService.onTopAppStatusChanged(ActivityManagerService.java:14724) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at com.android.server.am.ProcessList.handleProcessStartedLocked(ProcessList.java:2703) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at com.android.server.am.ProcessList.handleProcessStartedLocked(ProcessList.java:2674) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at com.android.server.am.ProcessList.handleProcessStart(ProcessList.java:2204) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at com.android.server.am.ProcessList.lambda$startProcessLocked$0$ProcessList(ProcessList.java:2125) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at com.android.server.am.ProcessList$$ExternalSyntheticLambda1.run(Unknown Source:22) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at android.os.Handler.handleCallback(Handler.java:938) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at android.os.Handler.dispatchMessage(Handler.java:99) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at android.os.Looper.loopOnce(Looper.java:214) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at android.os.Looper.loop(Looper.java:304) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at android.os.HandlerThread.run(HandlerThread.java:67) 2023/05/15 10:52:57.651 1083 1172 Error AppOps at com.android.server.ServiceThread.run(ServiceThread.java:44) 2023/05/15 10:52:57.652 1083 1172 Info ActivityManager Start proc 28240:com.oculus.browser:sandboxed_process0:org.chromium.content.app.SandboxedProcessService0:49/u0ai86 for {com.oculus.browser/org.chromium.content.app.SandboxedProcessService0:49} 2023/05/15 10:52:57.668 948 1452 Error Tracking SubmapRecords: findSubmapId found 2 submap records hold the same query krHandle 2023/05/15 10:52:57.680 28240 28240 Error cessService0:4 Not starting debugger since process cannot load the jdwp agent. 2023/05/15 10:52:57.614 0 0 Info binder 28240:28240 ioctl 40046210 7fc6e6fd54 returned -22 2023/05/15 10:52:57.700 1083 6246 Debug CompatibilityChangeReporter Compat change id reported: 168419799; UID 10058; state: DISABLED 2023/05/15 10:52:57.708 28240 28240 Debug CompatibilityChangeReporter Compat change id reported: 171979766; UID 90086; state: ENABLED 2023/05/15 10:52:57.726 28240 28240 Debug CompatibilityChangeReporter Compat change id reported: 175409949; UID 90086; state: DISABLED 2023/05/15 10:52:57.727 28240 28240 Debug CompatibilityChangeReporter Compat change id reported: 175409951; UID 90086; state: DISABLED 2023/05/15 10:52:57.729 28240 28240 Debug CompatibilityChangeReporter Compat change id reported: 175409950; UID 90086; state: DISABLED 2023/05/15 10:52:57.730 28240 28240 Debug NetworkSecurityConfig Using Network Security Config from resource 0_resource_name_obfuscated debugBuild: false 2023/05/15 10:52:57.733 28240 28240 Debug NetworkSecurityConfig Using Network Security Config from resource 0_resource_name_obfuscated debugBuild: false 2023/05/15 10:52:57.748 28240 28240 Info cr_SplitCompatApp Launched version=112.0.5615.136 minSdkVersion=25 isBundle=false processName=com.oculus.browser:sandboxed_process0:org.chromium.content.app.SandboxedProcessService0:49 isIsolated=true 2023/05/15 10:52:57.750 948 27901 Info Tracking CONSTELLATION:VISION_STATUS: fb11304f9b41e4ec (R): BlobDetection:[#BlobsDetected=(15.24, 6.50)]Matching:[MatchSuccess=1.000, MatchCost=(0.00142, 0.00000), #MatchedBlobs=(8.10, 3.35), #MatchedLeds=(6.94, 0.12), RematchM=0.000, SkipRefine=0.000] MatchMethod:[Prox=1.000, ConstBrute=0.000, UnconstBrute=0.000] MatchResets[AnomBlobSize=0.000, SharedMatch=0.000, DenseReacq=0.000] | Fusion:[FusionError=0.000, ImuFromCamMs=(8.902, 1.609), RematchF=0.004] FusionUpdates:[Successful=0.140, Reliable=0.140, TightFusion=0.140, FullPose=0.000, StaticPrior=0.860, StaticForHandTrans=0.860, PoseUpdateMD=(0.0000, 0.0000)] FusionResets[6DoFReset=0.000, ResetSuccess=0.000] FusionStatus[HasPosition=1.000, HasVelocity=1.000] 2023/05/15 10:52:57.754 28240 28240 Info cr_ChildProcessService Creating new ChildProcessService pid=28240 2023/05/15 10:52:57.757 24304 24329 Info cr_ChildProcessConn onServiceConnected: org.chromium.content.app.SandboxedProcessService0 2023/05/15 10:52:57.758 568 568 Error SELinux avc: denied { find } for pid=28240 uid=90086 name=content_capture scontext=u:r:isolated_app:s0:c512,c768 tcontext=u:object_r:content_capture_service:s0 tclass=service_manager permissive=0 2023/05/15 10:52:57.763 28240 28253 Error cr_ChromiumAndroidLinker ReserveAddressWithHint: Address range starting at 0x76be260000 was not free to use 2023/05/15 10:52:57.766 1083 6246 Info ActivityManager Killing 28240:com.oculus.browser:sandboxed_process0:org.chromium.content.app.SandboxedProcessService0:49/u0a58i-8914 (adj 0): isolated not needed This has been reported for a few years and several times on the Meta community forum, Stackoverflow and Unity developer forum but without an answer to workaround it or to explain why it's not possible to achieve. Something in the Meta Quest web browser prevents the intent action to open the application. A feedback from the Developper Team of the Meta Quest web browser would be great, at least to say "we cannot support this because [...]".2.6KViews3likes3CommentsStreaming platforms not suported by the meta quest 3 browser
I bought the Meta Quest 3 expecting to be able to watch, through the streaming platforms im subscribed to, different live sport leagues such as the NFL, NBA, champions league, etc. I’m from Mexico and I usually watch this sporting events through HBO MAX or Star+ but this platforms aren’t supported by the Quest’s browser, so I don’t know if there’s going to be an update for this or something.1.1KViews0likes0CommentsIssue with Browser and VR Mode
We've found that when we launch a View intent with a WebXR link from a third party application, the Oculus Browser doesn't always show VR Mode as an available option. This is true for Youtube, as well as products like 3D Vista. Is this a known issue? Is there some other setting, or recent update, that has made it more difficult for third party apps to launch the browser and keep VR mode as an option?661Views0likes0Comments[Bug Report] Meta Quest Browser Sandbox IFrame Requires "allow-same-origin"
Hi Team, Thank for you for hard work! Meta Quest Browser has been awesome to develop with. I'd like to report a bug, or at least an oddity.. I've noticed that the Meta Quest Browser enforces sandboxed IFrames to have "allow-same-origin" be toggled, or else VR content cannot load and with threejs (webxr) specifically, it will crash the browser! This behavior does not happen on Chrome, though I am using a chrome plugin to use "VR" on my local workstation, so its not exactly a 1-to-1 test. To reproduce this issue, create a simple Iframe with threejs/babylonjs webxr content in the srcDoc attribute: This below example WILL work. <iframe scrolling={'no'} style={{ display: 'block', border: 'none', margin: '0px', height: '100vh', width: '100vw' }} sandbox="allow-scripts allow-same-origin" title={scene_uuid} srcDoc={sceneJsData} hidden={loadingScreenWait} /> This below example will NOT work: <iframe scrolling={'no'} style={{ display: 'block', border: 'none', margin: '0px', height: '100vh', width: '100vw' }} sandbox="allow-scripts" title={scene_uuid} srcDoc={sceneJsData} hidden={loadingScreenWait} /> Having the sandbox only be allowed "allow-scripts" should be sufficient for webXR. Requiring both "allow-script allow-same-origin" actually breaks sandboxing altogether, because a script with allow-same-origin can break out of its own sandbox, according to MDN: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe. Bonus points: crash the browser.. If you wrap a sandboxed iframe in a sandboxed iframe you can crash the browser with threejs! Example: <iframe title={title} src={`/endpoint/with/sandboxedIframe/and/threejs/srcDoc`} scrolling={'no'} allow="xr-spatial-tracking;fullscreen;camera" sandbox="allow-scripts" style={{ display: 'block', border: 'none', margin: '0px', width: width, height: height, background: 'black' }} /> and the srcDoc iframe on the other endpoint <iframe scrolling={'no'} style={{ display: 'block', border: 'none', margin: '0px', height: '100vh', width: '100vw' }} sandbox="allow-scripts" title={scene_uuid} srcDoc={sceneJsData} hidden={loadingScreenWait} />Solved1.7KViews1like1CommentWebGL context lost after oculus browser update
Hi I have encountered weird issue that is manifesting only on our Oculus Quest 2 after web browser update. If you open up Shapespark viewer on Oculus Browser in Oculus Quest 2 headset there is an issue with meeting mode. The WebGL Context is briefly lost and restored (or will crash browser) Link to example meeting: https://kamilmodzelewski.shapespark.com/shapes/#meeting-key=J4FAMBpIgXKAW1kD I have tested meeting feature on multiple devices, multiple systems, various browsers. Meetings had worked fine before Oculus Browser update to Chromium version: 104.0.5112.111. (not sure what versions was before update) Issue is still present after update to Chromium version: 106.0.5249.168 There are no errors that could point me in right direction when debugging issue with Chrome developers tools (only WebGL Context Lost) The issue might occur during Twilio preflight phase: https://www.twilio.com/docs/video/troubleshooting/preflight-api. Any advice would help!807Views0likes0CommentsWeb Tasks no longer close properly
We are launching a web task from our native VR app as described here: https://developer.oculus.com/documentation/web/web-tasks/ Until recently we were able to close the web task and activate our app via an intent by redirecting the browser to our custom URI, as described in the documentation. Now, it no longer launches the intent or closes the web task.982Views0likes1CommentVolume rocker doesn't work in Oculus Browser WebXR+WebRTC apps
At work, I build a social VR app that runs in the web browser. In Oculus Browser, when both the WebXR and WebRTC sessions are active, the volume rocker on the headset no longer works to control the master audio volume. If I exit the WebXR session, or I try to control the volume before connection the teleconferencing session, the volume control works. I also tried this in Mozilla Hubs and see that they have the same issue. I also have a Windows MR headset and a keyboard with volume control buttons, and the volume control works there just fine. But I see that on the Quest, the volume rocker does not send an AudioVolumeUp/AudioVolumeDown key event to the browser. Any ideas? Most of the time, users don't notice that the volume is not to their liking until they've entered the app and start talking to other users. This seems like a bug in Oculus Browser.864Views0likes0Comments