[Bug] Tabs turn into about:blank pages
- [x] AC issue https://github.com/mozilla-mobile/android-components/issues/7820
Steps to reproduce
This is similar or the same as #1577. Logged it based on @agi90 comment on Slack and one other user reports that it still sees this issue: https://github.com/mozilla-mobile/fenix/issues/1577#issuecomment-530533172
Expected behavior
Tabs show pages.
Actual behavior
Tabs turn into about:blank after a while, with no history saved.
Device information
- Android device:
- Nightly 190910 18:03 (Build #12531808) 📦: 12.0.0, 9fecd17d3 🦎: 71.0a1-20190909095540
┆Issue is synchronized with this Jira Task
I wonder if this was a process kill or a crash. 🤔
And I'm also curious whether the tabs restored when selecting them?
Also see this issue: https://github.com/mozilla-mobile/fenix/issues/3170 - I think we are not really handling situations where tab(s) crash while we are not in the browser screen yet (We do not look at Session.crashed? CC @sblatz)
And I'm also curious whether the tabs restored when selecting them?
for me, they didn't. When I clicked on them about:blank opened.
@pocmo I believe that's correct, yes. I'm going to put a needs group triage on this so we can make sure it's visible to product.
Confirmed in group triage that this is a high priority bug. Let's listen to the AC hook that Sebastian mentioned 😄
This is a GeckoView bug but we can potentially fix it in AC.
In the similar bug, @liuche said:
Once one tab crashes, since we don't have E10S multi-process, anything that shares that process will crash because we can't fix this until GV gets this in Q2 2020. So we'll close it for now.
Wouldn't that affect this as well? What is the hook that @sblatz mentioned?
@darkwing my guess is that he was referring to Session.crashed boolean, maybe we should check this variable for all sessions when we come back to the app from background, and if they are indeed crashed, then use something like requireComponents.useCases.sessionUseCases.crashRecovery.invoke()
I tried reproducing it by going to about:crashparent to trigger a crash, and after app restart, the tab that was selected becomes indeed about:blank, but the crashed boolean for that session is false.
Using about:crashcontent, the tab crashes and the crashed boolean was true and session is recoverable, so probably crashed is not saved with the session state
Sidenote: process kill for the tab, the app or both does nothing for me, the tabs are recreated correctly, so my guess is the problem comes from a crash
Hi! I encountered this issue after accessing about:crashcontent, restart the app, all the other tabs were blank on Nightly build from 2/13 with Sony Xperia Z2 (Android 6.0.1).
I just had this same issue, the tabs are all about:blank and tapping on a tab doesn't bring back the actual page.
I think it happened after Fenix was killed by the Android memory manager:- I was doing other stuff on my phone, went back to Fenix, Fenix opened on the tabs tray, everything was about:blank.
Galaxy A40, Android 9.0.0, today's Fenix Nightly.
I had this issue shortly (hours) after migrating from Fennec to Fenix. I didn't close Fenix, but after a few hours I came back to it and several (but not all) of my tabs had turned into about:blank tabs with no way to recover them (no history left in the tabs).
Same issue with 77.0.0-beta2. Occurs too often to the point that this version unfortunately cannot be a daily driver.
Is this similar to #9039 ? This didn't make the cut for 77b2 but @karthikiyengar, do you see this on the Fenix Nightly app?
I'm not entirely sure, here's a screencap of the behaviour

I can check the Nightlys and get back.
I don't think the screencap made it! it doesn't open anything for me.
@liuche - Updated the previous post with a GIF.
And do you still see this on the Nightly app?
@liuche - I stopped using preview for a while in favour of old firefox. I'm back on Nightly again now and will report if this reoccurs.
@liuche - Can confirm that it also occurs in Nightly. The behaviour is pretty much the same, with the only difference is that the URL was stuck on the previously visited website instead of about:blank
This sounds like https://github.com/mozilla-mobile/fenix/issues/11501
@liuche - Can confirm that it also occurs in Nightly. The behaviour is pretty much the same, with the only difference is that the URL was stuck on the previously visited website instead of about:blank
@karthikiyengar Can you go "Settings > About > Crashes" and see if there is an entry at the time you saw the white page appear? I'm curious if we detected a content process crash at this time.
From the description it is very likely that the content process crashed. By default AC will recreate a GeckoSession under the hood and it will point to about:blank. In that situation we will also set the crashed flag on the Session and allow the app to try to restore it. @sblatz's comment above (although from last year) mentions that we need to listen to that - Not sure if we ever started doing that? Otherwise the app can only detect a content process crash via the broadcast while it is in the foreground afaik.