fenix icon indicating copy to clipboard operation
fenix copied to clipboard

[Bug] Tabs turn into about:blank pages

Open sv-ohorvath opened this issue 7 years ago • 75 comments

  • [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

sv-ohorvath avatar Sep 23 '19 07:09 sv-ohorvath

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)

pocmo avatar Sep 23 '19 08:09 pocmo

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.

agi90 avatar Sep 23 '19 16:09 agi90

@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.

sblatz avatar Sep 25 '19 16:09 sblatz

Confirmed in group triage that this is a high priority bug. Let's listen to the AC hook that Sebastian mentioned 😄

sblatz avatar Oct 01 '19 18:10 sblatz

This is a GeckoView bug but we can potentially fix it in AC.

vesta0 avatar Jan 03 '20 19:01 vesta0

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 avatar Feb 03 '20 19:02 darkwing

@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

BranescuMihai avatar Feb 11 '20 16:02 BranescuMihai

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).

lobontiumira avatar Feb 13 '20 15:02 lobontiumira

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.

Cheap-Skate avatar Feb 16 '20 10:02 Cheap-Skate

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).

madb1lly avatar Feb 27 '20 14:02 madb1lly

Same issue with 77.0.0-beta2. Occurs too often to the point that this version unfortunately cannot be a daily driver.

karthikiyengar avatar Jun 09 '20 21:06 karthikiyengar

Is this similar to #9039 ? This didn't make the cut for 77b2 but @karthikiyengar, do you see this on the Fenix Nightly app?

liuche avatar Jun 09 '20 22:06 liuche

I'm not entirely sure, here's a screencap of the behaviour

Screen-Recording-20200609-233206

I can check the Nightlys and get back.

karthikiyengar avatar Jun 10 '20 05:06 karthikiyengar

I don't think the screencap made it! it doesn't open anything for me.

liuche avatar Jun 12 '20 00:06 liuche

@liuche - Updated the previous post with a GIF.

karthikiyengar avatar Jun 12 '20 13:06 karthikiyengar

And do you still see this on the Nightly app?

liuche avatar Jun 18 '20 18:06 liuche

@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.

karthikiyengar avatar Jun 19 '20 16:06 karthikiyengar

@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 avatar Jun 20 '20 17:06 karthikiyengar

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

sv-ohorvath avatar Jun 22 '20 07:06 sv-ohorvath

@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.

pocmo avatar Jun 22 '20 09:06 pocmo