Closed Bug 1347611 Opened 4 years ago Closed 4 years ago
Web Apps (and custom tabs) flash previously opened content
Install and open pokedex.org, if I use the browser then switch to the pokedex activity, the content of the last opened tab in the browser flashes inside the pokedex.org activity, before reverting to its own content This may possibly be a dupe bug for custom tabs, mostly keeping track
That's a side effect of sharing the same GeckoView and browser window - we have some logic in GeckoApp instead that keeps track of the last selected tab in that particular GeckoApp instance and then switches the selected tab if necessary (https://dxr.mozilla.org/mozilla-central/rev/9577ddeaafd85554c2a855f385a87472a089d5c0/mobile/android/base/java/org/mozilla/gecko/GeckoApp.java#2239). Maybe based on that we can figure something out to stop painting until ready for the case when we're switching between different kinds of GeckoApp.
ni myself to find resource for this.
I think the corresponding issue in Custom Tabs is Bug 1353732
clear NI as we'll review all the P1 dependencies around stand alone mode tomorrow.
We haven't found available bandwidth to take this one for the current sprint. We need at least a workaround to improve this symptom before we have GeckoView in place for standalone mode.
With the new dynamic toolbar, we now get not only the previous content momentarily flashing up, but occasionally (presumably if the toolbar was previously shown) a red stripe at the top of the screen as well.
Ah I wondered what that red flash was
For the (new) case of switching activities by selecting a different tab type (e.g. opening a link in a new tab from a custom tab/web app), I think bug 1359531 might help because the event order there will be slightly rearranged: Previously, we'd start the activity switch and then switch tabs in Gecko only after the new activity has started up (and is possibly already showing the previous tab). With bug 1359531, we'll start selecting the tab first and then simultaneously switch activities, which empirically seems to help here. This won't help in the case where the user is switching activities, though...
Bug 1364044 is a more serious issue, though not necessarily relevant to this. In the triage we degraded this one to P2, and let's revisit.
Priority: P1 → P2
Custom tabs have the same underlying issue.
Summary: Web Apps flash previously opened content → Web Apps (and custom tabs) flash previously opened content
Depends on: customtabs
Fixed by 1360068
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.