gecko-dev/mobile
Jan Henning 474fa41a84 Bug 1489594 - Decouple application-background event from clearing of current activity. r=jchen
When the OS needs to display a permission prompt, our current activity is paused
and onSaveInstanceState gets called, however the activity isn't stopped yet.
When the permission handling then returns with the results to us, we display
the file picker using the current activity as retrieved from the GeckoActivity-
Monitor.

The problem is that in bug 1437382, our application-background handling was
changed such that it would already be triggered by the preparatory onSave-
InstanceState call. This had the side effect that the current activity would
be cleared from the GeckoActivityMonitor at that point already. Therefore, in
our case showing the file picker would fail because the GAM would have cleared
the current activity already after the runtime permission prompt caused our
previous activity to save its state.

To fix this, we change the behaviour of the GeckoActivityMonitor such that it
will continue to trigger our application-background handling during onSave-
InstanceState if possible, but will only clear the current activity when it is
stopping for real.

Differential Revision: https://phabricator.services.mozilla.com/D5304

--HG--
extra : moz-landing-system : lando
2018-09-07 21:47:58 +00:00
..
android Bug 1489594 - Decouple application-background event from clearing of current activity. r=jchen 2018-09-07 21:47:58 +00:00
locales Bug 1486211 - Remove unused key browser.search.defaultenginename from region.properties r=mkaply 2018-08-28 13:14:27 +00:00