This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Can Reality open (local) file schema URLs?

  • 3 replies
  • 1 has this problem
  • 4 views
  • Last reply by Paul

more options

I have a local archive of HTML content that I can open (as "file:///" resources) and navigate in various web browsers, including Firefox on desktop Windows and desktop Ubuntu Linux, and on Android.

I have copied that archive onto an Oculus Go (at "/Internal shared storage/Download/foo" in the Oculus file system, with maximally open access permissions set.) The content is visible in e.g. the Oculus Gallery. I installed Firefox Reality 1.0 2018-09-17 because given experience in other Firefox, I was hoping I would be able to directly open and view the local content. I've tried URLs such as "file:///Internal%20shared%20storage/Download/foo" and various variations (different number of slashes, literal spaces - the latter causes a search that destroys the entered URL.) No luck.

As per subject: does Firefox Reality support this URL schema? Is there some grotty detail I am missing?

I have a local archive of HTML content that I can open (as "file:///" resources) and navigate in various web browsers, including Firefox on desktop Windows and desktop Ubuntu Linux, and on Android. I have copied that archive onto an Oculus Go (at "/Internal shared storage/Download/foo" in the Oculus file system, with maximally open access permissions set.) The content is visible in e.g. the Oculus Gallery. I installed Firefox Reality 1.0 2018-09-17 because given experience in other Firefox, I was hoping I would be able to directly open and view the local content. I've tried URLs such as "file:///Internal%20shared%20storage/Download/foo" and various variations (different number of slashes, literal spaces - the latter causes a search that destroys the entered URL.) No luck. As per subject: does Firefox Reality support this URL schema? Is there some grotty detail I am missing?

Chosen solution

We filed a bug so we can detect when a user tries to read a local file and prompt for permission. https://github.com/MozillaReality/FirefoxReality/issues/594

The workaround for now is: 1. From the Oculus home environment, go to Library. 2. Find Firefox Reality in the library and press the three vertical dots on the bottom right corner. 3. Select `Permissions` from the drop down. 4. Enable the storage permission. 5. Firefox Reality should now be able to load from the local file system.

Read this answer in context 👍 4

All Replies (3)

more options

Chosen Solution

We filed a bug so we can detect when a user tries to read a local file and prompt for permission. https://github.com/MozillaReality/FirefoxReality/issues/594

The workaround for now is: 1. From the Oculus home environment, go to Library. 2. Find Firefox Reality in the library and press the three vertical dots on the bottom right corner. 3. Select `Permissions` from the drop down. 4. Enable the storage permission. 5. Firefox Reality should now be able to load from the local file system.

more options

Excellent! I did find I also had to use URLs beginning /sdcard - which in turn got converted to /storage/emulated/0 - rather than the /Internal shared storage root folder that I see when I mount the Oculus as a file system under Linux - but the combination of that and giving the app storage permissions does do the trick.

Thanks!

(Of course, the archive does in turn now want to use window.localStorage for some viewing settings (which seems not yet supported), and it includes some Flash content I don't suppose I can reasonably expect Reality to ever support... but the first gate is now open and I am a happy bunny.)

more options

Hello,

I am glad to hear that your problem has been resolved. If you haven't already, please select the answer that solves the problem. This will help other users with similar problems find the solution more easily.

Thank you for contacting Mozilla Support.