mozilla-mobile / firefox-ios

Firefox for iOS
Mozilla Public License 2.0
12.2k stars 2.92k forks source link

Tapping lock screen notification for received sent tabs opens Firefox but sometimes doesn't open the sent tab #20004

Open cpeterso opened 5 months ago

cpeterso commented 5 months ago

Steps to reproduce

  1. Launch Firefox and then lock your iPhone screen.
  2. Send a tab from Firefox desktop to Firefox iOS.
  3. See the tab notification on your lock screen.
  4. Tap the tab notification.
  5. The phone will unlock and switch to Firefox.

Expected behavior

The sent tab should open.

Actual behavior

Sometimes the sent tab is not opened, even though I received the tab notification. I see this problem intermittently, maybe after 1-3 days, but when it happens it sometimes happens for multiple sent tabs.

Looking at my Firefox.log, I see some suspicious error messages like:

2024-04-25 06:52:39.843 INFO [sync] RustErrors - Storing tabs from a client that doesn't appear in the devices list: Wcb1M2ypIFCS - target: tabs::storage

2024-04-25 09:22:09.298 WARNING [sync] RustSyncManagerAPI - Unknown error when reporting telemetry for the Rust SyncManager: The operation couldn’t be completed. (MozillaAppServices.TelemetryReportingError error 1.)

This bug might be a duplicate of https://github.com/mozilla-mobile/firefox-ios/issues/17395.

Device & build information

┆Issue is synchronized with this Jira Task

data-sync-user commented 5 months ago

➤ Chris Peterson commented:

I attached my Firefox.log file to this GitHub issue’s linked Jira issue.

cpeterso commented 5 months ago

It seems like the first tab (or batch of tabs) I send each morning is lost. I'm running TestFlight Nightly, so I receive a new build each morning. I use the new build to read some news before work. On my desktop work computer, I send tabs to my phone to read later. When I tap the received tab notification on my lockscreen, Firefox was already running but the new tab isn't opened. If I immediately send the tab again and tap the new received tab notification, that tab is opened.