Originally reported by our community in https://github.com/mozilla-mobile/fenix/issues/12577#issuecomment-667085187
One Firefox task is present in the recent app switcher
Two Firefox tasks are present in the recent app switcher. The second task (it's inactive) will quickly dismiss itself.
Our community uploaded recordings of the issue:
I would want someone with more task experience to chime in but it _seems_ harmless so I'd be tempted to set a low priority. @pocmo Do you agree that this is harmless?
Given I can't reproduce on the Nightly but can reproduce on the migration build, I suspect this may be related to the migration code. I noticed a discrepancy in taskAffinity: all the fenix activities have taskAffinity=""
except for the activities/alias in .../migration/AndroidManifest.xml
which have taskAffinity="${applicationId}.BROWSER"
(search) so perhaps that's related.
I agree that this should be harmless.
The task affinity may be the cause here. Looking at the commits I noticed that I introduced this here: https://github.com/mozilla-mobile/fenix/commit/f1a3dffba27df72b34836a2fb7b0c4a668586faa - This was a workaround to launch into the Fennec task that still could be around during the migration (It's weird). Maybe at some point after the migration we can just get rid of that again.
This isn't brief for me. The second instance won't go away in its own.
@pocmo seems to know that it is intentionally doing that. It really looks clunky if this not going to change.
This isn't brief for me. The second instance won't go away in its own.
Thanks for letting us know, @jawz101 A few questions so we can try to reproduce that issue:
It really looks clunky if this not going to change.
If two are sticking around forever and a non-trivial number of users will see it, I agree it's clunky and we should change it. We want to understand in what cases it can stick around forever (as I'm not able to reproduce the behavior) so we can understand the number of users impacted by it.
Pixel 3a, android 11 dev prev RPB3.200720.005, installed Firefox Android beta 80.0.0-beta.6.
Stock Android, Android developer options not enabled. Though I did accidentally enable the Firefox for Android beta developer menu (pressed the logo 5 times). I don't know how to turn that back off.
using Nova Launcher
Suspected action items to try to reproduce permanent 2 tasks:
Though I did accidentally enable the Firefox for Android beta developer menu (pressed the logo 5 times). I don't know how to turn that back off.
I don't believe it can be turned off but afaik there are no settings that should affect this issue.
I just got a Pixel 4a and was on Android 10 for a few days with no issue. Upgraded to 11 beta and the 2 Firefox instances show in the recents
That's great info, thank you!
Nightly does not seem to have the issue. At least this version:
Nightly 200827 07:01 (Build #2015760379)
AC: 57.0.20200826190111, c93fc20af
GV: 81.0a1-20200820093209
AS: 61.0.13
Pixel 3a, Nova Launcher, Android 11 Beta 3, Release channel
Same issue.
One instance is correct.
Second instance is just a blank screen; like a Private Tab.
Could it be a background process that was given visibility?
It makes one wonder.
How many issues go undetected due to improper nomenclature?
This bug was absent from Google's indexing.
Had been searching for "instances".
Reverted thought process to layman's terms... Android "task switcher".
Adjusted criteria from "instances" to "tasks".
Bug found.
Still present in 80.1.2
For those that are affected (unfortunately I am not able to reproduce this with an Android 11 emulator): What happens if you switch between the two instances?
Both instances are indeed separate.
They can be reordered apart from one another in recent apps switcher.
When pressing blank instance it positions both instances together again.
When pressing icon on home screen/app drawer, it positions both instances together again
Behavior present on Pixel Launcher/Nova Launcher.
Same recent apps switcher is utilized by both launchers.
Is recent app switcher now a system process?
Screen Recording attached:
https://1drv.ms/u/s!AkZMMNsar4-lmdR0NBdbCRoG_TM8vA?e=42Uz2h
Thank you! This is helpful.
I am pretty sure this is caused by us launching into the Fennec task to avoid a stale Fennec task hanging during the migration.
If you have time helping to confirm this then you could try:
Try to reproduce this issue with Nightly. If my assumption is correct then this should not happen with Nightly. https://play.google.com/store/apps/details?id=org.mozilla.fenix
Do you see a different behavior depending on whether the app was launched from the home screen or from a link in a third-party app? (with killing the app before trying).
Android 11 exited Beta today. Bug is still present.
And not to sound unappreciative or pretentious, but I expect "stable" channel releases to be just that.
I stay away from Nightly/Beta releases on my productivity devices to avoid problems like this :/
EDIT: Facepalm. Tone-deaf wrote that with blinders on to the fact that the OS itself was in beta.
Got the Android 11 update and can now see it on one my devices. Will take this issue for the next sprint.
Between multiple instances of Firefox starting on Android 11 and no longer being able to have Firefox start with no tabs opened, I have multiple Firefoxes started with multiple tabs open from the last time I swiped Firefox away.
I have a history button for old sessions. Why do tabs from old sessions linger?
My OCD hates this.
I can confirm this issue.
Firefox 81.1.1, Android 11, Google Pixel 3a, default launcher.
One of Firefox instances in task manager is blank even after fresh browser start.
Patch landed in master
/ Nightly. But Nightly itself is not affected. Looking at uplifting to the 82 release branch to get it into Beta asap.
since it didn't make it into 82beta...
+1
Also happening on my Pixel 3XL running Firefox stable on Android 11
Also happening on my Pixel 3XL running Firefox stable on Android 11
That's expected since the bugfix landed in the Nightly branch two days ago. It will take a few weeks until it reaches the stable channel.
Happens to me on Android 11 with Nova Launcher
@UglyCasan0va: please see the previous comments:
Patch landed in master / Nightly. But Nightly itself is not affected.
and:
the bugfix landed in the Nightly branch two days ago. It will take a few weeks until it reaches the stable channel.
since it didn't make it into 82beta...
I was too late for the first Beta. But it should make its way into the second 82 Beta.
Android 11 on Pixel 4 installing beta 82 fixed this for me
@JChops Awesome, thank you for verifying.
Same bug on Pixel 5, Android 11, Firefox 81.1.5.
No bug on Firefox Nightly
Same bug on Pixel 5, Android 11, Firefox 81.1.5.
That's expected. It was fixed in Firefox 82.
Most helpful comment
Android 11 on Pixel 4 installing beta 82 fixed this for me