FirefoxReality icon indicating copy to clipboard operation
FirefoxReality copied to clipboard

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

Open priscombebur opened this issue 4 years ago • 0 comments

Configuration

Firefox Reality version: 12.3 Firefox Reality build ID: d6c3b917 (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.

priscombebur avatar Dec 13 '21 17:12 priscombebur