Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Launching FxR with a URL on Pico headset sometime restores previous session tabs instead of launching url #3987

Closed
priscombebur opened this issue Dec 13, 2021 · 0 comments
Labels
ARCHIVED CLOSED at time of archiving

Comments

@priscombebur
Copy link

Configuration

Firefox Reality version: 12.3
Firefox Reality build ID: d6c3b91 (AC 51.0.0) (bundled with Pico headsets)

Hardware: Pico Neo 2 & Pico Neo 3 headsets

Steps to Reproduce

  1. Launch FxR as normal from its app icon and visit some sites.
  2. Exit FxR.
  3. Launch FxR from an app intent with a URI to launch.
  4. Repeatedly launch FxR from an app intent with a URI to launch.
  5. Issue will be seen on some launches
  6. Turn off 'remember my last browser session' setting
  7. Issue will no longer be seen when launching with a URL

Example code to launch FxR with a url string:

val intent = Intent(Intent.ACTION_VIEW, Uri.parse(url))
intent.component = ComponentName("org.mozilla.vrbrowser", "org.mozilla.vrbrowser.VRBrowserActivity")
this.startActivity(intent)

Current Behavior

Sometimes the URL will load as requested and other times the previous session tabs are restored and this new URL is not loaded. If you explicitly turn off the 'remember my last browser session' setting, then the URL is always loaded.

Expected Behavior

If FxR is launched with a URL, then that URL should always be honoured. If 'remember my last browser session' is selected, then the new URL should be launched in a new tab on top of the restored browser session.

Possible Solution

Investigate race condition and make sure new URL is always loaded.

Context

Any application attempting to launch WebXR applications in FxR is affected.

@cknowles-admin cknowles-admin added the ARCHIVED CLOSED at time of archiving label Jul 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ARCHIVED CLOSED at time of archiving
Projects
None yet
Development

No branches or pull requests

2 participants